Editing
Facts
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
This article and Scout's Facts concept take inspiration from [https://wiki.openstreetmap.org/wiki/Tags OpenStreetMap's Tags documentation]. A '''fact''' consists of two components: a ''key'' and a ''value''. Facts describe specific attributes of locations that drivers can observe and update, such as gas prices, amenities, and services available at various establishments. Both components are free-format text fields but often represent numeric or structured data. Conventions for the meaning and use of facts are documented on this wiki. == Keys and values == Facts are applied to locations, resulting in a collection of any size. However, each collection may contain a given fact key only once per location. When a fact is absent, default values or inherited assumptions often apply. The ''key'' describes a topic, category, or type of attribute. Keys can be qualified with prefixes, infixes, or suffixes (usually separated by underscores), forming super- or sub-categories, or [[namespace|namespaces]]. Common namespaces include fuel prices and amenities. The ''value'' represents the current state of the fact. Values are typically numbers (integer or decimal) or boolean (e.g., <code>true</code> or <code>false</code>). Values are required for all facts. Here are examples used in practice: * {{fact|amenity|subkey=car_wash||available}} β indicates that a car wash is present at this location. * {{fact|fuel_price|subkey=87||1.316}} β numeric price for regular gasoline. The fact will also have a volume and currency property in this case. == Optional properties == Beyond the basic key-value structure, facts can include optional properties for additional context. The ''volume'' property specifies units for measurable quantities (e.g., <code>G</code> for gas prices). It clarifies the unit of volume measurement for the value. The ''currency'' property specifies the monetary unit for price-related facts (e.g., <code>USD</code> for US dollars, <code>CAD</code> for Canadian dollars). This ensures price facts are properly contextualized for drivers. == key=value syntax == In discussions and tools, facts are commonly referenced using <code>key=value</code> syntax. For facts with volume or currency properties, use the extended syntax: <code>key=value|volume=unit|currency=code</code>. Keys or values may be quoted to avoid confusion: <code>key="value"</code> or <code>"key"="value"</code>. The quotes, equals signs, and pipe symbols are not part of the actual fact content. On this wiki, you can refer to a fact using key=value syntax by including the {{tl|fact}} template. [[Category:Facts| ]] [[Category:Concepts]] [[Category:Location Data]]
Summary:
Please note that all contributions to Scout Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Scout Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Fact
(
edit
)
Template:Tl
(
edit
)
Module:Arguments
(
edit
)
Module:Fact
(
edit
)
Module:Languages
(
edit
)
Module:Languages/config
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information