Template:Infobox sports league: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1:
{{infobox
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[</nowiki>[[Wikipedia:Wikidata]]<nowiki>]]) -->
| title = {{if empty|{{{title|}}}|{{BASEPAGENAME}}}}
 
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|{{{pixels|}}}}}}}}
== Usage ==
| caption = {{{caption|}}}
| label1 = Formerly
| data1 = {{if empty|{{{formerly|}}}|{{{Formerly|}}}}}
| label2 = {{#if:{{{game|}}}|Game|Sport}}
| data2 = {{#if:{{{game|}}}|{{{game}}}|{{#switch: {{lc: {{{sport}}}}} | amfootball | americanfootball = [[American football]] | aussie rules | australian football = [[Australian rules football]] | squash = [[Squash (sport)|Squash]] | soccer = [[Association football]] | {{#ifexist:{{{sport|}}}|[[{{{sport|}}}]]|{{{sport|}}}}} }} }}
| label3 = Founded
| data3 = {{{founded|}}}
| label4 = Founder
| data4 = {{if empty|{{{founder|}}}|{{{Founder|}}}}}
| label5 = Inaugural season
| data5 = {{{inaugural|}}}
| label6 = Ceased
| data6 = {{{folded|}}}
| label7 = Replaced by
| data7 = {{if empty|{{{replaced|}}}|{{{Replaced|}}}}}
| label8 = {{#if:{{{administrator|}}}|Administrator|Owner(s)}}
| data8 = {{#if:{{{administrator|}}}|{{{administrator}}}|{{{owner|}}}}}
| label9 = [[Chief executive officer|CEO]]
| data9 = {{{ceo|}}}
| label10 = [[Chief operating officer|COO]]
| data10 = {{{coo|}}}
| label11 = Director
| data11 = {{if empty|{{{director|}}}|{{{Director|}}}}}
| label12 = President
| data12 = {{if empty|{{{president|}}}|{{{President|}}}}}
| label13 = Commissioner
| data13 = {{if empty|{{{commissioner|}}}|{{{Commissioner|}}}}}
| label14 = Claim to fame
| data14 = {{{fame|}}}
| label15 = Motto
| data15 = {{{motto|}}}
| label16 = Divisions
| data16 = {{{divisions|}}}
| label17 = No. of teams
| data17 = {{{teams|}}}
| label18 = Singles entrants
| data18 = {{{singles|}}}
| label19 = Competitors
| data19 = {{{competitors|}}}
| label20 = {{#if:{{{countries|}}}|Countries|Country}}
| data20 = {{if empty|{{{countries|}}}|{{{country|}}}}}
| label21 = Headquarters
| data21 = {{{headquarters|}}}
| label22 = Venue(s)
| data22 = {{{venue|}}}
| label23 = {{#if:{{{confed|}}}|Confederation|{{#if:{{{continents|}}}|Continents|Continent}}}}
| data23 = {{if empty|{{{confed|}}}|{{{continents|}}}|{{{continent|}}}}}
| label24 = {{#if: {{{folded|}}} | Last | Most recent }}<br>champion(s)
| data24 = {{if empty|{{{champion|}}}|{{{champions|}}}}} {{#if:{{{champ_season|}}}|<br />({{{champ_season}}})}}
| label25 = Most titles
| data25 = {{if empty|{{{most_champs|}}}|{{{most successful club|}}}}}
| label26 = Classification
| data26 = {{{classification|}}}
| label27 = Qualification
| data27 = {{{qualification|}}}
| label28 = TV partner(s)
| data28 = {{{TV|{{{tv|}}}}}}
| label29 = Sponsor(s)
| data29 = {{{sponsor|}}}
| label30 = {{#if:{{{level|}}}|Level|Level}} on {{#if:{{{pyramid|}}}|[[{{{pyramid}}}|pyramid]]|pyramid}}
| data30 = {{if empty|{{{level|}}}|{{{levels|}}}}}
| label31 = [[Promotion and relegation|Promotion]] to
| data31 = {{{promotion|}}}
| label32 = [[Promotion and relegation|Relegation]] to
| data32 = {{{relegation|}}}
| label33 = Domestic cup(s)
| data33 = {{{domestic_cup|}}}
| label34 = International cup(s)
| data34 = {{{confed_cup|}}}
| label35 = Related<br>competitions
| data35 = {{{related_comps|}}}
| label36 = Tournament format
| data36 = {{{tournament_format|}}}
| label37 = Official website
| data37 = {{{website|}}}
 
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox sports league with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox sports league]] with unknown parameter "_VALUE_"|ignoreblank=y| administrator | caption | ceo | champion | champions | champ_season | classification | commissioner | Commissioner | competitors | confed | confed_cup | continent | continents | coo | countries | country | current | current_season | current_season2 | director | Director | divisions | domestic_cup | fame | folded | footnotes | formerly | Formerly | founded | founder | Founder | game | headquarters | inaugural | last_season | level | levels | logo | logo_size | most successful club | most_champs | motto | owner | pixels | president | President | promotion | pyramid | qualification | related_comps | relegation | replaced | Replaced | singles | sponsor | sport | teams | title | tournament_format | tv | TV | upcoming_season | venue | website }}<noinclude>
<pre style="overflow:auto;">
{{documentation}}
{{Infobox sports league
</noinclude>
| 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 -->
}}</pre>
 
The <code>ceo</code> parameter displays "Commissioner".
The <code>coo</code> parameter displays "Chief Operating Officer".
 
==Tracking category==
 
<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