Difference between revisions of "Template:Infobox Country"

From Hitchwiki
Jump to navigation Jump to search
m
 
(10 intermediate revisions by 3 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 {{{country|{{PAGENAME}} }}}]] {{PAGENAME}}
+
| colspan="2" class="infobox-h2" | '''Information'''
 
|-
 
|-
| colspan="2" align=center style="background:#D8E2EF;" | '''Information'''
 
|-
 
 
! [[Language]]:
 
! [[Language]]:
| {{{language}}}
+
| {{{language|}}}
 
|-  
 
|-  
 
! Capital:
 
! Capital:
| {{{capital}}}
+
| {{{capital|}}}
 
|-
 
|-
 
! Population:
 
! Population:
| {{{pop}}}
+
| {{{pop|}}}
 
|-
 
|-
 
! Currency:
 
! Currency:
| {{{currency}}} <!-- [http://www.xe.com/ucc/convert.cgi?Amount=1,000.00&From={{{currency}}}&To=EUR EUR] [http://www.xe.com/ucc/convert.cgi?Amount=1,000.00&From={{{currency}}}&To=USD USD] -->
+
| {{{currency|}}}
 
|-
 
|-
{{ #ifeq: {{{paved|null}}} | null | |
+
{{#if: {{{paved|}}} | ! Paved roads:  
! Paved roads:  
+
{{!}} {{{paved}}} }}  
{{!}} {{{paved}}}  
 
}}  
 
 
|-
 
|-
 
! [[Hitchwiki:Hitchability|Hitchability]]:
 
! [[Hitchwiki:Hitchability|Hitchability]]:
| {{{hitch}}}
+
| {{{hitch|}}}
 
|-
 
|-
!More Info:
+
{{#if: {{{hitchbase|}}}{{{avp|}}}{{{links|}}} | ! More info:
| {{ #ifeq: {{{hitchbase|null}}} | null | | [http://hitchbase.com/orte.php?l_id={{{hitchbase}}}&LANG=eng Hitchbase] }}  
+
{{!}} {{#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] }}
| {{ #ifeq: {{{avp|null}}} | null | | [http://ve.free-travels.ru/articles/item.php?country={{{avp}}} AVP Free Encyclopedia (ru)] ([http://209.85.135.104/translate_c?hl=en&langpair=ru%7Cen&u=http://ve.free-travels.ru/articles/item.php?country={{{avp}}} en]) <small>[[AVP Free Encyclopedia|Info]]</small>
 
}}
 
 
|-
 
|-
| colspan="2" | {{ #ifeq: {{{BW|null}}} | null | | '''Find a host through''' [http://www.bewelcome.org/places/{{{BW}}} Be Welcome] }}
+
| colspan="2" class="infobox-map" | {{{map|}}}
|-
 
| colspan="2" style="text-align:center;" | {{{map|}}}
 
 
|}{{IsIn|{{{in|}}}}}
 
|}{{IsIn|{{{in|}}}}}
 
<noinclude>
 
<noinclude>
Line 40: Line 33:
 
<pre>
 
<pre>
 
{{Infobox Country
 
{{Infobox Country
|country =
 
 
|in =  
 
|in =  
 
|map =
 
|map =
Line 50: Line 42:
 
|hitchbase =  
 
|hitchbase =  
 
|avp =  
 
|avp =  
 +
|links =
 
|paved =  
 
|paved =  
|BW =  
+
|BW =
 
}}</pre>
 
}}</pre>
  
 
Note: This template automatically adds the ''breadcrumb navigation'' via parameter “in” ([[Template:IsIn]]).
 
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.
 
Therefore the parameter should be filled in with the appropriate (article) name of the continent or region of the earth for each country.
 
  
 
[[Category:Templates]]
 
[[Category:Templates]]

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.