Difference between revisions of "Template:Infobox German Location"

From Hitchwiki
Jump to navigation Jump to search
m
 
(16 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>;'''How to use this Template?'''
+
<noinclude>
 
+
== How to use this Template? ==
For using this template, copy&paste the following code to the '''top''' of the German city article you want to edit.
+
For using this template, copy&paste the following code to the '''top''' of the German city article you want to edit. You can delete unused parameters. To better understand how to use it see [[#Examples|examples]] bellow. You can also use [[:Template:Infobox Location]] instead.
 
 
 
<pre>
 
<pre>
 
{{Infobox German Location
 
{{Infobox German Location
|country =  
+
|name =
 +
|name_native =
 +
|symbol =  
 
|map =  
 
|map =  
 +
|pop =
 
|state =  
 
|state =  
|pop =
 
 
|plate =  
 
|plate =  
 
|motorways =  
 
|motorways =  
 +
|hitchbase =
 +
|links =
 
}}
 
}}
 
</pre>
 
</pre>
;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; and ''motorways'' the motorways nearby the city.
+
== Examples ==
 
+
{| class="wikitable"
Thanks a lot and have fun using the template. For more information about this, have a look at [[How to add the country infobox]].
+
! Code
----
+
! Result
</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 German Location
 +
|name = Nuremberg
 +
|name_native = Nürnberg
 +
|symbol = Wappen von Nürnberg.svg
 +
|map = <map lat='49.417' lng='11.1' zoom='10' />
 +
|pop = 502491
 +
|state = Bavaria
 +
|plate = N
 +
|motorways = {{Ade|3}} {{Ade|6}} {{Ade|9}} {{Ade|73}}
 +
}}</pre>
 +
| {{Infobox German Location
 +
|name = Nuremberg
 +
|name_native = Nürnberg
 +
|symbol = Wappen von Nürnberg.svg
 +
|map = <map lat='49.417' lng='11.1' zoom='10' />
 +
|pop = 502491
 +
|state = Bavaria
 +
|plate = N
 +
|motorways = {{Ade|3}} {{Ade|6}} {{Ade|9}} {{Ade|73}}
 +
}}
 
|-
 
|-
| colspan="2" style="text-align:center;" | {{{map}}}
+
| <pre>{{Infobox German Location
|-
+
|map = <map lat='54.3245' lng='10.13' zoom='11' />
| colspan="2" align=center style="background:#D8E2EF;" | '''Information''
+
|pop = 236902
|-  
+
|state = Schleswig-Holstein
! Country:
+
|plate = KI
| [[Image:flag_{{{country}}}.png|20x18px|border|Flag of {{{country}}}]] [[{{{country}}}]]
+
|motorways = [[A7 (Germany)|A7]], [[A210 (Germany)|A210]], [[A215 (Germany)|A215]]
|-
+
}}</pre>
! State:
+
| {{Infobox German Location
| [[Image:Coat_of_arms_of_{{{state}}}.png|18px|border|Coat of arms of of {{{state}}}]] [[{{{state}}}]]
+
|name = Kiel
|-
+
|map = <map lat='54.3245' lng='10.13' zoom='11' />
! Population:
+
|pop = 236902
| {{{pop}}}
+
|state = Schleswig-Holstein
|-
+
|plate = KI
! Licence Plate:
+
|motorways = [[A7 (Germany)|A7]], [[A210 (Germany)|A210]], [[A215 (Germany)|A215]]
| '''{{{plate}}}'''
+
}}
|-
+
|}
! Motorways:
+
</noinclude><includeonly>{{Infobox Location
| {{{motorways}}}
+
|name = {{{name|}}}
|-
+
|name_native = {{{name_native|}}}
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
+
|country = Germany
|}<noinclude>
+
|state = {{{state|}}}
 
+
|state_symbol = Coat_of_arms_of_{{{state}}}.png
 
+
|symbol = {{{symbol|}}}
[[Category:Templates]]
+
|map = {{{map|}}}
[[Category:Germany]]</noinclude>
+
|pop = {{{pop|}}}
 +
|plate = {{{plate|}}}
 +
|motorways = {{{motorways|}}}
 +
|hitchbase = {{{hitchbase|}}}
 +
|links = {{{links|}}}
 +
}}</includeonly><noinclude>
 +
[[Category:Infoboxes]]
 +
</noinclude>

Latest revision as of 08:24, 3 October 2017

How to use this Template?

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

{{Infobox German Location
|name = 
|name_native = 
|symbol = 
|map = 
|pop = 
|state = 
|plate = 
|motorways = 
|hitchbase = 
|links = 
}}

Examples

Code Result
{{Infobox German Location
|name = Nuremberg
|name_native = Nürnberg
|symbol = Wappen von Nürnberg.svg
|map = <map lat='49.417' lng='11.1' zoom='10' />
|pop = 502491
|state = Bavaria
|plate = N
|motorways = {{Ade|3}} {{Ade|6}} {{Ade|9}} {{Ade|73}}
}}
Wappen von Nürnberg.svgNuremberg
Nürnberg
<map lat='49.417' lng='11.1' zoom='10' />
Information
Country:
Flag of Germany
Germany
State:
Coat of arms of Bavaria.png
Bavaria
Population: 502,491
Licence plate: N
Major roads: A 3 A 6 A 9 A 73
Meet fellow hitchhikers on Trustroots
{{Infobox German Location
|map = <map lat='54.3245' lng='10.13' zoom='11' />
|pop = 236902
|state = Schleswig-Holstein
|plate = KI
|motorways = [[A7 (Germany)|A7]], [[A210 (Germany)|A210]], [[A215 (Germany)|A215]]
}}
Kiel
<map lat='54.3245' lng='10.13' zoom='11' />
Information
Country:
Flag of Germany
Germany
State:
Coat of arms of Schleswig-Holstein.png
Schleswig-Holstein
Population: 236,902
Licence plate: KI
Major roads: A7, A210, A215
Meet fellow hitchhikers on Trustroots