Template:Infobox sports league/doc: Difference between revisions

Jump to navigation Jump to search
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 [[</nowiki>[[Wikipedia:Wikidata]]<nowiki>]]) -->
<!-- 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 | 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 }}
{{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 }}


<pre style="overflow:auto;">
<syntaxhighlight lang="wikitext" style="overflow:auto;">
{{Infobox sports league
{{Infobox sports league
| title           =  
| title             =  
| current_season = <!-- do not wikilink -->
| current_season   = <!-- do not wikilink -->
| current_season2 = <!-- do not wikilink -->
| current_season2   = <!-- do not wikilink -->
| last_season     = <!-- do not wikilink -->
| 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       = <!-- use a format of ##px, such as 120px -->
| logo_size         = <!-- use a format of ##px, such as 120px -->
| caption         =  
| logo_upright      =
| formerly        =  
| alt              =
| sport           = <!-- does not need to be wikilinked. This parameter is also  
| 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             = <!-- chief executive officer -->
| replaced         =  
| coo             = <!-- chief operating officer -->
| owner             =  
| director       =  
| ceo               = <!-- chief executive officer -->
| president       =
| coo               = <!-- chief operating officer -->
| commissioner   =
| director         =  
| fame           = <!--what the league is famous for...the "claim to fame"...avoid use if possible-->
| president         =  
| motto           =  
| commissioner     =  
| inaugural       =  
| since            =
| teams          =  
| administrator    =
| singles        =  
| organizer        = <!-- or | organiser = -->
| country         = <!-- or | countries = -->
| 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         = <!-- or | continent = or | continents = -->
| motto             =
| champion       =  
| sports            =
| champ_season   =  
| mens              =
| most_champs    =  
| womens            =
| classification  =
| coed              =
| qualification  =  
| division          =  
| tv              =  
| subdivision       = <!-- or | subdivisions = -->
| sponsor         =  
| teams             =
| investor       =  
| singles           =  
| related_comps   =  
| competitors      =  
| founder        =  
| country           = <!-- or | countries = -->
| levels          =  
| headquarters      =
| promotion      =
| region            =
| relegation      =
| venue             =  
| domestic_cup    =
| confed           = <!-- or | continent = or | continents = -->
| website        =  
| titles_label      =
| footnotes       =
| titles            =
| current         = <!-- wikilink to current season article to put icon and link at the bottom of the infobox -->
| champion         = <!-- or | champions = -->
}}</pre>
| 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 "Commissioner".
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}}
<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==
{{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",
"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",
"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",
"sport",
"game",
"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",
"classification",
"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

Usage

{{{title}}}
Current season, competition or edition:
Current sports event [[{{{current_season}}}]]
[[{{{current_season2}}}]]
[[File:{{{logo}}}|{{{logo_size}}}|alt={{{alt}}}|upright={{{logo_upright}}}]]
{{{caption}}}
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
  • {{{sports}}}
    • men's: {{{mens}}}
    • women's: {{{womens}}}
    • coeducational: {{{coed}}}
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 sports event {{{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.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Titletitle

Name of the league.

Stringrequired
Current seasoncurrent_season

Do not wikilink.

Stringsuggested
Current season 2current_season2

Do not wikilink.

Stringoptional
Last seasonlast_season

Do not wikilink.

Stringsuggested
Upcoming seasonupcoming_season

Do not wikilink. Replace with current_season at the start of the new season.

Stringsuggested
Logologo

no description

Example
abc.jpg
Filesuggested
Logo sizelogo_size pixels

no description

Example
100px
Stringoptional
Logo_uprightlogo_upright

no description

Stringoptional
Captioncaption

no description

Stringoptional
Mapmap

no description

Example
abc.jpg
Filesuggested
Map_altmap_alt

no description

Stringoptional
Map_captionmap_caption

no description

Stringoptional
Map sizemap_size pixels

no description

Example
100px
Stringoptional
Map_uprightmap_upright

no description

Stringoptional
Sportsport

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
Stringsuggested
Gamegame

For non-sporting leagues.

Example
Chess
Stringoptional
Leagueleague

For the league that the conference or division is a part of.

Example
[[National Football League]]
Stringoptional
Conferenceconference

For the Conference that the division is a part of.

Example
[[American Football Conference]]
Stringoptional
Classificationclassification

Classification level of the league.

Unknownoptional
Formerformerly

Former name(s) for the sports league.

Stringoptional
Foundedfounded

Date (or year) and location the league was founded.

Stringsuggested
Founderfounder

Name of founder.

Unknownoptional
Inaugural seasoninaugural

no description

Stringsuggested
Foldedfolded

Year the league folded or ended.

Stringoptional
Replacedreplaced

no description

Unknownoptional
Administratoradministrator

Name of the league's administrator.

Stringoptional
Ownerowner

Name of the league's owner.

Stringoptional
CEOceo

Name of the league's Chief Executive Officer.

Stringoptional
COOcoo

Name of the league's Chief Operating Officer.

Stringoptional
Directordirector

Name of the league's Director.

Unknownoptional
Presidentpresident

Name of the league's President.

Unknownoptional
Commissionercommissioner

Name of the league's Commissioner.

Stringoptional
Organising bodyorganiser

Name of the organising body.

Stringoptional
Claim to famefame

What the league is famous for, its "claim to fame". Avoid use if possible.

Stringoptional
Mottomotto

The league's motto.

Stringoptional
Divisionsdivisions

no description

Unknownoptional
Teamsteams

Number of teams in the league. Not for a list of teams.

Numbersuggested
Singlessingles

no description

Unknownoptional
Competitorscompetitors

Number of competitors. Not for a list of competitors.

Unknownoptional
Headquartersheadquarters

Location of headquarters.

Stringoptional
Regionregion

Region of league.

Stringoptional
Venuevenue

no description

Unknownoptional
Countrycountry

Country the league is held in. Per WP:INFOBOXFLAG, avoid adding flag icons.

Stringoptional
Countriescountries

Countries which are part of the league. Per WP:INFOBOXFLAG, avoid adding flag icons.

Stringoptional
Confederationconfed

no description

Stringoptional
Continentscontinents

Continents which are part of the league.

Stringoptional
Continentcontinent

Continent which is part of the league.

Stringoptional
Championchampion

Most recent or last champion.

Stringsuggested
Championschampions

Most recent or last champions.

Stringoptional
Season (for most recent or last champion)champ_season

Season the most recent or last champion won in.

Stringsuggested
Most titles (player)most_champs

Name of player who won the most titles.

Stringsuggested
Most titles (club)most successful club

Name of club who won the most titles.

Unknownsuggested
Qualificationqualification

no description

Unknownoptional
TV partner(s)TV

no description

Unknownoptional
Streaming partner(s)streaming

no description

Unknownoptional
Sponsor(s)sponsor

no description

Unknownoptional
Levellevel

no description

Unknownoptional
Pyramidpyramid

no description

Unknownoptional
Levelslevels

no description

Unknownoptional
Promotion topromotion

no description

Unknownoptional
Relegation torelegation

no description

Unknownoptional
Domestic cup(s)domestic_cup

no description

Unknownoptional
International cup(s)confed_cup

no description

Unknownoptional
Related competitionsrelated_comps

no description

Unknownoptional
Tournament formattournament_format

no description

Stringoptional
Official websitewebsite

no description

Unknownoptional
Current season (bottom)current

Wikilink to current season article to put icon and link at the bottom of the infobox.

Unknownoptional
Footnotesfootnotes

no description

Stringoptional
namename

no description

Unknownoptional
colorcolor

no description

Unknownoptional
font_colorfont_color

no description

Unknownoptional
imageimage

no description

Unknownoptional
Alt textalt

Alt text for logo or image

Unknownoptional
associationassociation

no description

Unknownoptional
sincesince

no description

Unknownoptional
AmEAmE

no description

Unknownoptional
organizerorganizer

no description

Unknownoptional
sportssports

no description

Unknownoptional
mensmens

no description

Unknownoptional
womenswomens

no description

Unknownoptional
coedcoed

no description

Unknownoptional
divisiondivision

no description

Unknownoptional
subdivisionsubdivision

no description

Unknownoptional
subdivisionssubdivisions

no description

Unknownoptional
titles_labeltitles_label

no description

Unknownoptional
titlestitles

no description

Unknownoptional
premierspremiers

no description

Unknownoptional
prem_seasonprem_season

no description

Unknownoptional
most_premsmost_prems

no description

Unknownoptional
mlscupchampsmlscupchamps

no description

Unknownoptional
mlscupseasonmlscupseason

no description

Unknownoptional
shieldchampsshieldchamps

no description

Unknownoptional
shieldseasonshieldseason

no description

Unknownoptional
current_shieldcurrent_shield

no description

Unknownoptional
current_shield_seasoncurrent_shield_season

no description

Unknownoptional
most_mlscupsmost_mlscups

no description

Unknownoptional
most_shieldsmost_shields

no description

Unknownoptional
feedsfeeds

no description

Unknownoptional
dissolveddissolved

no description

Unknownoptional

See also