Help Wikitravel grow by contributing to an article! Learn how.

Difference between revisions of "Template:Quickbar"

From Wikitravel
Jump to: navigation, search
(try using parser functions for improved readability)
Line 7: Line 7:
 
|-
 
|-
 
| colspan="2" style="text-align: center; border-bottom: 1px solid #C9AFFF; border-top: 1px solid #C9AFFF; background-color: #ddddff" | '''Quick Facts'''
 
| colspan="2" style="text-align: center; border-bottom: 1px solid #C9AFFF; border-top: 1px solid #C9AFFF; background-color: #ddddff" | '''Quick Facts'''
{{ #if: {{{capital|}}} | {{quickbar item|heading=Capital|value={{{capital|}}}}} | {{quickbar empty}} }}
+
{{{capital|}}} | {{quickbar item|heading=Capital|value={{{capital|}}}}} | {{quickbar empty}}  
{{ #if: {{{government|}}} | {{quickbar item|heading=Government|value={{{government|}}}}} | {{quickbar empty}} }}
+
{{{government|}}} | {{quickbar item|heading=Government|value={{{government|}}}}} | {{quickbar empty}}  
{{ #if: {{{currency|}}} | {{quickbar item|heading=Currency|value={{{currency|}}}}} | {{quickbar empty}} }}
+
{{{currency|}}} | {{quickbar item|heading=Currency|value={{{currency|}}}}} | {{quickbar empty}}  
{{ #if: {{{area|}}} | {{quickbar item|heading=Area|value={{{area|}}}}} | {{quickbar empty}} }}
+
{{{area|}}} | {{quickbar item|heading=Area|value={{{area|}}}}} | {{quickbar empty}}  
{{ #if: {{{population|}}} | {{quickbar item|heading=Population|value={{{population|}}}}} | {{quickbar empty}} }}
+
{{{population|}}} | {{quickbar item|heading=Population|value={{{population|}}}}} | {{quickbar empty}}  
{{ #if: {{{language|}}} | {{quickbar item|heading=Language|value={{{language|}}}}} | {{quickbar empty}} }}
+
{{{language|}}} | {{quickbar item|heading=Language|value={{{language|}}}}} | {{quickbar empty}}
{{ #if: {{{religion|}}} | {{quickbar item|heading=Religion|value={{{religion|}}}}} | {{quickbar empty}} }}
+
{{{religion|}}} | {{quickbar item|heading=Religion|value={{{religion|}}}}} | {{quickbar empty}}  
{{ #if: {{{electricity|}}} | {{quickbar item|heading=[[Electrical systems|Electricity]]|value={{{electricity|}}}}} | {{quickbar empty}} }}
+
{{{electricity|}}} | {{quickbar item|heading=[[Electrical systems|Electricity]]|value={{{electricity|}}}}} | {{quickbar empty}}  
{{ #if: {{{callingcode|}}} | {{quickbar item|heading=[[List of country calling codes|Calling Code]]|value={{{callingcode|}}}}} | {{quickbar empty}} }}
+
{{{callingcode|}}} | {{quickbar item|heading=[[List of country calling codes|Calling Code]]|value={{{callingcode|}}}}} | {{quickbar empty}}  
{{ #if: {{{tld|}}} | {{quickbar item|heading=Internet TLD|value={{{tld|}}}}} | {{quickbar empty}} }}
+
{{{tld|}}} | {{quickbar item|heading=Internet TLD|value={{{tld|}}}}} | {{quickbar empty}}  
{{ #if: {{{timezone|}}} | {{quickbar item|heading=[[Time zones|Time Zone]]|value={{{timezone|}}}}} | {{quickbar empty}} }}
+
{{{timezone|}}} | {{quickbar item|heading=[[Time zones|Time Zone]]|value={{{timezone|}}}}} | {{quickbar empty}}  
 
|}
 
|}
 
</div><rdf>
 
</div><rdf>

Revision as of 16:42, 27 July 2008

Quick Facts - Capital |- - Government |- - Currency |- - Area |- - Population |- - Language |- - Religion |- - Electricity |- - Calling Code |- - Internet TLD |- - Time Zone |-


This template places a consistently-formatted summary of standard information at the top of 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. Please discuss on the Template talk:Quickbar page if you feel that quickbars should be used for other article types.

It uses the following format (note that the lead and location images MUST NOT be wider than 250px, and the flag image should be 108px to match those we got from the CIA factbook):

{{quickbar
| image=[[Image:image|noframe|250px]]
| flag=[[Image:flag|noframe|108px]]
| location=[[Image:location|noframe|250px]]
| capital=[[Capital]]
| government=type of government
| currency=currency used
| area=land area
| population=recent population estimate
| language=[[Language1]], [[Language2]], Language3, ...
| religion=common religion(s)
| electricity=electrical voltage and current (plug type)
| callingcode=calling code
| tld=internet top level domain
| timezone=time zone(s) in relation to UTC
}}


Variants

Actions

Destination Docents

In other languages