Open main menu

Changes

4,383 bytes added ,  16:12, 26 March 2017
m
1 revision imported
<!-- begin quick bar --><div id="quickbar" style="float: right; margin: 0 0 1em 1em">
{| cellpadding="2" cellspacing="0" style="border: 1px solid #9866FF; font-size:85%; background-color: #f3f3ff" width="250"
{{ #if: {{{image|}}} | {{!}}-
{{!}} colspan="2" style="text-align: center; padding: 2px" {{!}} [[File:{{{image|}}}|{{{imagewidth|250px}}}|frameless|{{{caption|{{PAGENAME}}}}}]] }}
{{ #if: {{{location|}}} | {{!}}-
{{!}} colspan="2" style="text-align: center; border-bottom: 1px solid #C9AFFF; border-top: 1px solid #C9AFFF; background-color: #ddddff" {{!}} '''Location'''
{{!}}-
{{!}} colspan="2" style="text-align: center; padding: 2px" {{!}} [[File:{{{location|}}}|{{{locationwidth|250px}}}|frameless]] }}
{{ #if: {{{flag|}}} | {{!}}-
{{!}} colspan="2" style="text-align: center; border-bottom: 1px solid #C9AFFF; border-top: 1px solid #C9AFFF; background-color: #ddddff" {{!}} '''Flag'''
{{!}}-
{{!}} colspan="2" style="text-align: center; padding: 2px" {{!}} [[File:{{{flag|}}}|{{{flagwidth|108px}}}|frameless]] }}
|-
| 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}} }}
{{ #if: {{{government|}}} | {{quickbar item|heading=Government|value={{{government|}}}}} | {{quickbar empty}} }}
{{ #if: {{{currency|}}} | {{quickbar item|heading=Currency|value={{{currency|}}}}} | {{quickbar empty}} }}
{{ #if: {{{area|}}} | {{quickbar item|heading=Area|value={{{area|}}}}} | {{quickbar empty}} }}
{{ #if: {{{population|}}} | {{quickbar item|heading=Population|value={{{population|}}}}} | {{quickbar empty}} }}
{{ #if: {{{language|}}} | {{quickbar item|heading=Language|value={{{language|}}}}} | {{quickbar empty}} }}
{{ #if: {{{religion|}}} | {{quickbar item|heading=Religion|value={{{religion|}}}}} | {{quickbar empty}} }}
{{ #if: {{{electricity|}}} | {{quickbar item|heading=[[Electrical systems|Electricity]]|value={{{electricity|}}}}} | {{quickbar empty}} }}
{{ #if: {{{callingcode|}}} | {{quickbar item|heading=[[List of country calling codes|Country code]]|value={{{callingcode|}}}}} | {{quickbar empty}} }}
{{ #if: {{{tld|}}} | {{quickbar item|heading=Internet TLD|value={{{tld|}}}}} | {{quickbar empty}} }}
{{ #if: {{{timezone|}}} | {{quickbar item|heading=[[Time zones|Time Zone]]|value={{{timezone|}}}}} | {{quickbar empty}} }}
{{ #if: {{{emergencies|}}} | {{quickbar item|heading=Emergencies|value={{{emergencies|}}}}} | {{quickbar empty}} }}
|}
</div><rdf>
<http://wikitravel.org/en/{{PAGENAMEE}}> dcterms:spatial <urn:x-wikitravel:en:{{PAGENAMEE}}> .
<urn:x-wikitravel:en:{{PAGENAMEE}}> a wts:Country .
</rdf><!-- end quick bar --><noinclude>

This template places a consistently-formatted summary of standard information at the top of every country article. Other destinations may also use a quick bar providing relevant information is available. Please discuss on the [[Template talk:Quickbar]] page if you feel that quickbars should be used for other article types.

Note that the lead and location images MUST NOT be wider than 250px, and the flag image '''should be 108px'''; if the width fields are not set, it will default to this. Remember, DO NOT add the <code><nowiki>[[File: |noframe|250px]]</nowiki></code> to any of the images, just the image name with the type suffix. The template uses the following format:

<pre><nowiki>
{{quickbar
| image=image file name
| imagewidth=optionally set the lead image's size; defaults to 250px
| caption=shows a caption when the image is hovered over
| flag=flag.svg
| flagwidth=optional and sparingly used for flags such as [[Nepal|Nepal's]]; defaults to 108px
| location=location.png
| locationwidth=optionally set the size of the map; defaults to 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=Country calling code preceded by +
| tld=internet top level domain
| timezone=time zone(s) in relation to UTC
| emergencies=emergency phone number(s) to dial for ambulance, fire, police, etc
}}
</nowiki></pre>

[[Category:Formatting templates|Quickbar]]
</noinclude>
Bureaucrats, developer, smwadministrator, Administrators
10,246

edits