Difference between revisions of "Template:Infobox Swedish Location"

From Hitchwiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
== Usage ==
+
== How to use this Template? ==
 +
For using this template, copy&paste the following code to the '''top''' of the Swedish 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 Swedish Location
 
{{Infobox Swedish Location
|map      =  
+
|name =
|country  =  
+
|name_native =
|län      =
+
|symbol =
|pop       =  
+
|county =
 +
|county_symbol =
 +
|municipality =  
 +
|municipality_symbol =  
 +
|map =  
 +
|pop =  
 
|motorways =  
 
|motorways =  
|footnotes =  
+
|BW =
 +
|hitchbase =
 +
|links =  
 
}}
 
}}
 
</pre>
 
</pre>
Thanks a lot and have fun using the template. For more information about this, have a look at [[How to add the country infobox]].
 
  
== When filling in ==
+
== Example ==
The page will be put into a Category according to what you write in ''country'' − so write ''Sweden'' here... The breadcrumb navigation ([[Template:IsIn]]) will be added according to what you write in ''län'' (county).
+
{| class="wikitable"
 
+
! Code
</noinclude>{| class="infobox borderless" style="width: 25em; text-align: left; font-size: 90%;"
+
! Result
 
|-
 
|-
| colspan="2" style="text-align:center; font-size: large;" | {{PAGENAME}}
+
| <pre>{{Infobox Swedish Location
|-
+
|name = Gothenburg
| colspan="2" style="text-align:center;" | {{{map|}}}
+
|name_native = Göteborg
|-
+
|symbol = Göteborg kommunvapen - Riksarkivet Sverige.png
| colspan="2" style="text-align:center; background:#D8E2EF;" | '''Administration'''
+
|county = Västra Götaland
|-
+
|county_symbol = Västra Götaland vapen.svg
! Country:
+
|municipality =
| [[Image:flag_of_{{{country}}}.png|20x18px|border|Flag of {{{country}}}]] [[{{{country}}}]]
+
|municipality_symbol =
|-
+
|map = <map lat='57.7' lng='12' zoom='11' />
! Län:
+
|pop = 536790
| [[{{{län}}}]]
+
|motorways = {{E|6}} {{E|20}} {{E|45}}
|-
+
}}</pre>
! Population:
+
| {{Infobox Swedish Location
| {{{pop}}}
+
|name = Gothenburg
|-
+
|name_native = Göteborg
! Motorways:
+
|symbol = Göteborg kommunvapen - Riksarkivet Sverige.png
| {{{motorways}}}
+
|county = Västra Götaland
|-
+
|county_symbol = Västra Götaland vapen.svg
! More Info: 
+
|municipality =
| {{ #ifeq: {{{hitchbase|null}}} | null | | [http://hitchbase.com/ergebnisse.php?LANG=ger&abfrage%5Bstartort%5D={{{hitchbase}}} Hitchbase] }}
+
|municipality_symbol =
|-
+
|map = <map lat='57.7' lng='12' zoom='11' />
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
+
|pop = 536790
|}<includeonly>[[Category:{{{country|}}}{{IsIn|{{{län}}}}}]]</includeonly>
+
|motorways = {{E|6}} {{E|20}} {{E|45}}
<noinclude>
+
}}
[[Category:Templates]]
+
|}
[[Category:Sweden]]</noinclude>
+
</noinclude><includeonly>{{Infobox Location
 +
|name = {{{name|}}
 +
|name_native = {{{name_native|}}}
 +
|symbol = {{{symbol|}}}
 +
|country = Sweden
 +
|subdivision_type = County (län)
 +
|subdivision_name = {{{county|}}}{{{län|}}}
 +
|subdivision_symbol = {{{county_symbol|}}}
 +
|subdivision2_type = Municipality
 +
|subdivision2_name = {{{municipality|}}}
 +
|subdivision2_symbol = {{{municipality_symbol|}}}
 +
|map = {{{map|}}}
 +
|pop = {{{pop|}}}
 +
|motorways = {{{motorways|}}}
 +
|BW = {{{BW|}}}
 +
|hitchbase = {{{hitchbase|}}}
 +
|links = {{{links|}}}
 +
}}</includeonly><noinclude>
 +
[[Category:Infoboxes]]
 +
</noinclude>

Revision as of 03:23, 31 October 2014

How to use this Template?

For using this template, copy&paste the following code to the top of the Swedish 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 Swedish Location
|name = 
|name_native = 
|symbol = 
|county = 
|county_symbol = 
|municipality = 
|municipality_symbol = 
|map = 
|pop = 
|motorways = 
|BW = 
|hitchbase = 
|links = 
}}

Example

Code Result
{{Infobox Swedish Location
|name = Gothenburg
|name_native = Göteborg
|symbol = Göteborg kommunvapen - Riksarkivet Sverige.png
|county = Västra Götaland
|county_symbol = Västra Götaland vapen.svg
|municipality = 
|municipality_symbol = 
|map = <map lat='57.7' lng='12' zoom='11' />
|pop = 536790
|motorways = {{E|6}} {{E|20}} {{E|45}}
}}
Göteborg
<map lat='57.7' lng='12' zoom='11' />
Information
Country:
Flag of Sweden
Sweden
County (län):
Västra Götaland vapen.svg
Västra Götaland
Population: 536,790
Major roads: E 6 E 20 E 45
Meet fellow hitchhikers on Trustroots