Difference between revisions of "Template:Location/DE"

From Geohashing
imported>Fippe
m
(New Codes for Bremen and Bremerhaven)
Line 5: Line 5:
 
District codes can be issued to more than one district, and a district may have more than one code. If a district code is assigned to both a city and a rural district, use <code>city=true</code> to indicate that the expedition took place in the city, otherwise the template will assume it took place in the rural district. If a code is issued to more than one district, the this template will use the code of the district which has the name that the code derives from. For example, license plates with the code <code>BH</code> can be issued by both Landkreis Rastatt and Ortenaukreis. Since the city of Bühl, which <code>BH</code> is derived from, is located in Landkreis Rastatt, this template will use it for this district. Expeditions in Ortenaukreis can be tagged with other codes, among them <code>OG</code>.
 
District codes can be issued to more than one district, and a district may have more than one code. If a district code is assigned to both a city and a rural district, use <code>city=true</code> to indicate that the expedition took place in the city, otherwise the template will assume it took place in the rural district. If a code is issued to more than one district, the this template will use the code of the district which has the name that the code derives from. For example, license plates with the code <code>BH</code> can be issued by both Landkreis Rastatt and Ortenaukreis. Since the city of Bühl, which <code>BH</code> is derived from, is located in Landkreis Rastatt, this template will use it for this district. Expeditions in Ortenaukreis can be tagged with other codes, among them <code>OG</code>.
  
An special code is used to tag expeditions in the city of Bremerhaven, which shares its district code with the city of Bremen, see the example section for that.
+
An special code is used to tag expeditions in Bremerhaven, which currently shares its district code with the municipality of Bremen, see the example section for that.
  
 
If the category link appears red, do not worry and create the category. Make sure that it is included in the appropriate parent category, for instance, [[:Category:Expeditions in Landkreis Vechta]] is a subcategory of [[:Category:Expeditions in Niedersachsen]], which is a subcategory of [[:Category:Expeditions in Germany]]. The subcategories should be sorted in by their respective (primary) code.
 
If the category link appears red, do not worry and create the category. Make sure that it is included in the appropriate parent category, for instance, [[:Category:Expeditions in Landkreis Vechta]] is a subcategory of [[:Category:Expeditions in Niedersachsen]], which is a subcategory of [[:Category:Expeditions in Germany]]. The subcategories should be sorted in by their respective (primary) code.
Line 20: Line 20:
 
*<code><nowiki>{{location|DE|BW|BK}}</nowiki></code>: {{location/DE|BW|BK}}
 
*<code><nowiki>{{location|DE|BW|BK}}</nowiki></code>: {{location/DE|BW|BK}}
 
*<code><nowiki>{{location|DE|ST|BK}}</nowiki></code>: {{location/DE|ST|BK}}
 
*<code><nowiki>{{location|DE|ST|BK}}</nowiki></code>: {{location/DE|ST|BK}}
*<code><nowiki>{{location|DE|HB}}</nowiki></code>: {{location/DE|HB}}
+
*<code><nowiki>{{location|DE|HB|HB}}</nowiki></code>: {{location/DE|HB|HB}}
*<code><nowiki>{{location|DE|HB|city=Bremerhaven}}</nowiki></code>: {{location/DE|HB|city=Bremerhaven}}
+
*<code><nowiki>{{location|DE|HB|BHV}}</nowiki></code>: {{location/DE|HB|BHV}}
  
 
[[Category:Location templates|DE]]</noinclude><includeonly>{{#switch:{{{1}}}
 
[[Category:Location templates|DE]]</noinclude><includeonly>{{#switch:{{{1}}}
Line 283: Line 283:
 
     |WK=Landkreis Ostprignitz-Ruppin
 
     |WK=Landkreis Ostprignitz-Ruppin
 
     }}
 
     }}
|HB={{#switch:{{{city}}}|Bremerhaven=Bremerhaven|Bremen}}
+
|HB={{#switch:{{{2}}}
 +
    |#default=Freie Hansestadt Bremen
 +
    |HB=Bremen
 +
    |BHV=Bremerhaven
 +
}}
 
|HH=Hamburg
 
|HH=Hamburg
 
|HE={{#switch:{{{2}}}
 
|HE={{#switch:{{{2}}}

Revision as of 10:23, 23 February 2020

Use {{location|DE}} to tag expeditions that took place in Germany. It will add Category:Expeditions in Germany to the expedition.

You may also tag the state (Bundesland) or even the district (Kreis) that the expedition took place. For the states, use ISO 3166-2 abbreviations. For districts, use the 1-3 letter code found on license plates.

District codes can be issued to more than one district, and a district may have more than one code. If a district code is assigned to both a city and a rural district, use city=true to indicate that the expedition took place in the city, otherwise the template will assume it took place in the rural district. If a code is issued to more than one district, the this template will use the code of the district which has the name that the code derives from. For example, license plates with the code BH can be issued by both Landkreis Rastatt and Ortenaukreis. Since the city of Bühl, which BH is derived from, is located in Landkreis Rastatt, this template will use it for this district. Expeditions in Ortenaukreis can be tagged with other codes, among them OG.

An special code is used to tag expeditions in Bremerhaven, which currently shares its district code with the municipality of Bremen, see the example section for that.

If the category link appears red, do not worry and create the category. Make sure that it is included in the appropriate parent category, for instance, Category:Expeditions in Landkreis Vechta is a subcategory of Category:Expeditions in Niedersachsen, which is a subcategory of Category:Expeditions in Germany. The subcategories should be sorted in by their respective (primary) code.

Examples

  • {{location|DE}}: Germany
  • {{location|DE|BW}}: Baden-Württemberg
  • {{location|DE|BW|HD}}: Rhein-Neckar-Kreis
  • {{location|DE|BW|HD|city=true}}: Heidelberg
  • {{location|DE|BW|KA}}: Landkreis Karlsruhe
  • {{location|DE|BW|KA|city=true}}: Karlsruhe
  • {{location|DE|BW|S}}: Stuttgart
  • {{location|DE|BW|BAD}}: Baden-Baden
  • {{location|DE|BW|BK}}: Rems-Murr-Kreis
  • {{location|DE|ST|BK}}: Landkreis Börde
  • {{location|DE|HB|HB}}: Bremen
  • {{location|DE|HB|BHV}}: Bremerhaven