Difference between revisions of "Template:Infobox football league/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Corkythehornetfan
imported>Andrybak
(sync with live version of the template)
Line 1: Line 1:
{{infobox
+
{{Infobox
| bodystyle = width:25em
+
| bodystyle = width:auto; min-width:21em; max-width:25em
| above   = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
+
| title   = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
 
 
| subheader = {{#if:{{{current|}}}{{{current_season|}}}
 
| <table width="100%"><tr><td width="40px">[[File:Soccerball current event.svg|40px|alt=|link=]]</td><td style="text-align:center; vertical-align:middle; border:0;">{{#iferror:{{#expr:{{{current}}}}}
 
      |''[[{{{current}}}]]''
 
      |''[[{{{current_season}}}]]''
 
      |''{{{current}}}''
 
}}</td></tr></table> }}
 
 
 
 
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|{{{image|}}}}}}|size={{{pixels|}}}|sizedefault=frameless|alt={{{alt|}}}}}
 
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|{{{image|}}}}}}|size={{{pixels|}}}|sizedefault=frameless|alt={{{alt|}}}}}
 
| caption = {{{caption|}}}
 
| caption = {{{caption|}}}
| labelstyle = white-space: nowrap
+
| labelstyle =  
| label1  = Country
+
| label1  = {{#if:{{{American|}}}|Organizing|Organising}} {{#if:{{{organisers|}}}|bodies|body}}
| data1  = {{{country|}}}
+
| data1  = {{{organiser|{{{organisers|}}}}}}
| label2  = {{#if:{{{province type|}}}|{{{province type}}}|Province}}
+
| label2  = Founded
| data2   = {{{province|}}}
+
| data2  = {{{founded|}}}
| label3 = {{#if:{{{state type|}}}|{{{state type}}}|State}}
+
| label3  = First season
| data3   = {{{state|}}}
+
| data3  = {{{first|}}}
| label4 = {{#if:{{{region type|}}}|{{{region type}}}|Region}}
+
| label4  = Folded
| data4   = {{{region|}}}
+
| data4  = {{{folded|}}}
| label5 = Other club(s) from
+
| label5  = Replaced by
| data5  = {{{other countries|}}}
+
| data5  = {{{successor|}}}
| label6  = [[Geography of association football|Confederation]]
+
| label6  = Country
| data6  = {{{confed|}}}
+
| data6   = {{{country|}}}
| label7  = Founded
+
| label7 = {{#if:{{{province type|}}}|{{{province type}}}|{{#if:{{{provinces|}}}|Provinces|Province}}}}
| data7  = {{{founded|}}}
+
| data7   = {{{province|{{{provinces|}}}}}}
| label8  = First season
+
| label8 = {{#if:{{{state type|}}}|{{{state type}}}|{{#if:{{{states|}}}|States|State}}}}
| data8   = {{{first|}}}
+
| data8   = {{{state|{{{states|}}}}}}
| label9  = Folded
+
| label9 = {{#if:{{{region type|}}}|{{{region type}}}|{{#if:{{{regions|}}}|Regions|Region}}}}
| data9  = {{{folded|}}}
+
| data9   = {{{region|{{{regions|}}}}}}
| label10 = Replaced by
+
| label10 = Other club(s) from
| data10 = {{{successor|}}}
+
| data10  = {{{other countries|}}}
| label11 = Leagues
+
| label11 = [[Geography of association football|Confederation]]
| data11 = {{{leagues|}}}
+
| data11 = {{{confed|}}}
| label12 = {{#if:{{{divisions type|}}}|{{{divisions type}}}|Divisions}}
+
| label12 = Leagues
| data12 = {{{divisions|}}}
+
| data12 = {{{leagues|}}}
| label13 = Conferences
+
| label13 = {{#if:{{{divisions type|}}}|{{{divisions type}}}|Divisions}}
| data13 = {{{conferences|}}}
+
| data13 = {{{divisions|}}}
| label14 = Number of teams
+
| label14 = Conferences
| data14 = {{{teams|}}}
+
| data14 = {{{conferences|}}}
| label15 = {{#if:{{{level|}}}|Level|Level}} on {{#if:{{{pyramid|}}}|[[{{{pyramid}}}|pyramid]]|pyramid}}
+
| label15 = Number of teams
| data15 = {{#if:{{{level|}}}|{{{level}}}|{{{levels|}}}}}
+
| data15 = {{{teams|}}}
| label16 = Feeder to
+
| label16 = {{#if:{{{level|}}}|Level|Level}} on [[League system|pyramid]]
| data16 = {{{feeds|}}}
+
| data16 = {{#if:{{{level|}}}|{{{level}}}|{{{levels|}}}}}
| label17 = [[Promotion and relegation|Promotion]] to
+
| label17 = Feeder to
| data17 = {{{promotion|}}}
+
| data17 = {{{feeds|}}}
| label18 = [[Promotion and relegation|Relegation]] to
+
| label18 = [[Promotion and relegation|Promotion]] to
| data18 = {{{relegation|}}}
+
| data18 = {{{promotion|}}}
| label19 = Domestic cup(s)
+
| label19 = [[Promotion and relegation|Relegation]] to
| data19 = {{{domest_cup|{{{domest cup|{{{domest_cups|}}}}}}}}}
+
| data19 = {{{relegation|}}}
| label20 = League cup(s)
+
| label20 = Domestic cup(s)
| data20 = {{{league_cup|{{{league cup|}}}}}}
+
| data20 = {{{domest_cup|{{{domest cup|{{{domest_cups|}}}}}}}}}
 +
| label21 = League cup(s)
 +
| data21 = {{{league_cup|{{{league cup|}}}}}}
 
| label22 = International cup(s)
 
| label22 = International cup(s)
 
| data22  = {{{confed_cup|}}}
 
| data22  = {{{confed_cup|}}}
Line 63: Line 57:
 
| label26 = Current [[Supporters' Shield]]
 
| label26 = Current [[Supporters' Shield]]
 
| data26  = {{#if:{{{shieldchamps|}}}|{{{shieldchamps|}}} {{#if:{{{shieldseason}}}|<br />({{{shieldseason}}})}}}}
 
| data26  = {{#if:{{{shieldchamps|}}}|{{{shieldchamps|}}} {{#if:{{{shieldseason}}}|<br />({{{shieldseason}}})}}}}
| label27 = Current shield
+
| label27 = Current {{#if:{{{shieldtitle|}}}|{{{shieldtitle}}}| Shield}}
 
| data27  = {{#if:{{{shield|}}}|{{{shield|}}} {{#if:{{{season|}}}|<br />({{{season}}})}}}}
 
| data27  = {{#if:{{{shield|}}}|{{{shield|}}} {{#if:{{{season|}}}|<br />({{{season}}})}}}}
 
| label28 = Most championships
 
| label28 = Most championships
Line 71: Line 65:
 
| label30 = Most MLS Cups
 
| label30 = Most MLS Cups
 
| data30  = {{{most_mlscups|{{{most mlscups|}}}}}}
 
| data30  = {{{most_mlscups|{{{most mlscups|}}}}}}
| label31 = Most Supporters' Shields
+
| label31 = Most {{#if:{{{shieldtitle|}}}|{{{shieldtitle}}}s|Supporters' Shields}}
 
| data31  = {{{most_shields|{{{most shields|}}}}}}
 
| data31  = {{{most_shields|{{{most shields|}}}}}}
| label32 = Most capped player
+
| label32 = Most appearances
| data32  = {{{most_caps|{{{most caps|}}}}}}
+
| data32  = {{{most_appearances|{{{most appearances|}}}}}}
 
| label33 = Top goalscorer
 
| label33 = Top goalscorer
 
| data33  = {{{top_goalscorer|{{{top goalscorer|}}}}}}
 
| data33  = {{{top_goalscorer|{{{top goalscorer|}}}}}}
Line 81: Line 75:
 
| label36 = Website
 
| label36 = Website
 
| data36  = {{{website|}}}
 
| data36  = {{{website|}}}
 +
| data37  = {{#if:{{{current|}}}{{{current_season|}}}|[[File:Soccerball current event.svg|33px|alt=|link=]] ''{{#if:{{{current|}}}|{{{current}}}|[[{{{current_season}}}]]}}''}}
 
}}{{#if:{{{shield|}}}|[[Category:Articles with shield param]]}}{{#if:{{{province|}}}{{{state|}}}{{{region|}}}|[[Category:Pages using infobox football league with province, state, or region]]}}<noinclude>{{documentation}}
 
}}{{#if:{{{shield|}}}|[[Category:Articles with shield param]]}}{{#if:{{{province|}}}{{{state|}}}{{{region|}}}|[[Category:Pages using infobox football league with province, state, or region]]}}<noinclude>{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 21:04, 16 November 2020

Template documentation[view] [edit] [history] [purge]

Usage

{{{name}}}
[[File:{{{image}}}|{{{pixels}}}]]
Organising body{{{organiser}}}
Founded{{{founded}}}
First season{{{first}}}
Folded{{{folded}}}
Country{{{country}}}
Other club(s) from{{{other countries}}}
Confederation{{{confed}}}
Divisions{{{divisions}}}
Conferences{{{conferences}}}
Number of teams{{{teams}}}
Level on pyramid{{{levels}}}
Feeder to{{{feeds}}}
Promotion to{{{promotion}}}
Relegation to{{{relegation}}}
Domestic cup(s){{{domest_cup}}}
League cup(s){{{league_cup}}}
International cup(s){{{confed_cup}}}
Last champions{{{champions}}}
({{{season}}})
Current premiers{{{premiers}}}
({{{prem_season}}})
Current MLS Cup{{{mlscupchamps}}}
({{{mlscupseason}}})
Current Supporters' Shield{{{shieldchamps}}}
({{{shieldseason}}})
Current {{{shieldtitle}}}{{{shield}}}
({{{season}}})
Most championships{{{most_champs}}}
Most premierships{{{most_prems}}}
Most MLS Cups{{{most_mlscups}}}
Most {{{shieldtitle}}}s{{{most_shields}}}
Most appearances{{{most_appearances}}}
Top goalscorer{{{top_goalscorer}}}
TV partners{{{tv}}}
Website{{{website}}}
Current: {{{current}}}
{{Infobox football league
| name                = 
| image               = 
| pixels              = 
| organiser           = 
| founded             = 
| first               = 
| folded              = 
| country             = 
| other countries     = 
| confed              = 
| divisions           = 
| teams               = 
| feeds               = 
| promotion           = 
| relegation          = 
| levels              = 
| domest_cup          = 
| league_cup          = 
| overseas_tournament = 
| confed_cup          =  
| champions           =
| season              = 
| premiers            =
| prem_season         =
| mlscupchamps        = 
| mlscupseason        = 
| shieldchamps        = 
| shieldseason        = 
| shieldtitle         = 
| shield              = 
| most_champs         = 
| most_prems          = 
| most_mlscups        = 
| most_shields        = 
| most_appearances    = 
| top_goalscorer      = 
| tv                  = 
| sponsor             = 
| website             = 
| current             = 
}}

Parameters

name
image
Use only the image name, such as logo.png
pixels
Logo size (default is 200px width), add a number here (i.e. 300) to override
organiser
Organising body of the competition
founded
Year or date founded
folded
Year or date folded
country
Country whose national association administers the league
other_countries
When teams that are based (not merely follow owned) outside the host country participate, regardless of what national association they are part of, the country/ies in which such clubs are based is noted here.
confed
Confederation
divisions
Number of divisions (or use conferences)
conferences
Number of conferences (or use divisions)
teams
Number of teams
levels
The level that the league sits within that country's football pyramid.

This should be followed by a date range indicating when it operated at that level. If the league has at times operated at a different level this should be included as a separate entry within the field (again, with a date added)

pyramid
Alternative link for the pyramid
feeds
Feeder to
promotion
Promotion to
relegation
Relegation to
domest_cup
Names of domestic cups
league_cup
Names of league cups
overseas_tournament
Names of tournaments played overseas, e.g. Premier League Asia Trophy
confed_cup
Names of international cups
shieldtitle
name of the regular season championship, if not Supporter's Shield
champions
Name of most recent champion
season
Years of most recent champion
premiers
Name of most recent premier
prem_season
Years of most recent premier
most_champs
Name of the club with the most championships
most_prems
Name of the club with the most premierships
most_appearances
Name of the player who has made the most appearances in the league (number of games)
top_goalscorer
Name of the league's all-time top goalscorer (number of goals)
tv
Names of the domestic TV partners
sponsor
Names of sponsor
website
a complete URL, e.g. http://www.premierleague.com/
current
a wikilink to the name of the article on the current season

Tracking categories

See also