Template:Infobox sports league/doc: Difference between revisions
Ozycaevias (talk | contribs) m (1 revision imported) |
en>Flibirigit m (Reverted edits by 2604:3D09:1A7E:9B00:2894:1E4E:1D7D:B66 (talk) to last version by Vanisaac) |
||
Line 4: | Line 4: | ||
== Usage == | == 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 | {{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;"> | <pre style="overflow:auto;"> | ||
Line 17: | Line 17: | ||
| caption = | | caption = | ||
| formerly = | | formerly = | ||
| sport = | | sport = <!-- does not need to be wikilinked. This parameter is also | ||
used to help automatically switch the "current_season" image to be more specific | used to help automatically switch the "current_season" image to be more specific | ||
to replace the generic current event image (see below). Currently supports: | to replace the generic current event image (see below). Currently supports: | ||
American football, athletics, Australian rules football, baseball, basketball, boxing, cricket, cue sports, curling, cycling, golf, gymnastics, hockey, lacrosse, | American football, athletics, Australian rules football, baseball, basketball, boxing, cricket, cue sports, curling, cycling, esports, golf, gymnastics, hockey, lacrosse, | ||
motorsports, netball, Olympics, poker, pro wrestling, rugby, soccer, softball, | motorsports, netball, Olympics, poker, pro wrestling, rugby, soccer, softball, | ||
speed skating, squash, swimming, table tennis, tennis, volleyball.--> | speed skating, squash, swimming, table tennis, tennis, volleyball.--> | ||
| game = | |||
| founded = | | founded = | ||
| folded = | | folded = | ||
Line 68: | Line 69: | ||
* {{clc|Pages using infobox sports league with unknown parameters}} | * {{clc|Pages using infobox sports league with unknown parameters}} | ||
<includeonly>{{ | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Sports infobox templates|Sports League]] | [[Category:Sports infobox templates|Sports League]] | ||
[[Category:Templates that add a tracking category]] | [[Category:Templates that add a tracking category]] | ||
}}</includeonly> | }}</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> |
Revision as of 01:53, 25 September 2020
This is a documentation subpage for Template:Infobox sports league. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Usage
Current season, competition or edition: [[{{{current_season}}}]] [[{{{current_season2}}}]] | |
[[File:{{{logo}}}|{{{logo_size}}}]] | |
Formerly | {{{formerly}}} |
---|---|
Classification | {{{classification}}} |
Sport | {{{sport}}} |
Founded | {{{founded}}} |
Founder | {{{founder}}} |
Inaugural season | {{{inaugural}}} |
Ceased | {{{folded}}} |
Replaced by | {{{replaced}}} |
Owner(s) | {{{owner}}} |
CEO | {{{ceo}}} |
COO | {{{coo}}} |
Director | {{{director}}} |
President | {{{president}}} |
Commissioner | {{{commissioner}}} |
Administrator | {{{administrator}}} |
Claim to fame | {{{fame}}} |
Motto | {{{motto}}} |
Divisions | {{{divisions}}} |
No. of teams | {{{teams}}} |
Singles entrants | {{{singles}}} |
Competitors | {{{competitors}}} |
Countries | {{{countries}}} |
Headquarters | {{{headquarters}}} |
Venue(s) | {{{venue}}} |
Confederation | {{{confed}}} |
Last champion(s) | {{{champion}}} ({{{champ_season}}}) |
Most titles | {{{most_champs}}} |
Qualification | {{{qualification}}} |
TV partner(s) | {{{TV}}} |
Sponsor(s) | {{{sponsor}}} |
Level on [[{{{pyramid}}}|pyramid]] | {{{level}}} |
Promotion to | {{{promotion}}} |
Relegation to | {{{relegation}}} |
Domestic cup(s) | {{{domestic_cup}}} |
International cup(s) | {{{confed_cup}}} |
Related competitions | {{{related_comps}}} |
Tournament format | {{{tournament_format}}} |
Official website | {{{website}}} |
Notes | |
{{{footnotes}}} |
{{Infobox sports league | title = | current_season = <!-- do not wikilink --> | current_season2 = <!-- do not wikilink --> | last_season = <!-- do not wikilink --> | upcoming_season = <!-- do not wikilink; replace with current_season at the start of the new season --> | logo = | logo_size = <!-- use a format of ##px, such as 120px --> | caption = | formerly = | sport = <!-- 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 (see below). Currently supports: American football, athletics, Australian rules football, baseball, basketball, boxing, cricket, cue sports, curling, cycling, esports, golf, gymnastics, hockey, lacrosse, motorsports, netball, Olympics, poker, pro wrestling, rugby, soccer, softball, speed skating, squash, swimming, table tennis, tennis, volleyball.--> | game = | founded = | folded = | replaced = | owner = | ceo = <!-- chief executive officer --> | coo = <!-- chief operating officer --> | director = | president = | commissioner = | fame = <!--what the league is famous for...the "claim to fame"...avoid use if possible--> | motto = | inaugural = | teams = | singles = | country = <!-- or | countries = --> | venue = | confed = <!-- or | continent = or | continents = --> | champion = | champ_season = | most_champs = | classification = | qualification = | tv = | sponsor = | investor = | related_comps = | founder = | levels = | promotion = | relegation = | domestic_cup = | website = | footnotes = | current = <!-- wikilink to current season article to put icon and link at the bottom of the infobox --> }}
The ceo
parameter displays "Commissioner".
The coo
parameter displays "Chief Operating Officer".
Images used for the current season link
See Template:Current sports event icon.
Tracking category
TemplateData
Infobox for sports leagues.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | Name of the league. | String | required |
Current season | current_season | Do not wikilink. | String | suggested |
Current season 2 | current_season2 | Do not wikilink. | String | optional |
Last season | last_season | Do not wikilink. | String | suggested |
Upcoming season | upcoming_season | Do not wikilink. Replace with current_season at the start of the new season. | String | suggested |
Sport | sport | 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.
| String | suggested |
Game | game | For non-sporting leagues.
| String | optional |
Logo | logo | no description
| File | suggested |
Logo size | logo_size pixels | no description
| String | optional |
Caption | caption | no description | String | optional |
Former | formerly | Former name(s) for the sports league. | String | optional |
Founded | founded | Date (or year) and location the league was founded. | String | suggested |
Founder | founder | Name of founder. | Unknown | optional |
Inaugural season | inaugural | no description | String | suggested |
Folded | folded | Year the league folded or ended. | String | optional |
Replaced | replaced | no description | Unknown | optional |
Administrator | administrator | Name of the league's administrator. | String | optional |
Owner | owner | Name of the league's owner. | String | optional |
CEO | ceo | Name of the league's Chief Executive Officer. | String | optional |
COO | coo | Name of the league's Chief Operating Officer. | String | optional |
Director | director | Name of the league's Director. | Unknown | optional |
President | president | Name of the league's President. | Unknown | optional |
Commissioner | commissioner | Name of the league's Commissioner. | String | optional |
Claim to fame | fame | What the league is famous for, its "claim to fame". Avoid use if possible. | String | optional |
Motto | motto | The league's motto. | String | optional |
Divisions | divisions | no description | Unknown | optional |
Teams | teams | Number of teams in the league. Not for a list of teams. | Number | suggested |
Singles | singles | no description | Unknown | optional |
Competitors | competitors | Number of competitors. Not for a list of competitors. | Unknown | optional |
Headquarters | headquarters | Location of headquarters. | String | optional |
Venue | venue | no description | Unknown | optional |
Country | country | Country the league is held in. Per WP:INFOBOXFLAG, avoid adding flag icons. | String | optional |
Countries | countries | Countries which are part of the league. Per WP:INFOBOXFLAG, avoid adding flag icons. | String | optional |
Confederation | confed | no description | String | optional |
Continents | continents | Continents which are part of the league. | String | optional |
Continent | continent | Continent which is part of the league. | String | optional |
Champion | champion | Most recent or last champion. | String | suggested |
Champions | champions | Most recent or last champions. | String | optional |
Season (for most recent or last champion) | champ_season | Season the most recent or last champion won in. | String | suggested |
Most titles (player) | most_champs | Name of player who won the most titles. | String | suggested |
Most titles (club) | most successful club | Name of club who won the most titles. | Unknown | suggested |
Classification | classification | no description | Unknown | optional |
Qualification | qualification | no description | Unknown | optional |
TV partner(s) | TV | no description | Unknown | optional |
Sponsor(s) | sponsor | no description | Unknown | optional |
Level | level | no description | Unknown | optional |
Pyramid | pyramid | no description | Unknown | optional |
Levels | levels | no description | Unknown | optional |
Promotion to | promotion | no description | Unknown | optional |
Relegation to | relegation | no description | Unknown | optional |
Domestic cup(s) | domestic_cup | no description | Unknown | optional |
International cup(s) | confed_cup | no description | Unknown | optional |
Related competitions | related_comps | no description | Unknown | optional |
Tournament format | tournament_format | no description | String | optional |
Official website | website | no description | Unknown | optional |
Current season (bottom) | current | Wikilink to current season article to put icon and link at the bottom of the infobox. | Unknown | optional |
Footnotes | footnotes | no description | String | optional |