Template:Infobox sports league: Difference between revisions
Ozycaevias (talk | contribs) m (1 revision imported) |
mNo edit summary |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{infobox | {{infobox | ||
| title = {{if empty|{{{title|}}}|{{BASEPAGENAME}}}} | | title = {{if empty|{{{title|}}}|{{{name|}}}|{{BASEPAGENAME}}}} | ||
| headerstyle = background: {{{color|#EDEDED}}}; color: {{{font_color|#000000}}}; | |||
| 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}}}}}''}} | | 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}}}}}''}} | ||
| labelstyle = white-space: nowrap | | labelstyle = white-space: nowrap | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|{{{pixels|}}}}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|{{{image|}}}}}}|size={{{logo_size|{{{pixels|}}}}}}|upright={{{logo_upright|}}}|alt={{{alt|}}}}} | ||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
| | | label2 = Formerly | ||
| | | data2 = {{if empty|{{{formerly|}}}|{{{Formerly|}}}}} | ||
| | |||
}}{{#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 | 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 | | label3 = Association | ||
| data3 = {{{association|}}} | |||
| label4 = Conference | |||
| data4 = {{{conference|}}} | |||
| label5 = League | |||
| data5 = {{{league|}}} | |||
| label6 = Classification | |||
| data6 = {{{classification|}}} | |||
| label7 = {{#if:{{{game|}}}|Game|Sport}} | |||
| data7 = {{#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|}}}}} }} }} | |||
| label8 = Founded | |||
| data8 = {{{founded|}}} | |||
| label9 = Founder | |||
| data9 = {{if empty|{{{founder|}}}|{{{Founder|}}}}} | |||
| label10 = Inaugural season | |||
| data10 = {{{inaugural|}}} | |||
| label11 = Ceased | |||
| data11 = {{{folded|{{{dissolved|}}}}}} | |||
| label12 = Replaced by | |||
| data12 = {{if empty|{{{replaced|}}}|{{{Replaced|}}}}} | |||
| label13 = Owner(s) | |||
| data13 = {{{owner|}}} | |||
| label14 = {{wpl|Chief executive officer|CEO}} | |||
| data14 = {{{ceo|}}} | |||
| label15 = {{wpl|Chief operating officer|COO}} | |||
| data15 = {{{coo|}}} | |||
| label16 = Director | |||
| data16 = {{if empty|{{{director|}}}|{{{Director|}}}}} | |||
| label17 = President | |||
| data17 = {{if empty|{{{president|}}}|{{{President|}}}}} | |||
| label18 = Commissioner | |||
| data18 = {{if empty|{{{commissioner|}}}|{{{Commissioner|}}}}} {{#if:{{{since|}}}| (since {{{since}}}) }} | |||
| label19 = Administrator | |||
| data19 = {{{administrator|}}} | |||
| label20 = {{#if:{{{AmE|{{{ame|}}}}}}|Organizing|Organising}} body | |||
| data20 = {{{organizer|{{{organiser|}}}}}} | |||
| label29 = Claim to fame | |||
| data29 = {{{fame|}}} | |||
| label30 = Motto | |||
| data30 = {{{motto|}}} | |||
| label37 = Sports fielded | |||
| class37 = {{#if:{{{sports|}}}|hlist|plainlist}} | |||
| data37 = {{#if:{{{sports|}}}| | |||
* {{{sports}}} | |||
{{#if:{{{mens|}}}|** men's: {{{mens}}} | |||
}}{{#if:{{{womens|}}}|** women's: {{{womens}}} | |||
}}{{#if:{{{coed|}}}|** coeducational: {{{coed}}} }} | |||
|{{#if:{{{mens|}}}{{{womens|}}}{{{coed|}}}| | |||
{{#if:{{{mens|}}}|* men's: {{{mens}}} | |||
}}{{#if:{{{womens|}}}|* women's: {{{womens}}} | |||
}}{{#if:{{{coed|}}}|* coeducational: {{{coed}}} }} | |||
}}}} | |||
| label40 = Division | |||
| data40 = {{{division|}}} | |||
| label50 = {{#if:{{{subdivision|}}}|Subdivision|Subdivisions}} | |||
| data50 = {{if empty|{{{subdivision|}}}|{{{subdivisions|}}}}} | |||
| label51 = Divisions | |||
| data51 = {{{divisions|}}} | |||
| label52 = No. of teams | |||
| data52 = {{{teams|}}} | |||
| label53 = Singles entrants | |||
| data53 = {{{singles|}}} | |||
| label54 = Competitors | |||
| data54 = {{{competitors|}}} | |||
| label55 = {{#if:{{{countries|}}}|Countries|Country}} | |||
| data55 = {{if empty|{{{countries|}}}|{{{country|}}}}} | |||
| label56 = Headquarters | |||
| data56 = {{{headquarters|}}} | |||
| label57 = Region | |||
| data57 = {{{region|}}} | |||
| label58 = Venue(s) | |||
| data58 = {{{venue|}}} | |||
| label59 = {{#if:{{{confed|}}}|Confederation|{{#if:{{{continents|}}}|Continents|Continent}}}} | |||
| data59 = {{if empty|{{{confed|}}}|{{{continents|}}}|{{{continent|}}}}} | |||
| label63 = {{if empty|{{{titles_label|}}}|Titles}} | |||
| data63 = {{{titles|}}} | |||
| label70 = {{#if: {{{folded|}}} | Last | Most recent }}<br />champion(s) | |||
| data70 = {{if empty|{{{champion|}}}|{{{champions|}}}}} {{#if:{{{champ_season|}}}|<br />({{{champ_season}}})}} | |||
| label71 = Most titles | |||
| data71 = {{if empty|{{{most_champs|}}}|{{{most successful club|}}}}} | |||
| label77 = Current premiers | |||
| data77 = {{#if:{{{premiers|}}}|{{{premiers|}}} {{#if:{{{prem_season|}}}|({{{prem_season}}})}}}} | |||
| label78 = Most premiers | |||
| data78 = {{{most_prems|}}} | |||
| label79 = Current [[MLS Cup]] | |||
| data79 = {{{mlscupchamps|}}}{{#if:{{{mlscupseason|}}}|<br />({{{mlscupseason|}}})}} | |||
| label80 = Current [[MLS Supporters' Shield|Supporters' Shield]] | |||
| data80 = {{{shieldchamps|}}}{{#if:{{{shieldseason|}}}|<br />({{{shieldseason|}}})}} | |||
| label81 = Current shield | |||
| data81 = {{#if:{{{current_shield|}}}|{{{current_shield|}}} {{#if:{{{current_shield_season|}}}|({{{current_shield_season}}})}}}} | |||
| label83 = Most MLS Cups | |||
| data83 = {{{most_mlscups|}}} | |||
| label84 = Most Supporters' Shields | |||
| data84 = {{{most_shields|}}} | |||
| label85 = Qualification | |||
| data85 = {{{qualification|}}} | |||
| label86 = TV partner(s) | |||
| data86 = {{{TV|{{{tv|}}}}}} | |||
| label87 = Streaming partner(s) | |||
| data87 = {{{streaming|}}} | |||
| label88 = Sponsor(s) | |||
| data88 = {{{sponsor|}}} | |||
| label89 = Feeder to | |||
| data89 = {{{feeds|}}} | |||
| label90 = {{#if:{{{level|}}}|Level|Level}} on {{#if:{{{pyramid|}}}|[[{{{pyramid}}}|pyramid]]|pyramid}} | |||
| data90 = {{if empty|{{{level|}}}|{{{levels|}}}}} | |||
| label91 = [[Promotion and relegation|Promotion]] to | |||
| data91 = {{{promotion|}}} | |||
| label92 = [[Promotion and relegation|Relegation]] to | |||
| data92 = {{{relegation|}}} | |||
| label93 = Domestic cup(s) | |||
| data93 = {{{domestic_cup|}}} | |||
| label94 = International cup(s) | |||
| data94 = {{{confed_cup|}}} | |||
| label95 = Related<br />competitions | |||
| data95 = {{{related_comps|}}} | |||
| label96 = Tournament format | |||
| data96 = {{{tournament_format|}}} | |||
| label97 = Official website | |||
| data97 = {{{website|}}} | |||
| data98 = {{#if:{{{current|}}}|{{Current sports event icon|sport={{{sport}}}|size=31px}} ''{{{current}}}''}} | |||
| header99 = {{#if:{{{footnotes|}}}|Notes}} | |||
| data100 = {{{footnotes|}}} | |||
| header101 = {{#if:{{{map|}}}|Locations}} | |||
| data102 = {{#if:{{{map|}}} | |||
|{{#invoke:InfoboxImage|InfoboxImage|image={{{map}}}|size={{{map_size|}}}|sizedefault=250px|upright={{{map_upright|}}}|alt={{{map_alt|}}}|title={{{map_caption|Location of teams in {{{title}}}}}}}}{{#if:{{{map_caption|}}}|{{{map_caption}}} }} | |||
}} | |||
}}{{#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 | alt | AmE | ame | association | caption | ceo | champ_season | champion | champions | classification | coed | color | commissioner | Commissioner | competitors | confed | confed_cup | conference | continent | continents | coo | countries | country | current | current_season | current_season2 | current_shield | current_shield_season | director | Director | dissolved | division | divisions | domestic_cup | fame | feeds | folded | font_color | footnotes | formerly | Formerly | founded | founder | Founder | game | headquarters | image | inaugural | last_season | league | level | levels | logo | logo_size | logo_upright | map | map_alt | map_caption | map_size | map_upright | mens | mlscupchamps | mlscupseason | most successful club | most_champs | most_mlscups | most_prems | most_shields | motto | name | organiser | organizer | owner | pixels | prem_season | premiers | president | President | promotion | pyramid | qualification | region | related_comps | relegation | replaced | Replaced | shieldchamps | shieldseason | since | singles | sponsor | sport | sports | streaming | subdivision | subdivisions | teams | title | titles | titles_label | tournament_format | TV | tv | upcoming_season | venue | website | womens }}<noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 21:37, 25 September 2023
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.
|