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/working"

From Wikitravel
Jump to: navigation, search
m (Reverted edits by W. Frank (Talk) to last version by LtPowers)
Line 1: Line 1:
<!-- begin quick bar --><div id="quickbar" style="float: right; margin: 0 0 1em 1em">
+
<!-- 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"
 
{| 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'''
+
| colspan="2" style="text-align: center; vertical-align: middle; border-bottom: 1px solid #C9AFFF; background-color: #ddddff" |
 +
  {| cellpadding="0" cellspacing="0" border="0" width="250" style="background-color: #ddddff"
 +
  |-
 +
  | <big>'''{{{name|{{PAGENAME}}}}}'''</big>
 +
{{#if: {{{flag|}}} | {{!}} width="{{{flagwidth|75px}}}" {{!}} [[{{{flag|}}}{{!}}{{{flagwidth|75px}}}{{!}}noframe]] }}
 +
  |}
 +
{{ #if: {{{location|}}} |
 +
  {{!}}-
 +
  {{!}} colspan="2" style="text-align: center; padding: 2px; border-bottom: 1px solid #C9AFFF;" {{!}} [[{{{location|}}}{{!}}250px{{!}}noframe]] }}
 
{{ #if: {{{capital|}}} | {{quickbar item|heading=Capital|value={{{capital|}}}}} | {{quickbar empty}} }}
 
{{ #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: {{{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: {{{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: {{{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: {{{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}} }}
+
 
{{ #if: {{{timezone|}}} | {{quickbar item|heading=[[Time zones|Time Zone]]|value={{{timezone|}}}}} | {{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>
{| cellspacing="0" cellpadding="0" style="clear: right; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none;"
+
| __TOC__
+
|}
+
</div>
+
<rdf>
+
 
<http://wikitravel.org/en/{{PAGENAMEE}}> dcterms:spatial <urn:x-wikitravel:en:{{PAGENAMEE}}> .
 
<http://wikitravel.org/en/{{PAGENAMEE}}> dcterms:spatial <urn:x-wikitravel:en:{{PAGENAMEE}}> .
 
<urn:x-wikitravel:en:{{PAGENAMEE}}> a wts:Country .
 
<urn:x-wikitravel:en:{{PAGENAMEE}}> a wts:Country .
</rdf><!-- end quick bar --><noinclude>
+
</rdf>
 +
<!-- end quick bar --><noinclude>
  
==Usage==
+
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''.
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 US 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.
+
  
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:
+
It uses the following format:
  
 
<pre><nowiki>
 
<pre><nowiki>
{{quickbar
+
{{quickbar/working
| image=image file name
+
| name=Country Name (if different from the PAGENAME)
| imagewidth=optionally set the lead image's size; defaults to 250px
+
| flag=Image:flag.png
| caption=shows a caption when the image is hovered over
+
| flagwidth=50px (defaults to 75px; override only if necessary)
| flag=flag.svg
+
| location=Image:location.png
| 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]]
 
| capital=[[Capital]]
| government=type of government
 
 
| currency=currency used
 
| currency=currency used
| area=land area
 
 
| population=recent population estimate
 
| population=recent population estimate
| language=[[Language1]], [[Language2]], Language3, ...
 
| religion=common religion(s)
 
 
| electricity=electrical voltage and current (plug type)
 
| electricity=electrical voltage and current (plug type)
| callingcode=Country calling code preceded by +
+
| callingcode=calling code
| tld=internet top level domain
+
 
| timezone=time zone(s) in relation to UTC
 
| timezone=time zone(s) in relation to UTC
| emergencies=emergency phone number(s) to dial for ambulance, fire, police, etc
 
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>

Revision as of 20:06, 14 October 2013

Quickbar/working


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.

It uses the following format:

{{quickbar/working
| name=Country Name (if different from the PAGENAME)
| flag=Image:flag.png
| flagwidth=50px (defaults to 75px; override only if necessary)
| location=Image:location.png
| capital=[[Capital]]
| currency=currency used
| population=recent population estimate
| electricity=electrical voltage and current (plug type)
| callingcode=calling code
| timezone=time zone(s) in relation to UTC
}}

Variants

Actions

Destination Docents

In other languages