Difference between revisions of "Template:Infobox Polish Location"

From Hitchwiki
Jump to navigation Jump to search
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
== How to use this Template? ==
 
== How to use this Template? ==
For using this template, copy&paste the following code to the '''top''' of the Polish city article you want to edit.
+
For using this template, copy&paste the following code to the '''top''' of the Polish city article you want to edit. You can delete unused parameters. To better understand how to use it see [[#Example|example]] bellow. You can also use [[:Template:Infobox Location]] instead.
 
 
 
<pre>
 
<pre>
 
{{Infobox Polish Location
 
{{Infobox Polish Location
|country =  
+
|name =  
|state =  
+
|name_native =
 +
|symbol =  
 
|map =  
 
|map =  
 
|pop =  
 
|pop =  
 +
|voivodeship =
 
|plate =  
 
|plate =  
|motorways =
+
|roads =  
|expressways =
+
|BW =
 +
|hitchbase =
 +
|links =  
 
}}
 
}}
 
</pre>
 
</pre>
  
== How to fill in the stuff ==
+
== Examples ==
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; and ''motorways'' the motorways nearby the city.
+
{| class="wikitable"
 
+
! Code
Thanks a lot and have fun using the template. For more information about this, have a look at [[How to add the country infobox]].
+
! Result
 
 
'''Note''': This template automatically sorts the page on which it is used in the appropriate category of the Polish ''voivodeship'' by the parameter ''state''.
 
Also it automatically adds the breadcrumb navigation ([[Template:IsIn]]).
 
So you save two redundant mentions of the state's (“voivodeship”) name...
 
----
 
</noinclude>{| class="infobox borderless" style="width: 25em; text-align: left; font-size: 90%;"
 
 
|-
 
|-
| colspan="2" style="text-align:center; font-size: large;" | {{PAGENAME}}
+
| <pre>{{Infobox Polish Location
|-
+
|name_native = Warszawa
| colspan="2" style="text-align:center;" | {{{map|}}}
+
|map = <map lat='52.23' lng='21.086' zoom='9' />
|-
+
|pop = 1729119
| colspan="2" align=center style="background:#D8E2EF;" | '''Information'''
+
|plate = WA, WB, WD, WE, WF, WH, WI, WJ, WK, WN, WT, WU, WW, WX, WY
|-
+
|roads = {{Apl|2}} {{Spl|2}} {{Spl|8}} {{Spl|79}}
! Country:
+
|voivodeship = Masovian (Voivodeship)
| [[Image:flag_{{{country}}}.png|20x18px|border|Flag of {{{country}}}]] [[{{{country}}}]]
+
}}</pre>
|-
+
| {{Infobox Polish Location
! State:
+
|name = Warsaw
| [[Image:Coat_of_arms_of_{{{state}}}.png|18px|border|Coat of arms of {{{state}}}]] [[{{{state}}}]]
+
|name_native = Warszawa
|-
+
|map = <map lat='52.23' lng='21.086' zoom='9' />
! Population:
+
|pop = 1709781
| {{{pop}}}
+
|plate = WA, WB, WD, WE, WF, WH, WI, WJ, WK, WN, WT, WU, WW, WX, WY
|-
+
|roads = {{Apl|2}} {{Spl|2}} {{Spl|8}} {{Spl|79}}
! Licence Plate:
+
|voivodeship = Masovian (Voivodeship)
| '''{{{plate}}}'''
+
}}
|-
+
|}
! Motorways:
+
</noinclude><includeonly>{{Infobox Location
| {{{motorways}}}
+
|name = {{{name|}}}
|-
+
|name_native = {{{name_native|}}}
! Expressways: 
+
|country = Poland
| {{{expressways}}}
+
|subdivision_type = voivodeship
|-
+
|subdivision_name = {{{voivodeship|{{{state|}}}}}}
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
+
|subdivision_symbol = Coat_of_arms_of_{{{voivodeship|{{{state}}}}}}.png
|}<includeonly>[[Category:{{{state|}}}{{IsIn|{{{state}}}}}]]</includeonly><noinclude>
+
|symbol = {{{symbol|}}}
 
+
|map = {{{map|}}}
 
+
|pop = {{{pop|}}}
[[Category:Templates]]
+
|plate = {{{plate|}}}
[[Category:Poland]]</noinclude>
+
|roads = {{{roads|{{{motorways|}}}{{{expressways|}}}}}}
 +
|BW = {{{BW|}}}
 +
|hitchbase = {{{hitchbase|}}}
 +
|links = {{{links|}}}
 +
}}</includeonly><noinclude>
 +
[[Category:Infoboxes]]
 +
</noinclude>

Latest revision as of 00:03, 28 November 2014

How to use this Template?

For using this template, copy&paste the following code to the top of the Polish city article you want to edit. You can delete unused parameters. To better understand how to use it see example bellow. You can also use Template:Infobox Location instead.

{{Infobox Polish Location
|name = 
|name_native = 
|symbol = 
|map = 
|pop = 
|voivodeship = 
|plate = 
|roads = 
|BW = 
|hitchbase = 
|links = 
}}

Examples

Code Result
{{Infobox Polish Location
|name_native = Warszawa
|map = <map lat='52.23' lng='21.086' zoom='9' />
|pop = 1729119
|plate = WA, WB, WD, WE, WF, WH, WI, WJ, WK, WN, WT, WU, WW, WX, WY
|roads = {{Apl|2}} {{Spl|2}} {{Spl|8}} {{Spl|79}}
|voivodeship = Masovian (Voivodeship)
}}
Warsaw
Warszawa
<map lat='52.23' lng='21.086' zoom='9' />
Information
Country:
Flag of Poland
Poland
Voivodeship:
Coat of arms of Masovian (Voivodeship).png
Masovian (Voivodeship)
Population: 1,709,781
Licence plate: WA, WB, WD, WE, WF, WH, WI, WJ, WK, WN, WT, WU, WW, WX, WY
Major roads: A 2 S 2 S 8 S 79
Meet fellow hitchhikers on Trustroots