Difference between revisions of "Template:Infobox Country"

From Hitchwiki
Jump to navigation Jump to search
m
 
(39 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{| class="infobox" style="width: 25em; text-align: left; font-size: 90%; float: right; border-left: 1px solid #aaa; border-top: 1px solid #aaa; border-right: 1px solid #aaa; border-bottom: 1px solid #aaa;"
+
{| class="infobox mw-collapsible"
 +
! colspan="2" class="infobox-h1" | <div>[[File:Flag of {{PAGENAME}}.svg|30px|border|Flag of {{PAGENAME}}]] {{PAGENAME}}</div>
 
|-
 
|-
| colspan="2" style="text-align:center; font-size: large;" | [[Image:flag_{{{country|{{PAGENAME}}}}}.png|30px|border|Flag of {{{country|{{PAGENAME}}}}}]] {{PAGENAME}}
+
| colspan="2" class="infobox-h2" | '''Information'''
 
|-
 
|-
| colspan="2" style="text-align:center;" | {{{map|}}}
+
! [[Language]]:
|-
+
| {{{language|}}}
| colspan="2" align=center style="background:#D8E2EF;" | '''Information'''
 
|-
 
 
 
! Language:
 
| {{{language}}}
 
 
|-  
 
|-  
 
! Capital:
 
! Capital:
| {{{capital}}}
+
| {{{capital|}}}
 
|-
 
|-
 
! Population:
 
! Population:
| {{{pop}}}
+
| {{{pop|}}}
 
|-
 
|-
 
! Currency:
 
! Currency:
| {{{currency}}}
+
| {{{currency|}}}
 +
|-
 +
{{#if: {{{paved|}}} | ! Paved roads:
 +
{{!}} {{{paved}}} }}  
 
|-
 
|-
 
! [[Hitchwiki:Hitchability|Hitchability]]:
 
! [[Hitchwiki:Hitchability|Hitchability]]:
| {{{hitch}}}
+
| {{{hitch|}}}
 +
|-
 +
{{#if: {{{hitchbase|}}}{{{avp|}}}{{{links|}}} | ! More info:
 +
{{!}} {{#if: {{{hitchbase|}}} | [http://hitchbase.com/orte.php?LANG=eng&l_id={{{hitchbase}}} Hitchbase] }} {{#if: {{{avp|}}} | [http://ve.free-travels.ru/articles/item.php?country={{{avp}}} AVP Free Encyclopedia {{ru}}] }} {{{links|}}} }}
 +
|-
 +
! colspan=2 {{!}} Meet fellow hitchhikers on [https://www.trustroots.org/search?location={{urlencode:{{PAGENAME}}}} Trustroots] {{#if: {{{BW|}}} | or [http://www.bewelcome.org/places/{{PAGENAMEE}}/{{{BW}}} BeWelcome] }}
 +
|-
 +
| colspan="2" class="infobox-map" | {{{map|}}}
 
|}{{IsIn|{{{in|}}}}}
 
|}{{IsIn|{{{in|}}}}}
 
<noinclude>
 
<noinclude>
Line 27: Line 33:
 
<pre>
 
<pre>
 
{{Infobox Country
 
{{Infobox Country
|country =
 
 
|in =  
 
|in =  
 
|map =
 
|map =
Line 35: Line 40:
 
|currency =  
 
|currency =  
 
|hitch =  
 
|hitch =  
 +
|hitchbase =
 +
|avp =
 +
|links =
 +
|paved =
 +
|BW =
 
}}</pre>
 
}}</pre>
  
Note: This template automatically
+
Note: This template automatically adds the ''breadcrumb navigation'' via parameter “in” ([[Template:IsIn]]).
* sorts the page on which it is used in the appropriate ''category'' of the continent or region of the earth as well as it automatically
 
* adds the ''breadcrumb navigation'' via parameter “in” ([[Template:IsIn]]).
 
 
Therefore the parameter should be filled in with the appropriate (article) name of the continent or region of the earth for each country.
 
Therefore the parameter should be filled in with the appropriate (article) name of the continent or region of the earth for each country.
(This way you save two redundant mentions of the continent's/region's name...)
 
 
  
 
[[Category:Templates]]
 
[[Category:Templates]]
  
 
[[de:Vorlage:Infobox Land]]
 
[[de:Vorlage:Infobox Land]]
[[fr:Infobox Pays]]
+
[[fr:Modèle:Infobox Pays]]
 
[[ru:Инфо-врезка Страна]]
 
[[ru:Инфо-врезка Страна]]
 
</noinclude>
 
</noinclude>

Latest revision as of 15:05, 31 August 2016

Flag of Infobox Country Infobox Country
Information
Language:
Capital:
Population:
Currency:
Hitchability:
Meet fellow hitchhikers on Trustroots

Usage:

{{Infobox Country
|in = 
|map =
|language = 
|capital = 
|pop = 
|currency = 
|hitch = 
|hitchbase = 
|avp = 
|links =
|paved = 
|BW =
}}

Note: This template automatically adds the breadcrumb navigation via parameter “in” (Template:IsIn). Therefore the parameter should be filled in with the appropriate (article) name of the continent or region of the earth for each country.