Help Wikitravel grow by contributing to an article! Learn how.
New users, please see Help or go to the Pub to ask questions.

Difference between revisions of "Template:Quickbar"

From Wikitravel
Jump to: navigation, search
Line 2: Line 2:
 
<div style="float: right; margin: 0 0 1em 1em">
 
<div style="float: right; margin: 0 0 1em 1em">
 
{| cellpadding="2" cellspacing="0" style="border: 1px solid #9866FF; background-color: #f3f3ff" width="250"
 
{| cellpadding="2" cellspacing="0" style="border: 1px solid #9866FF; background-color: #f3f3ff" width="250"
{{ #if|test={{{image|}}}|then={{quickbar topimage|image={{{image|}}}}}}}
+
{{if|test={{{image|}}}|then={{quickbar topimage|image={{{image|}}}}}}}
{{ #if|test={{{location|}}}|then={{quickbar image|heading=Location|image={{{location|}}}}}}}
+
{{if|test={{{location|}}}|then={{quickbar image|heading=Location|image={{{location|}}}}}}}
{{ #if|test={{{flag|}}}|then={{quickbar image|heading=Flag|image={{{flag|}}}}}}}
+
{{if|test={{{flag|}}}|then={{quickbar image|heading=Flag|image={{{flag|}}}}}}}
 
|-
 
|-
 
| 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|test={{{capital|}}}|then={{quickbar item|heading=Capital|value={{{capital|}}}}}|else={{quickbar empty}}}}
+
{{if|test={{{capital|}}}|then={{quickbar item|heading=Capital|value={{{capital|}}}}}|else={{quickbar empty}}}}
{{ #if|test={{{government|}}}|then={{quickbar item|heading=Government|value={{{government|}}}}}|else={{quickbar empty}}}}
+
{{if|test={{{government|}}}|then={{quickbar item|heading=Government|value={{{government|}}}}}|else={{quickbar empty}}}}
{{ #if|test={{{currency|}}}|then={{quickbar item|heading=Currency|value={{{currency|}}}}}|else={{quickbar empty}}}}
+
{{if|test={{{currency|}}}|then={{quickbar item|heading=Currency|value={{{currency|}}}}}|else={{quickbar empty}}}}
{{ #if|test={{{area|}}}|then={{quickbar item|heading=Area|value={{{area|}}}}}|else={{quickbar empty}}}}
+
{{if|test={{{area|}}}|then={{quickbar item|heading=Area|value={{{area|}}}}}|else={{quickbar empty}}}}
{{ #if|test={{{population|}}}|then={{quickbar item|heading=Population|value={{{population|}}}}}|else={{quickbar empty}}}}
+
{{if|test={{{population|}}}|then={{quickbar item|heading=Population|value={{{population|}}}}}|else={{quickbar empty}}}}
{{ #if|test={{{language|}}}|then={{quickbar item|heading=Language|value={{{language|}}}}}|else={{quickbar empty}}}}
+
{{if|test={{{language|}}}|then={{quickbar item|heading=Language|value={{{language|}}}}}|else={{quickbar empty}}}}
{{ #if|test={{{religion|}}}|then={{quickbar item|heading=Religion|value={{{religion|}}}}}|else={{quickbar empty}}}}
+
{{if|test={{{religion|}}}|then={{quickbar item|heading=Religion|value={{{religion|}}}}}|else={{quickbar empty}}}}
{{ #if|test={{{electricity|}}}|then={{quickbar item|heading=[[Electrical systems|Electricity]]|value={{{electricity|}}}}}|else={{quickbar empty}}}}
+
{{if|test={{{electricity|}}}|then={{quickbar item|heading=[[Electrical systems|Electricity]]|value={{{electricity|}}}}}|else={{quickbar empty}}}}
{{ #if|test={{{callingcode|}}}|then={{quickbar item|heading=[[List of country calling codes|Calling Code]]|value={{{callingcode|}}}}}|else={{quickbar empty}}}}
+
{{if|test={{{callingcode|}}}|then={{quickbar item|heading=[[List of country calling codes|Calling Code]]|value={{{callingcode|}}}}}|else={{quickbar empty}}}}
{{ #if|test={{{tld|}}}|then={{quickbar item|heading=Internet TLD|value={{{tld|}}}}}|else={{quickbar empty}}}}
+
{{if|test={{{tld|}}}|then={{quickbar item|heading=Internet TLD|value={{{tld|}}}}}|else={{quickbar empty}}}}
{{ #if|test={{{timezone|}}}|then={{quickbar item|heading=[[Time zones|Time Zone]]|value={{{timezone|}}}}}|else={{quickbar empty}}}}
+
{{if|test={{{timezone|}}}|then={{quickbar item|heading=[[Time zones|Time Zone]]|value={{{timezone|}}}}}|else={{quickbar empty}}}}
 
|}
 
|}
 
</div>
 
</div>

Revision as of 03:49, 15 February 2007


This template replaces the HTML quickbars previously used in country templates. Note that per current consensus, quickbars should ONLY be used for country articles - please discuss on the Template talk:Quickbar page if you feel that quickbars should be used for cities or other article types.

To implement use the following format (note that the location, flag, and main images MUST NOT be wider than 250px):

{{quickbar
| image=[[Image:image|noframe|250px]]
| flag=[[Image:flag]]
| location=[[Image:location|noframe|250px]]
| capital=[[Capital]]
| government=Type of government
| currency=Currency used
| area=Country area
| population=Population
| language=[[Language1]], [[Language2]], Language3, ...
| religion=Religion(s)
| electricity=Electrical voltage and current
| callingcode=Calling code
| tld=Internet top level domain
| timezone=Time zone(s) in relation to UTC
}}


Variants

Actions

Destination Docents

In other languages