Template:Infobox sports league/doc: Difference between revisions
en>Flibirigit m (Reverted edits by 2604:3D09:1A7E:9B00:2894:1E4E:1D7D:B66 (talk) to last version by Vanisaac) |
m (1 revision imported) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
{{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}} | |||
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}} | {{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}} | ||
== Usage == | == Usage == | ||
{{Parameter names example | | {{Parameter names example | alt | administrator | ame |association | caption | ceo | champion | champions | champ_season | classification | coed | color | commissioner | competitors | confed | confed_cup | conference | continent | continents | coo | countries | country | current | current_season | current_season2 | director | division | divisions | domestic_cup | fame | feeds | folded | font_color | footnotes | formerly | founded | founder | game | headquarters | inaugural | last_season | league | level | levels | logo | logo_size | logo_upright | map | map_alt | map_caption | map_size | map_upright | mens | most successful club | most_champs | motto | organizer | owner | pixels | president | promotion | pyramid | qualification | region | related_comps | relegation | replaced | since | singles | sponsor | sport | sports | streaming | subdivision | teams | title | titles | titles_label | tournament_format | tv | upcoming_season | venue | website | womens }} | ||
< | <syntaxhighlight lang="wikitext" style="overflow:auto;"> | ||
{{Infobox sports league | {{Infobox sports league | ||
| title | | title = | ||
| current_season | | current_season = <!-- do not wikilink --> | ||
| current_season2 = <!-- do not wikilink --> | | current_season2 = <!-- do not wikilink --> | ||
| last_season | | last_season = <!-- do not wikilink --> | ||
| upcoming_season = <!-- do not wikilink; replace with current_season at the start of the new season --> | | upcoming_season = <!-- do not wikilink; replace with current_season at the start of the new season --> | ||
| logo | | logo = | ||
| logo_size | | logo_size = <!-- use a format of ##px, such as 120px --> | ||
| caption | | logo_upright = | ||
| formerly = | | alt = | ||
| sport | | caption = | ||
| formerly = | |||
| association = | |||
| conference = | |||
| league = | |||
| classification = | |||
| 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: | ||
Line 23: | Line 30: | ||
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 | | game = | ||
| founded = | | founded = | ||
| folded | | founder = | ||
| replaced | | inaugural = | ||
| owner | | folded = | ||
| ceo | | replaced = | ||
| coo | | owner = | ||
| director | | ceo = <!-- chief executive officer --> | ||
| president | | coo = <!-- chief operating officer --> | ||
| commissioner | | director = | ||
| fame | | president = | ||
| motto | | commissioner = | ||
| | | since = | ||
| teams = | | administrator = | ||
| | | organizer = <!-- or | organiser = --> | ||
| country | | ame = <!-- set to yes or true to change "organiser" to American English spelling, "Organizing body" --> | ||
| venue | | fame = <!--what the league is famous for...the "claim to fame"...avoid use if possible--> | ||
| confed | | motto = | ||
| champion | | sports = | ||
| champ_season | | mens = | ||
| most_champs = | | womens = | ||
| | | coed = | ||
| | | division = | ||
| | | subdivision = <!-- or | subdivisions = --> | ||
| | | teams = | ||
| | | singles = | ||
| related_comps | | competitors = | ||
| | | country = <!-- or | countries = --> | ||
| | | headquarters = | ||
| | | region = | ||
| | | venue = | ||
| | | confed = <!-- or | continent = or | continents = --> | ||
| | | titles_label = | ||
| footnotes | | titles = | ||
| current | | champion = <!-- or | champions = --> | ||
}}</ | | champ_season = | ||
| most_champs = | |||
| qualification = | |||
| tv = | |||
| streaming = | |||
| sponsor = | |||
| feeds = | |||
| pyramid = | |||
| level = | |||
| promotion = | |||
| relegation = | |||
| domestic_cup = | |||
| confed_cup = | |||
| related_comps = | |||
| tournament_format = | |||
| website = | |||
| color = | |||
| font_color = | |||
| map = | |||
| map_alt = | |||
| map_caption = | |||
| map_size = | |||
| map_upright = | |||
| footnotes = | |||
| current = <!-- wikilink to current season article to put icon and link at the bottom of the infobox --> | |||
}}</syntaxhighlight> | |||
The <code>ceo</code> parameter displays " | The <code>ceo</code> parameter displays "Chief Executive Officer". | ||
The <code>coo</code> parameter displays "Chief Operating Officer". | The <code>coo</code> parameter displays "Chief Operating Officer". | ||
==Images used for the current season link == | ==Images used for the current season link == | ||
''See [[Template:Current sports event icon]].'' | ''See [[Template:Current sports event icon]].'' | ||
===Image uprights=== | |||
Two parameters are provided for image uprights: | |||
* {{para|logo_upright}} | |||
* {{para|map_upright}} | |||
See [[MOS:UPRIGHT]] for more information. | |||
==Tracking category== | ==Tracking category== | ||
* {{clc|Pages using infobox sports league with unknown parameters}} | * {{clc|Pages using infobox sports league with unknown parameters}} | ||
==TemplateData== | ==TemplateData== | ||
{{collapse top|title=TemplateData}} | |||
{{TemplateData header}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 88: | Line 122: | ||
"label": "Current season", | "label": "Current season", | ||
"description": "Do not wikilink.", | "description": "Do not wikilink.", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
Line 128: | Line 155: | ||
"example": "100px", | "example": "100px", | ||
"type": "string" | "type": "string" | ||
}, | |||
"logo_upright": { | |||
"label": "Logo_upright", | |||
"type": "string" | |||
}, | |||
"map": { | |||
"label": "Map", | |||
"example": "abc.jpg", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"map_alt": { | |||
"label": "Map_alt", | |||
"type": "string" | |||
}, | |||
"map_caption": { | |||
"label": "Map_caption", | |||
"type": "string" | |||
}, | |||
"map_size": { | |||
"aliases": [ | |||
"pixels" | |||
], | |||
"label": "Map size", | |||
"example": "100px", | |||
"type": "string" | |||
}, | |||
"map_upright": { | |||
"label": "Map_upright", | |||
"type": "string" | |||
}, | |||
"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 | |||
}, | }, | ||
"formerly": { | "formerly": { | ||
Line 138: | Line 202: | ||
"description": "For non-sporting leagues.", | "description": "For non-sporting leagues.", | ||
"example": "Chess", | "example": "Chess", | ||
"type": "string" | |||
}, | |||
"league": { | |||
"label": "League", | |||
"description": "For the league that the conference or division is a part of.", | |||
"example": "[[National Football League]]", | |||
"type": "string" | |||
}, | |||
"conference": { | |||
"label": "Conference", | |||
"description": "For the Conference that the division is a part of.", | |||
"example": "[[American Football Conference]]", | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
Line 188: | Line 264: | ||
"label": "Commissioner", | "label": "Commissioner", | ||
"description": "Name of the league's Commissioner.", | "description": "Name of the league's Commissioner.", | ||
"type": "string" | |||
}, | |||
"organiser": { | |||
"label": "Organising body", | |||
"description": "Name of the organising body.", | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
Line 224: | Line 305: | ||
"label": "Headquarters", | "label": "Headquarters", | ||
"description": "Location of headquarters.", | "description": "Location of headquarters.", | ||
"type": "string" | |||
}, | |||
"region": { | |||
"label": "Region", | |||
"description": "Region of league.", | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
Line 272: | Line 358: | ||
}, | }, | ||
"classification": { | "classification": { | ||
"label": "Classification" | "label": "Classification", | ||
"description": "Classification level of the league." | |||
}, | }, | ||
"qualification": { | "qualification": { | ||
Line 279: | Line 366: | ||
"TV": { | "TV": { | ||
"label": "TV partner(s)" | "label": "TV partner(s)" | ||
}, | |||
"streaming": { | |||
"label": "Streaming partner(s)" | |||
}, | }, | ||
"sponsor": { | "sponsor": { | ||
Line 336: | Line 426: | ||
"label": "Caption", | "label": "Caption", | ||
"type": "string" | "type": "string" | ||
} | }, | ||
"name": {}, | |||
"color": {}, | |||
"font_color": {}, | |||
"image": {}, | |||
"alt": { | |||
"label": "Alt text", | |||
"description": "Alt text for logo or image" | |||
}, | |||
"association": {}, | |||
"since": {}, | |||
"AmE": {}, | |||
"organizer": {}, | |||
"sports": {}, | |||
"mens": {}, | |||
"womens": {}, | |||
"coed": {}, | |||
"division": {}, | |||
"subdivision": {}, | |||
"subdivisions": {}, | |||
"titles_label": {}, | |||
"titles": {}, | |||
"premiers": {}, | |||
"prem_season": {}, | |||
"most_prems": {}, | |||
"mlscupchamps": {}, | |||
"mlscupseason": {}, | |||
"shieldchamps": {}, | |||
"shieldseason": {}, | |||
"current_shield": {}, | |||
"current_shield_season": {}, | |||
"most_mlscups": {}, | |||
"most_shields": {}, | |||
"feeds": {}, | |||
"dissolved": {} | |||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
Line 344: | Line 468: | ||
"last_season", | "last_season", | ||
"upcoming_season", | "upcoming_season", | ||
"logo", | "logo", | ||
"logo_size", | "logo_size", | ||
"logo_upright", | |||
"caption", | "caption", | ||
"map", | |||
"map_alt", | |||
"map_caption", | |||
"map_size", | |||
"map_upright", | |||
"sport", | |||
"game", | |||
"league", | |||
"conference", | |||
"classification", | |||
"formerly", | "formerly", | ||
"founded", | "founded", | ||
Line 362: | Line 495: | ||
"president", | "president", | ||
"commissioner", | "commissioner", | ||
"organiser", | |||
"fame", | "fame", | ||
"motto", | "motto", | ||
Line 369: | Line 503: | ||
"competitors", | "competitors", | ||
"headquarters", | "headquarters", | ||
"region", | |||
"venue", | "venue", | ||
"country", | "country", | ||
Line 380: | Line 515: | ||
"most_champs", | "most_champs", | ||
"most successful club", | "most successful club", | ||
"qualification", | "qualification", | ||
"TV", | "TV", | ||
"streaming", | |||
"sponsor", | "sponsor", | ||
"level", | "level", | ||
Line 395: | Line 530: | ||
"website", | "website", | ||
"current", | "current", | ||
"footnotes" | "footnotes", | ||
"name", | |||
"color", | |||
"font_color", | |||
"image", | |||
"alt", | |||
"association", | |||
"since", | |||
"AmE", | |||
"organizer", | |||
"sports", | |||
"mens", | |||
"womens", | |||
"coed", | |||
"division", | |||
"subdivision", | |||
"subdivisions", | |||
"titles_label", | |||
"titles", | |||
"premiers", | |||
"prem_season", | |||
"most_prems", | |||
"mlscupchamps", | |||
"mlscupseason", | |||
"shieldchamps", | |||
"shieldseason", | |||
"current_shield", | |||
"current_shield_season", | |||
"most_mlscups", | |||
"most_shields", | |||
"feeds", | |||
"dissolved" | |||
], | ], | ||
"format": "{{_\n| _______________ = _\n}}\n", | "format": "{{_\n| _______________ = _\n}}\n", | ||
Line 401: | Line 567: | ||
} | } | ||
</templatedata> | </templatedata> | ||
{{collapse bottom}} | |||
==See also== | |||
* {{tl|infobox basketball league}} | |||
* {{tl|infobox football league}} | |||
* {{tl|infobox hockey league}} | |||
* {{tl|infobox rugby league}} | |||
<includeonly>{{Sandbox other|| | |||
<!-- Categories below this line, please; interwikis at Wikidata --> | |||
[[Category:Sports infobox templates|League]] | |||
[[Category:Templates that add a tracking category|{{PAGENAME}}]] | |||
}}</includeonly> |
Latest revision as of 17:30, 9 September 2023
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 is used on approximately 3,300 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
This template uses Lua: |
Usage
Current season, competition or edition: [[{{{current_season}}}]] [[{{{current_season2}}}]] | |
[[File:{{{logo}}}|{{{logo_size}}}|alt={{{alt}}}|upright={{{logo_upright}}}]] | |
Formerly | {{{formerly}}} |
---|---|
Association | {{{association}}} |
Conference | {{{conference}}} |
League | {{{league}}} |
Classification | {{{classification}}} |
Game | {{{game}}} |
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}}} (since {{{since}}}) |
Administrator | {{{administrator}}} |
Organizing body | {{{organizer}}} |
Claim to fame | {{{fame}}} |
Motto | {{{motto}}} |
Sports fielded |
|
Division | {{{division}}} |
Subdivision | {{{subdivision}}} |
Divisions | {{{divisions}}} |
No. of teams | {{{teams}}} |
Singles entrants | {{{singles}}} |
Competitors | {{{competitors}}} |
Countries | {{{countries}}} |
Headquarters | {{{headquarters}}} |
Region | {{{region}}} |
Venue(s) | {{{venue}}} |
Confederation | {{{confed}}} |
{{{titles_label}}} | {{{titles}}} |
Last champion(s) | {{{champion}}} ({{{champ_season}}}) |
Most titles | {{{most_champs}}} |
Qualification | {{{qualification}}} |
TV partner(s) | {{{tv}}} |
Streaming partner(s) | {{{streaming}}} |
Sponsor(s) | {{{sponsor}}} |
Feeder to | {{{feeds}}} |
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}}} |
{{{current}}} | |
Notes | |
{{{footnotes}}} | |
Locations | |
[[File:{{{map}}}|{{{map_size}}}|alt={{{map_alt}}}|upright={{{map_upright}}}|{{{map_caption}}}]]{{{map_caption}}} |
{{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 -->
| logo_upright =
| alt =
| caption =
| formerly =
| association =
| conference =
| league =
| classification =
| 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 =
| founder =
| inaugural =
| folded =
| replaced =
| owner =
| ceo = <!-- chief executive officer -->
| coo = <!-- chief operating officer -->
| director =
| president =
| commissioner =
| since =
| administrator =
| organizer = <!-- or | organiser = -->
| ame = <!-- set to yes or true to change "organiser" to American English spelling, "Organizing body" -->
| fame = <!--what the league is famous for...the "claim to fame"...avoid use if possible-->
| motto =
| sports =
| mens =
| womens =
| coed =
| division =
| subdivision = <!-- or | subdivisions = -->
| teams =
| singles =
| competitors =
| country = <!-- or | countries = -->
| headquarters =
| region =
| venue =
| confed = <!-- or | continent = or | continents = -->
| titles_label =
| titles =
| champion = <!-- or | champions = -->
| champ_season =
| most_champs =
| qualification =
| tv =
| streaming =
| sponsor =
| feeds =
| pyramid =
| level =
| promotion =
| relegation =
| domestic_cup =
| confed_cup =
| related_comps =
| tournament_format =
| website =
| color =
| font_color =
| map =
| map_alt =
| map_caption =
| map_size =
| map_upright =
| footnotes =
| current = <!-- wikilink to current season article to put icon and link at the bottom of the infobox -->
}}
The ceo
parameter displays "Chief Executive Officer".
The coo
parameter displays "Chief Operating Officer".
Images used for the current season link
See Template:Current sports event icon.
Image uprights
Two parameters are provided for image uprights:
|logo_upright=
|map_upright=
See MOS:UPRIGHT for more information.
Tracking category
TemplateData
TemplateData
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Infobox sports league Infobox for sports leagues.
|
See also
- {{infobox basketball league}}
- {{infobox football league}}
- {{infobox hockey league}}
- {{infobox rugby league}}