User:Phanto1999/Templates/DFBTeam/doc

From Wikipedia, the free encyclopedia

Blank Template Code[edit]

The code below contains the most important parameters for the template. Elements in ALL CAPS and cursive should be replaced with the corresponding values.

{{User:Phanto1999/Templates/DFBTeam|DE-XX|TEAM|LEAGUE|EASTLEAGUE|CUP|EASTCUP|sort=CITYNAME|c=LEAGUE|mvmt=MOVEMENT}}

Examples[edit]

± Team League Code
±0 0 Bavaria FC Bayern Munich (L) (C) ×26 / ×18 1st {{User:…DFBTeam|DE-BY|FCB|26|0|18|0|L|C|c=1|mvmt=0}}
±0 0 North Rhine-Westphalia Borussia Dortmund / 1st {{User:…DFBTeam|DE-NW|BVB|8|0|3|0|c=1|mvmt=0}}
+1 1 North Rhine-Westphalia Bayer 04 Leverkusen 1st {{User:…DFBTeam|DE-NW|B04|0|0|1|0|c=1|mvmt=1}}
−1 1 North Rhine-Westphalia Borussia Mönchengladbach / 1st {{User:…DFBTeam|DE-NW|BMG|5|0|3|0|c=1|mvmt=-1}}
+1 1 Bavaria FC Augsburg 1st {{User:…DFBTeam|DE-BY|FCA|0|0|0|0|c=1|mvmt=1|share=yes}}
+3 3 Baden-Württemberg SC Freiburg 1st {{User:…DFBTeam|DE-BW|SCF|0|0|0|0|c=1|mvmt=3|share=yes}}
+1 1 Berlin Hertha BSC 1st {{User:…DFBTeam|DE-BE|BSC|2|0|0|0|c=1|mvmt=1}}
±0 0 Hamburg Hamburger SV ()[nb HSV] / 1st {{User:…DFBTeam|DE-HH|HSV|6|0|3|0|c=1|mvmt=0|note=hsv}}[a]
−3 3 Saxony FC Erzgebirge Aue / [nb AUE] 2nd {{User:…DFBTeam|DE-SN|AUE|0|3|0|1|sort=Aue|note=yes|c=2|mvmt=-3}}
+3 3 Thuringia FC Rot-Weiß Erfurt 3rd {{User:…DFBTeam|DE-TH|ERF|0|2|0|0|sort=Erfurt|c=3|mvmt=3}}
new Lower Saxony TSV Havelse 3rd {{User:…DFBTeam|DE-NI|HAV|0|0|0|0|sort=Havelse|mvmt=new|c=3}}
+4 4 Saxony-Anhalt Hallescher FC 3rd {{User:…DFBTeam|DE-ST|HFC|0|0|0|2|c=3|mvmt=4}}
−5 5 Saarland 1. FC Saarbrücken 4th SW {{User:…DFBTeam|DE-SL|SAA|0|0|0|0|sort=Saarbrücken|c=4SW|mvmt=-5}}
Saxony Dresdner SC / / 7th Saxony E ||{{User:…DFBTeam|DE-SN|DRE|2|0|2|1|c=7SNE}}
Austria SK Rapid Wien / [nb RAP] 1st (AUT) ||{{User:…DFBTeam|AUT|RAP|1|0|1|0|sort=Vienna Rapid|note=yes|c=1A}}

Point deductions:

  1. ^
    Kickers Offenbach (OFC): 2×1=2 points deducted in 2012–13 for failing to pay back debts

Other notes:

  1. ^
    FC Erzgebirge Aue (AUE): as Wismut Karl-Marx-Stadt
  2. ^
    Hamburger SV (HSV): Team declined the title in 1922; therefore, it is displayed in brackets
  3. ^
    SK Rapid Wien (RAP): titles won during the annexation of Austria

Template note:

  1. ^ star in brackets is added if team name is Hamburger SV or HSV; can be removed by setting |hsv=no

TemplateData[edit]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:DFBTeam in articles based on its TemplateData.

TemplateData for DFBTeam

Generates team names and won titles for the European Football Ranking.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
State1

State or state code for the team; displays linked flag icon. For German ISO 3166-2 codes, the DE- prefix can be left out.

Example
Bavaria, DE-NW, NI
Stringrequired
Team2

Full team name or code as given in TeamList template; will be automatically wikilinked.

Example
FC Bayern Munich, BVB
Stringrequired
Championships3

No. of championships.

Example
1
Numberrequired
East German championships4

No. of (now defunct) East German championships.

Example
1
Numberrequired
Cups5

No. of cups.

Example
1
Numberrequired
East German cups6

No. of (now defunct) East German cups.

Example
1
Numberrequired
Title holders7

Signifies titles holders; enter L for league championship, C for cup.

Example
L, C
Stringoptional
2nd title holders8

Same as title holders; use if one team wins both titles.

Example
L, C
Stringoptional
Flag variantvariant

Changes the flag variant for the flag icon; defaults to football-specific flag if one exists, regular flag else.

Default
football
Example
state, striped
Stringoptional
Display textdisplay

Displays the team code if set to code, the team's short name as used in league tables if set to short, and the entered string otherwise.

Example
code, short, FC Bayern
Stringoptional
Link team namelink

Set to no or a variant thereof to unlink the team name.

Default
yes
Example
no, n, 0
Booleanoptional
Sort valuesort

Name by which the team is sorted; enter city name.

Example
Munich, Dortmund
Stringoptional
Sharedshare

Set to yes or a variant thereof for teams sharing a spot; use with multiple adjacent teams only.

Default
no
Example
yes, y, 1
Booleanoptional
Notenote

Adds a footnote to the team.

Default
no
Example
yes, y, 1
Booleanoptional
Competitionc

League in the current season.

Example
1
Stringoptional
Competition sortcsort

Sort value for custom league entries.

Example
7.65
Numberoptional
Movementmvmt

Position change; can be a number or 'new'.

Example
1, new
Stringoptional
Display extra HSV titlehsv

Set to no or a variant thereof to hide the additional Hamburger SV title in brackets.

Default
yes
Example
no, n, 0
Booleanoptional