Difference between revisions of "Template:Infobox German Location"

From Hitchwiki
Jump to navigation Jump to search
m
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 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 = Germany
+
|name =
 +
|name_native =
 +
|symbol =  
 
|map =  
 
|map =  
 
|pop =  
 
|pop =  
Line 11: Line 12:
 
|plate =  
 
|plate =  
 
|motorways =  
 
|motorways =  
 +
|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 german federal state by the parameter “state”.
 
Also it automatically adds the breadcrumb navigation ([[Template:IsIn]]).
 
So you save two redundant mentions of the state's (“Bundesland”) 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 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}}
 +
|BW = Germany/DE/Bavaria/02/Nuremberg/2861650
 +
}}</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}}
 +
|BW = Germany/DE/Bavaria/02/Nuremberg/2861650
 +
}}
 
|-
 
|-
| colspan="2" style="text-align: center;" | {{{map|}}}
+
| <pre>{{Infobox German Location
|-
+
|map = <map lat='54.3245' lng='10.13' zoom='11' />
| colspan="2" style="text-align: center; background:#D8E2EF;" | '''Information'''
+
|pop = 236902
|-  
+
|state = Schleswig-Holstein
! Country:
+
|plate = KI
| [[File:flag_Germany.png|20x18px|border|Flag of Germany]] [[Germany]]
+
|motorways = [[A7 (Germany)|A7]], [[A210 (Germany)|A210]], [[A215 (Germany)|A215]]
|-  
+
}}</pre>
! State:
+
| {{Infobox German Location
| [[File:Coat_of_arms_of_{{{state}}}.png|18px|border|Coat of arms 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|}}}
| {{ #ifeq: {{{BW|null}}} | null | | '''Find a host through''' [http://www.bewelcome.org/places/{{{BW}}} Be Welcome] }}
+
|country = Germany
|-
+
|state = {{{state|}}}
!More Info: 
+
|state_symbol = Coat_of_arms_of_{{{state}}}.png
| {{ #ifeq: {{{hitchbase|null}}} | null | | [http://hitchbase.com/ergebnisse.php?LANG=ger&abfrage%5Bstartort%5D={{{hitchbase}}} Hitchbase] }}
+
|symbol = {{{symbol|}}}
|-
+
|map = {{{map|}}}
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
+
|pop = {{{pop|}}}
|}<includeonly>[[Category:{{{state|}}}{{IsIn|{{{state}}}}}]]</includeonly><noinclude>
+
|motorways = {{{motorways|}}}
 
+
|BW = {{{BW|}}}
 
+
|hitchbase = {{{hitchbase|}}}
[[Category:Templates]]
+
|links = {{{links|}}}
[[Category:Germany]]</noinclude>
+
}}</includeonly><noinclude>
 +
[[Category:Infoboxes]]
 +
</noinclude>

Revision as of 00:09, 26 November 2014

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 = 
|BW = 
|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}}
|BW = Germany/DE/Bavaria/02/Nuremberg/2861650
}}
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
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
Major roads: A7, A210, A215
Meet fellow hitchhikers on Trustroots