User:Phanto1999/Templates/DFBState


State Code
 N/A / / / {{User:Phanto1999/Templates/DFBState|unknown|1|1|1|1}}

Documentation edit

TemplateData edit

Parameter Description
1
Required. State; can use ISO 3166-2 codes with or without DE- prefix, e.g. DE-NI or NI for Lower Saxony
2
Optional. No. of championships; uses {{Rating}} template; shortens to {{Rating|1}}×2 if over 6
3
Optional. No. of East German championships; uses {{Rating}} template; shortens to {{Rating|1}}×3 if over 6
4
Optional. No. of cups; uses {{Rating}} template; shortens to {{Rating|1}}×4 if over 6
5
Optional. No. of East German cups; uses {{Rating}} template; shortens to {{Rating|1}}×5 if over 6
variant
Optional. Specifies the flag variant; defaults to football-specific flag if one exists, regular flag else
mvmt
Optional. Adds the {{PosChange}} template to the left of the state name
note
Optional. Adds {{Cref2|nb country code}} to the end of the template
share
Optional. Removes the top and bottom borders for shared positions

Examples edit

± State Code
  0   North Rhine-Westphalia  ×25 /  ×21 {{User:…DFBState|NW|25|21|0|0|mvmt=0}}
  0   Baden-Württemberg[nb BW]  ×9 /       {{User:…DFBState|BW|9|5|0|0|mvmt=0|note=state}}
  1   Lower Saxony      /    {{User:…DFBState|NI|4|2|0|0|mvmt=1|share=yes}}
  1   Saxony       /  ×16 /     /  ×18 {{User:…DFBState|SN|5|16|3|18|mvmt=-1|share=yes}}
    Berlin       /  ×16 /        [nb BE] {{User:…DFBState|BE|5|16|0|6|mvmt=new|note=yes}}
  0   Hamburg       ( )[nb HH] /     {{User:…DFBState|HH|6|0|3|0|mvmt=0|note=HH}} (note: star in brackets is added if state name is Hamburg, DE-HH or HH)
  0   Thuringia       /      {{User:…DFBState|TH|0|5|0|4|mvmt=0}}
Point Deductions
  1. ^
    Baden-Württemberg (BW): 16 points deducted
Other Notes
  1. ^
    Berlin (BE): includes 6 East German titles and 2 East German cups by Vorwärts Berlin, which were later renamed 1. FC Frankfurt and moved to   Brandenburg; titles and cups are still counted for Berlin as they were won there
  2. ^
    Hamburg (HH): Hamburger SV declined the title in 1922; therefore, it is displayed in brackets