Difference between revisions of "Template:Infobox Location"

From Hitchwiki
Jump to navigation Jump to search
Line 34: Line 34:
 
|-
 
|-
 
! Country:
 
! Country:
|[[Image:flag_{{{country}}}.png|20x18px|border|Flag of {{{country}}}]] [[{{{country}}}]]
+
|[[File:Flag of {{{country}}}.svg|20px|border|Flag of {{{country}}}]] [[{{{country}}}]]
 
|-
 
|-
 
! State:
 
! State:
| {{{state|}}}
+
| {{{state}}}
 
|-
 
|-
 
! Population:
 
! Population:
Line 43: Line 43:
 
|-
 
|-
 
! Licence Plate:
 
! Licence Plate:
| '''{{{plate|}}}'''
+
| '''{{{plate}}}'''
 
|-
 
|-
 
! Motorways:
 
! Motorways:
 
| {{{motorways}}}
 
| {{{motorways}}}
 
|-
 
|-
! More Info:
+
{{#if: {{{hitchbase|}}}| ! More Info:
| {{#ifeq: {{{hitchbase|null}}} | null | | [http://hitchbase.com/ergebnisse.php?LANG=ger&abfrage%5Bstartort%5D={{{hitchbase}}} Hitchbase] }}
+
| [http://hitchbase.com/ergebnisse.php?LANG=ger&abfrage%5Bstartort%5D={{{hitchbase}}} Hitchbase] | }}
|-
 
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
 
 
|}<includeonly>{{#ifexist: Category:{{{state}}}|[[Category:{{{state}}}]]|[[Category:{{{country}}}]]}}{{#ifexist: {{{state}}}|{{IsIn|{{{state}}}}}|{{IsIn|{{{country}}}}}}}</includeonly><noinclude>
 
|}<includeonly>{{#ifexist: Category:{{{state}}}|[[Category:{{{state}}}]]|[[Category:{{{country}}}]]}}{{#ifexist: {{{state}}}|{{IsIn|{{{state}}}}}|{{IsIn|{{{country}}}}}}}</includeonly><noinclude>
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 00:14, 14 September 2014

This template can be used to produce an Infobox for human settlements (cities, towns, villages, communities) as well as other administrative districts, counties, provinces, etc.

How to use this Template?

For using this template, copy&paste the following code to the top of the city article you want to edit.

{{Infobox Location
|country = 
|state = 
|map = 
|pop = 
|plate = 
|motorways = 
}}

How to fill in the stuff

After adding the code, you can fill in the information. Remember to fill in the English name of the state, if you're not sure, just leave it blank so that another hitchhiker can edit it. pop = population of the city, plate = licence plate of the region/city if existing; and motorways the motorways nearby the city.

Thanks a lot and have fun using the template. For more information about this, have a look at How to add the country infobox.

Note: This template automatically sorts the page on which it is used in the appropriate category of the state/province/region by the parameter “state” if filled in - else it uses the parameter “country”. Likewise it automatically adds the breadcrumb navigation (Template:IsIn). So you save two redundant mentions of the state's/province/region name...


Hitchbase
Infobox Location
Information
Country: [[File:Flag of {{{country}}}.svg|20px|border|Flag of {{{country}}}]] [[{{{country}}}]]
State: {{{state}}}
Population: {{{pop}}}
Licence Plate: {{{plate}}}
Motorways: {{{motorways}}}