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

From Hitchwiki
Jump to navigation Jump to search
Line 6: Line 6:
 
| colspan="2" class="infobox-h2" | '''Information'''
 
| colspan="2" class="infobox-h2" | '''Information'''
 
|-
 
|-
! Country:
+
! Country: {{IsIn|{{{country}}}}}
 
|[[File:Flag of {{{country}}}.svg|20px|border|Flag of {{{country}}}]] [[{{{country}}}]]
 
|[[File:Flag of {{{country}}}.svg|20px|border|Flag of {{{country}}}]] [[{{{country}}}]]
 
|-
 
|-
{{#if: {{{state|}}}| ! State:
+
{{#if: {{{state|}}} | ! State: {{#ifexist: {{{state}}} | {{IsIn|{{{state}}}}} | {{#ifexist: Category:{{{state}}} | {{IsIn|Category:{{{state}}}}} }} }}
{{!}} {{{state}}} }}
+
{{!}} [[{{{state}}}]] }}
 
|-
 
|-
{{#if: {{{region|}}}| ! Region:
+
{{#if: {{{region|}}} | ! Region: {{#ifexist: {{{region}}} | {{IsIn|{{{region}}}}} | {{#ifexist: Category:{{{region}}} | {{IsIn|Category:{{{region}}}}} }} }}
{{!}} {{{region}}} }}
+
{{!}} [[{{{region}}}]] }}
 
|-
 
|-
{{#if: {{{subdivision_type|}}}| {{#if: {{{subdivision_name|}}}| ! {{ucfirst:{{{subdivision_type}}}}}:
+
{{#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: {{{pop|}}}| ! Population:
+
{{#if: {{{pop|}}} | ! Population:
 
{{!}} {{{pop}}} }}
 
{{!}} {{{pop}}} }}
 
|-
 
|-
{{#if: {{{plate|}}}| ! Licence Plate:
+
{{#if: {{{plate|}}} | ! Licence Plate:
 
{{!}} '''{{{plate}}}''' }}
 
{{!}} '''{{{plate}}}''' }}
 
|-
 
|-
{{#if: {{{motorways|}}}| ! Motorways:
+
{{#if: {{{motorways|}}} | ! Motorways:
 
{{!}} {{{motorways}}} }}
 
{{!}} {{{motorways}}} }}
 
|-
 
|-
{{#if: {{{hitchbase|}}}| ! More Info:
+
{{#if: {{#expr: {{{hitchbase|}}} or {{{links|}}} }} | ! More Info:
{{!}} [http://hitchbase.com/ergebnisse.php?LANG=ger&abfrage%5Bstartort%5D={{{hitchbase}}} Hitchbase] }}
+
{{!}} {{#if: {{{hitchbase|}}} | [http://hitchbase.com/ergebnisse.php?LANG=eng&abfrage%5Bstartort%5D={{{hitchbase}}} Hitchbase] }}{{{links|}}} }}
 +
|-
 +
| {{#if: {{{BW|}}} | '''Find a host through''' [http://www.bewelcome.org/places/{{{BW}}} BeWelcome] }}
 
|}
 
|}
<includeonly><!-- ISIN -->
+
<includeonly>
 
[[Category:{{{country}}}]]
 
[[Category:{{{country}}}]]
 
{{#if: {{{state|}}}| [[Category:{{{state}}}]] }}
 
{{#if: {{{state|}}}| [[Category:{{{state}}}]] }}

Revision as of 15:53, 17 September 2014

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