Template:Infobox sports league: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1:
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[</nowiki>[[Wikipedia:Wikidata]]<nowiki>]]) -->
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
 
== Usage ==
{{Parameter names example | title | current_season | sport | last_season | upcoming_season | current_season2 | logo | logo_size | caption | Formerly | formerly | Replaced | replaced | founded | administrator | owner | ceo | Director | director | President | president | Commissioner | commissioner | coo | fame | motto | inaugural | divisions | teams | singles | competitors | countries | country | headquarters | venue | confed | continents | continent | folded | champion | champions | champ_season | most_champs | most successful club | classification | qualification | TV | tv | sponsor | related_comps | founder | Founder | level | pyramid | levels | promotion | relegation | domestic_cup | confed_cup | tournament_format | website | footnotes }}
 
<pre style="overflow:auto;">
{{Infobox sports league
| title =
Line 50 ⟶ 58:
| footnotes =
| current = <!-- wikilink to current season article to put icon and link at the bottom of the infobox -->
}}</pre>
 
The <code>ceo</code> parameter displays "Commissioner".
The <code>coo</code> parameter displays "Chief Operating Officer".
 
==Images used for the current season link ==
''See [[Template:Current sports event icon]].''
 
==Tracking category==
* {{clc|Pages using infobox sports league with unknown parameters}}
 
<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Sports infobox templates|Sports League]]
[[Category:Templates that add a tracking category]]
}}</includeonly>
 
