Template:Quickbar

From Wikivoyage
Jump to navigation Jump to search
[view] [edit] [history] [purge] Template documentation

This template displays a short summary of standard information for countries. It should go at the top of the Understand section in every country article. Note that per current consensus, quickbars should ONLY be used for articles about sovereign countries and their separately-administered territories (generally speaking, places with their own 2-character ISO country code and Internet Top-Level Domain). It should not be used for U.S. states, Canadian provinces, or any other article type. You may make a suggestion on the Template talk:Quickbar page if you feel that quickbars should be used for other article types, but be aware it's been discussed a lot.

The template gets all its information directly from Wikidata. Please add information there. A summary of values is at d:Wikidata:Wikivoyage/Lists/Quickbar.

Use this format for transclusion:

{{quickbar}}

In case you want to overwrite fields locally you can use this version, even though Wikidata should be used preferably:

{{quickbar
| location=location.png
| capital=[[Capital]]
| currency=currency used
| population=recent population estimate
| electricity=electrical voltage and current (plug type)
| callingcode=country code immediately preceded by "+" international access code symbol
| timezone=time zone(s) in relation to UTC
| emergencies=emergency phone numbers
}}

You can specify a different Wikidata item to fetch certain info from. For example, the following examples fetches all fields from the current Wikidata item, except for the country code, which is sourced from France:

{{quickbar|callingcode=#Q142}}

Displays a short summary of standard information for countries based on data contained on the country's Wikidata page. This template is only intended to be added within country articles.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Location Map location

Extracted from country's Wikidata page. Shows outline of the country on a map in relationship to the remainder of the word.

Auto value
[[:d:Property:P242|P242]]
Fileoptional
Capital citycapital

Extracted from country's Wikidata page. Identifies capital city of the country including link to that capital city's article

Auto value
[[:d:Property:P36|P36]]
Page nameoptional
Currencycurrency

Extracted from country's Wikidata page. The currency or currencies officially recognized for use within the country. If no official currency, then specify the de facto currency in use.

Example
Euro
Auto value
[[:d:Property:P38|P38]]
Stringsuggested
Populationpopulation

Extracted from country's Wikidata page. Specifies the population of the country including year that the population number is based upon.

Auto value
[[:d:Property:P1082|P1082]]
Stringsuggested
Electricityelectricity

Extracted from country's Wikidata page. Specifies the voltage and hertz used in the country. Specify the electrical plug styles used in the country.

Auto value
[[:d:Property:P2884|P2884]], [[:d:Property:P2853|P2853]]
Stringoptional
Calling Codecallingcode

Extracted from country's Wikidata page. Identifies the country's calling code for making phone calls.

Auto value
[[:d:Property:P474|P474]]
Stringoptional
Time Zonetimezone

Extracted from country's Wikidata page. Applicable time zone(s) within the country.

Auto value
[[:d:Property:P421|P421]]
Stringoptional
Emergencies phone numberemergencies

Extracted from country's Wikidata page. Phone number to call in the event of an emergency to call for first responders.

Auto value
[[:d:Property:P2852|P2852]]
Stringoptional
Driving Sidedriving side

Extracted from country's Wikidata page. Identifies if drivers drive on the left hand side or right hand side of the road.

Auto value
[[:d:Property:P1622|P1622]]
Stringoptional