Difference between revisions of "Template:Infobox Location"

From Hitchwiki
Jump to navigation Jump to search
m
Line 52: Line 52:
 
|-
 
|-
 
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
 
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
|}<includeonly>{{#ifexist: Category:{{{state}}}|[[Category:{{{state}}}]]|[[Category:{{{country}}}]]}}{{#ifexist: {{{state}}}|{{IsIn|{{{state}}}}}|{{IsIn|{{{country}}}}}}}</includeonly>
+
|}<includeonly>{{#ifexist: Category:{{{state}}}|[[Category:{{{state}}}]]|[[Category:{{{country}}}]]}}{{#ifexist: {{{state}}}|{{IsIn|{{{state}}}}}|{{IsIn|{{{country}}}}}}}</includeonly><noinclude>
 
 
<noinclude>
 
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 23:08, 27 April 2009

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...


Infobox Location
Information
Country: [[Image:flag_{{{country}}}.png|20x18px|border|Flag of {{{country}}}]] [[{{{country}}}]]
State:
Population: {{{pop}}}
Licence Plate: '
Motorways: {{{motorways}}}
More Info: