Difference between revisions of "Template:Infobox sports league/doc"
imported>Samuel Wiki (added TemplateData) |
imported>Samuel Wiki (modified TemplateData) |
||
Line 217: | Line 217: | ||
"label": "Country", | "label": "Country", | ||
"type": "string", | "type": "string", | ||
− | "description": "Country the league is held in." | + | "description": "Country the league is held in. Per WP:INFOBOXFLAG, avoid adding flag icons." |
}, | }, | ||
"headquarters": { | "headquarters": { | ||
Line 253: | Line 253: | ||
}, | }, | ||
"champ_season": { | "champ_season": { | ||
− | "label": " | + | "label": "Season (for most recent or last champion)", |
"description": "Season the most recent or last champion won in.", | "description": "Season the most recent or last champion won in.", | ||
"type": "string", | "type": "string", | ||
Line 266: | Line 266: | ||
"most successful club": { | "most successful club": { | ||
"label": "Most titles (club)", | "label": "Most titles (club)", | ||
− | "description": "Name of club who won the most titles." | + | "description": "Name of club who won the most titles.", |
+ | "suggested": true | ||
}, | }, | ||
"classification": { | "classification": { | ||
Line 321: | Line 322: | ||
"countries": { | "countries": { | ||
"label": "Countries", | "label": "Countries", | ||
− | "description": "Countries which are part of the league.", | + | "description": "Countries which are part of the league. Per WP:INFOBOXFLAG, avoid adding flag icons.", |
"type": "string" | "type": "string" | ||
}, | }, | ||
"founded": { | "founded": { | ||
"label": "Founded", | "label": "Founded", | ||
− | "description": " | + | "description": "Date (or year) and location the league was founded.", |
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
Line 394: | Line 395: | ||
"footnotes" | "footnotes" | ||
], | ], | ||
− | "format": " | + | "format": "{{_\n| __________________ = _\n}}\n" |
} | } | ||
</templatedata> | </templatedata> |
Revision as of 03:54, 28 December 2019
![]() | 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
Template:Parameter names example
{{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
No description.
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 |