Difference between revisions of "Template:Infobox Location/sandbox"

From Hitchwiki
Jump to navigation Jump to search
Line 1: Line 1:
{| class="infobox mw-collapsible"
+
{{Category|{{{country}}}|{{{state}}}|{{{subdivision_name}}}|{{{region}}}|{{{subdivision2_name}}}}}<!--
 +
-->{| class="infobox mw-collapsible"
 
! colspan="2" class="infobox-h1" | <div>{{PAGENAME}}</div>
 
! colspan="2" class="infobox-h1" | <div>{{PAGENAME}}</div>
 
|-
 
|-
Line 10: Line 11:
 
|-
 
|-
 
{{#if: {{{state|}}} | ! State: {{#ifexist: {{{state}}} | {{IsIn|{{{state}}}}} | {{#ifexist: Category:{{{state}}} | {{IsIn|Category:{{{state}}}}} }} }}
 
{{#if: {{{state|}}} | ! State: {{#ifexist: {{{state}}} | {{IsIn|{{{state}}}}} | {{#ifexist: Category:{{{state}}} | {{IsIn|Category:{{{state}}}}} }} }}
{{!}} [[{{{state}}}]] }}
+
{{!}} [[{{{state}}}|]] }}
 
|-
 
|-
 
{{#if: {{{subdivision_type|}}} | {{#if: {{{subdivision_name|}}}| ! {{ucfirst:{{{subdivision_type}}}}}: {{#ifexist: {{{subdivision_name}}} | {{IsIn|{{{subdivision_name}}}}} | {{#ifexist: Category:{{{subdivision_name}}} | {{IsIn|Category:{{{subdivision_name}}}}} }} }}
 
{{#if: {{{subdivision_type|}}} | {{#if: {{{subdivision_name|}}}| ! {{ucfirst:{{{subdivision_type}}}}}: {{#ifexist: {{{subdivision_name}}} | {{IsIn|{{{subdivision_name}}}}} | {{#ifexist: Category:{{{subdivision_name}}} | {{IsIn|Category:{{{subdivision_name}}}}} }} }}
{{!}} [[{{{subdivision_name}}}]] }} }}
+
{{!}} [[{{{subdivision_name}}}|]] }} }}
 
|-
 
|-
 
{{#if: {{{region|}}} | ! Region: {{#ifexist: {{{region}}} | {{IsIn|{{{region}}}}} | {{#ifexist: Category:{{{region}}} | {{IsIn|Category:{{{region}}}}} }} }}
 
{{#if: {{{region|}}} | ! Region: {{#ifexist: {{{region}}} | {{IsIn|{{{region}}}}} | {{#ifexist: Category:{{{region}}} | {{IsIn|Category:{{{region}}}}} }} }}
{{!}} [[{{{region}}}]] }}
+
{{!}} [[{{{region}}}|]] }}
 
|-
 
|-
 
{{#if: {{{subdivision2_type|}}} | {{#if: {{{subdivision2_name|}}}| ! {{ucfirst:{{{subdivision2_type}}}}}: {{#ifexist: {{{subdivision2_name}}} | {{IsIn|{{{subdivision2_name}}}}} | {{#ifexist: Category:{{{subdivision2_name}}} | {{IsIn|Category:{{{subdivision2_name}}}}} }} }}
 
{{#if: {{{subdivision2_type|}}} | {{#if: {{{subdivision2_name|}}}| ! {{ucfirst:{{{subdivision2_type}}}}}: {{#ifexist: {{{subdivision2_name}}} | {{IsIn|{{{subdivision2_name}}}}} | {{#ifexist: Category:{{{subdivision2_name}}} | {{IsIn|Category:{{{subdivision2_name}}}}} }} }}
{{!}} [[{{{subdivision2_name}}}]] }} }}
+
{{!}} [[{{{subdivision2_name}}}|]] }} }}
 
|-
 
|-
 
{{#if: {{{pop|}}} | ! Population:
 
{{#if: {{{pop|}}} | ! Population:
Line 36: Line 37:
 
{{#if: {{{BW|}}} | ! colspan=2 {{!}} Find a host through [http://www.bewelcome.org/places/{{{BW}}} BeWelcome] }}
 
{{#if: {{{BW|}}} | ! colspan=2 {{!}} Find a host through [http://www.bewelcome.org/places/{{{BW}}} BeWelcome] }}
 
|}
 
|}
{{Category|{{{country}}}|{{{state}}}|{{{subdivision_name}}}|{{{region}}}|{{{subdivision2_name}}}}}
 

Revision as of 13:17, 22 October 2014

Infobox Location/sandbox
Information
Country: [[File:Flag of {{{country}}}.svg|20px|border|Flag of {{{country}}}]] [[{{{country}}}]]