Template:Infobox sports league: Difference between revisions

From TLAwiki
Content added Content deleted
No edit summary
No edit summary
Line 1: 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}}}}


| subheader = {{#if: {{{current_season|}}} | '''Current season, competition or edition:'''<br />{{Current sports event icon|sport={{{sport}}}|size=31px}} ''{{#iferror:{{#expr:{{{current_season}}}}}|[[{{{current_season}}}]]|{{{current_season}}}}}'' | {{#if: {{{last_season|}}} | '''Most recent season or competition:'''<br />''{{#iferror:{{#expr:{{{last_season}}}}}|[[{{{last_season}}}]]|{{{last_season}}}}}'' | {{#if: {{{upcoming_season|}}} | '''Upcoming season or competition:'''<br />{{Current sports event icon|sport={{{sport}}}|size=31px}} ''{{#iferror:{{#expr:{{{upcoming_season}}}}}|[[{{{upcoming_season}}}]]|{{{upcoming_season}}}}}''}} }} }}{{#if: {{{current_season2|}}} | <br/>''{{#iferror:{{#expr:{{{current_season2}}}}}|[[{{{current_season2}}}]]|{{{current_season2}}}}}''}}
== Usage ==
| labelstyle = white-space: nowrap


| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|{{{pixels|}}}}}}}}
<pre style="overflow:auto;">
| caption = {{{caption|}}}
{{Infobox sports league
| title =
| label1 = Formerly
| data1 = {{if empty|{{{formerly|}}}|{{{Formerly|}}}}}
| current_season = <!-- do not wikilink -->
| label2 = {{#if:{{{game|}}}|Game|Sport}}
| current_season2 = <!-- do not wikilink -->
| 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|}}}}} }} }}
| last_season = <!-- do not wikilink -->
| label3 = Founded
| upcoming_season = <!-- do not wikilink; replace with current_season at the start of the new season -->
| logo =
| data3 = {{{founded|}}}
| label4 = Founder
| logo_size = <!-- use a format of ##px, such as 120px -->
| data4 = {{if empty|{{{founder|}}}|{{{Founder|}}}}}
| caption =
| formerly =
| label5 = Inaugural season
| data5 = {{{inaugural|}}}
| sport = <!-- does not need to be wikilinked. This parameter is also
| label6 = Ceased
used to help automatically switch the "current_season" image to be more specific
| data6 = {{{folded|}}}
to replace the generic current event image (see below). Currently supports:
| label7 = Replaced by
American football, athletics, Australian rules football, baseball, basketball, boxing, cricket, cue sports, curling, cycling, esports, golf, gymnastics, hockey, lacrosse,
| data7 = {{if empty|{{{replaced|}}}|{{{Replaced|}}}}}
motorsports, netball, Olympics, poker, pro wrestling, rugby, soccer, softball,
| label8 = {{#if:{{{administrator|}}}|Administrator|Owner(s)}}
speed skating, squash, swimming, table tennis, tennis, volleyball.-->
| data8 = {{#if:{{{administrator|}}}|{{{administrator}}}|{{{owner|}}}}}
| game =
| label9 = [[Chief executive officer|CEO]]
| founded =
| folded =
| data9 = {{{ceo|}}}
| label10 = [[Chief operating officer|COO]]
| replaced =
| owner =
| data10 = {{{coo|}}}
| label11 = Director
| ceo = <!-- chief executive officer -->
| data11 = {{if empty|{{{director|}}}|{{{Director|}}}}}
| coo = <!-- chief operating officer -->
| director =
| label12 = President
| data12 = {{if empty|{{{president|}}}|{{{President|}}}}}
| president =
| label13 = Commissioner
| commissioner =
| data13 = {{if empty|{{{commissioner|}}}|{{{Commissioner|}}}}}
| fame = <!--what the league is famous for...the "claim to fame"...avoid use if possible-->
| motto =
| label14 = Claim to fame
| inaugural =
| data14 = {{{fame|}}}
| teams =
| label15 = Motto
| singles =
| data15 = {{{motto|}}}
| label16 = Divisions
| country = <!-- or | countries = -->
| venue =
| data16 = {{{divisions|}}}
| label17 = No. of teams
| confed = <!-- or | continent = or | continents = -->
| champion =
| data17 = {{{teams|}}}
| label18 = Singles entrants
| champ_season =
| most_champs =
| data18 = {{{singles|}}}
| label19 = Competitors
| classification =
| data19 = {{{competitors|}}}
| qualification =
| label20 = {{#if:{{{countries|}}}|Countries|Country}}
| tv =
| data20 = {{if empty|{{{countries|}}}|{{{country|}}}}}
| sponsor =
| investor =
| label21 = Headquarters
| data21 = {{{headquarters|}}}
| related_comps =
| founder =
| label22 = Venue(s)
| levels =
| data22 = {{{venue|}}}
| label23 = {{#if:{{{confed|}}}|Confederation|{{#if:{{{continents|}}}|Continents|Continent}}}}
| promotion =
| data23 = {{if empty|{{{confed|}}}|{{{continents|}}}|{{{continent|}}}}}
| relegation =
| label24 = {{#if: {{{folded|}}} | Last | Most recent }}<br>champion(s)
| domestic_cup =
| data24 = {{if empty|{{{champion|}}}|{{{champions|}}}}} {{#if:{{{champ_season|}}}|<br />({{{champ_season}}})}}
| website =
| footnotes =
| label25 = Most titles
| data25 = {{if empty|{{{most_champs|}}}|{{{most successful club|}}}}}
| current = <!-- wikilink to current season article to put icon and link at the bottom of the infobox -->
| label26 = Classification
}}</pre>
| 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|}}}


| data38 = {{#if:{{{current|}}}|{{Current sports event icon|sport={{{sport}}}|size=31px}} ''{{{current}}}''}}
The <code>ceo</code> parameter displays "Commissioner".
| header39 = {{#if:{{{footnotes|}}}|Notes}}
The <code>coo</code> parameter displays "Chief Operating Officer".
| data40 = {{{footnotes|}}}

}}{{#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>
==Tracking category==
{{documentation}}

</noinclude>
<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>

Revision as of 15:58, 20 October 2020

Infobox sports league
Template documentation[create]