==TemplateData==
<templatedata>
{
"params": {
"title": {
"label": "Title",
"description": "Name of the league.",
"type": "string",
"required": true
},
"current_season": {
"label": "Current season",
"description": "Do not wikilink.",
"type": "string",
"suggested": true
},
"sport": {
"label": "Sport",
"description": "Does not need to be wikilinked. This parameter is also used to help automatically switch the \"current_season\" image to be more specific to replace the generic current event image.",
"example": "Baseball",
"type": "string",
"suggested": true
},
"last_season": {
"label": "Last season",
"description": "Do not wikilink.",
"type": "string",
"suggested": true
},
"upcoming_season": {
"label": "Upcoming season",
"description": "Do not wikilink. Replace with current_season at the start of the new season.",
"type": "string",
"suggested": true
},
"current_season2": {
"label": "Current season 2",
"description": "Do not wikilink.",
"type": "string"
},
"logo": {
"label": "Logo",
"example": "abc.jpg",
"type": "wiki-file-name",
"suggested": true
},
"logo_size": {
"aliases": [
"pixels"
],
"label": "Logo size",
"example": "100px",
"type": "string"
},
"formerly": {
"label": "Former",
"description": "Former name(s) for the sports league.",
"type": "string"
},
"game": {
"label": "Game",
"description": "For non-sporting leagues.",
"example": "Chess",
"type": "string"
},
"founder": {
"label": "Founder",
"description": "Name of founder."
},
"inaugural": {
"label": "Inaugural season",
"type": "string",
"suggested": true
},
"folded": {
"label": "Folded",
"description": "Year the league folded or ended.",
"type": "string"
},
"replaced": {
"label": "Replaced"
},
"administrator": {
"label": "Administrator",
"description": "Name of the league's administrator.",
"type": "string"
},
"owner": {
"label": "Owner",
"description": "Name of the league's owner.",
"type": "string"
},
"ceo": {
"label": "CEO",
"description": "Name of the league's Chief Executive Officer.",
"type": "string"
},
"coo": {
"label": "COO",
"description": "Name of the league's Chief Operating Officer.",
"type": "string"
},
"director": {
"label": "Director",
"description": "Name of the league's Director."
},
"president": {
"label": "President",
"description": "Name of the league's President."
},
"commissioner": {
"label": "Commissioner",
"description": "Name of the league's Commissioner.",
"type": "string"
},
"fame": {
"label": "Claim to fame",
"description": "What the league is famous for, its \"claim to fame\". Avoid use if possible.",
"type": "string"
},
"motto": {
"label": "Motto",
"description": "The league's motto.",
"type": "string"
},
"divisions": {
"label": "Divisions"
},
"teams": {
"label": "Teams",
"description": "Number of teams in the league. Not for a list of teams.",
"type": "number",
"suggested": true
},
"singles": {
"label": "Singles"
},
"competitors": {
"label": "Competitors",
"description": "Number of competitors. Not for a list of competitors."
},
"country": {
"label": "Country",
"type": "string",
"description": "Country the league is held in. Per WP:INFOBOXFLAG, avoid adding flag icons."
},
"headquarters": {
"label": "Headquarters",
"description": "Location of headquarters.",
"type": "string"
},
"venue": {
"label": "Venue"
},
"confed": {
"label": "Confederation",
"type": "string"
},
"continents": {
"label": "Continents",
"description": "Continents which are part of the league.",
"type": "string"
},
"continent": {
"label": "Continent",
"description": "Continent which is part of the league.",
"type": "string"
},
"champion": {
"label": "Champion",
"description": "Most recent or last champion.",
"type": "string",
"suggested": true
},
"champions": {
"label": "Champions",
"description": "Most recent or last champions.",
"type": "string"
},
"champ_season": {
"label": "Season (for most recent or last champion)",
"description": "Season the most recent or last champion won in.",
"type": "string",
"suggested": true
},
"most_champs": {
"label": "Most titles (player)",
"description": "Name of player who won the most titles.",
"type": "string",
"suggested": true
},
"most successful club": {
"label": "Most titles (club)",
"description": "Name of club who won the most titles.",
"suggested": true
},
"classification": {
"label": "Classification"
},
"qualification": {
"label": "Qualification"
},
"TV": {
"label": "TV partner(s)"
},
"sponsor": {
"label": "Sponsor(s)"
},
"level": {
"label": "Level"
},
"pyramid": {
"label": "Pyramid"
},
"levels": {
"label": "Levels"
},
"promotion": {
"label": "Promotion to"
},
"relegation": {
"label": "Relegation to"
},
"domestic_cup": {
"label": "Domestic cup(s)"
},
"confed_cup": {
"label": "International cup(s)"
},
"related_comps": {
"label": "Related competitions"
},
"tournament_format": {
"label": "Tournament format",
"type": "string"
},
"website": {
"label": "Official website"
},
"current": {
"label": "Current season (bottom)",
"description": "Wikilink to current season article to put icon and link at the bottom of the infobox."
},
"footnotes": {
"label": "Footnotes",
"type": "string"
},
"countries": {
"label": "Countries",
"description": "Countries which are part of the league. Per WP:INFOBOXFLAG, avoid adding flag icons.",
"type": "string"
},
"founded": {
"label": "Founded",
"description": "Date (or year) and location the league was founded.",
"type": "string",
"suggested": true
},
"caption": {
"label": "Caption",
"type": "string"
}
},
"paramOrder": [
"title",
"current_season",
"current_season2",
"last_season",
"upcoming_season",
"sport",
"game",
"logo",
"logo_size",
"caption",
"formerly",
"founded",
"founder",
"inaugural",
"folded",
"replaced",
"administrator",
"owner",
"ceo",
"coo",
"director",
"president",
"commissioner",
"fame",
"motto",
"divisions",
"teams",
"singles",
"competitors",
"headquarters",
"venue",
"country",
"countries",
"confed",
"continents",
"continent",
"champion",
"champions",
"champ_season",
"most_champs",
"most successful club",
"classification",
"qualification",
"TV",
"sponsor",
"level",
"pyramid",
"levels",
"promotion",
"relegation",
"domestic_cup",
"confed_cup",
"related_comps",
"tournament_format",
"website",
"current",
"footnotes"
],
"format": "{{_\n| _______________ = _\n}}\n",
"description": "Infobox for sports leagues."
}
</templatedata>
40

edits