Template:Infobox sports league: Difference between revisions

no edit summary
(Created page with "{{infobox | title = {{if empty|{{{title|}}}|{{BASEPAGENAME}}}} | subheader = {{#if: {{{current_season|}}} | '''Current season, competition or edition:'''<br />{{Current s...")
 
No edit summary
Line 1:
{{Infobox sports league
{{infobox
| title = {{if empty|{{{title|}}}|{{BASEPAGENAME}}}} =
| current_season = <!-- do not wikilink -->
 
| current_season2 = <!-- do not wikilink -->
| 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}}}}}''}}
| last_season = <!-- do not wikilink -->
| labelstyle = white-space: nowrap
| upcoming_season = <!-- do not wikilink; replace with current_season at the start of the new season -->
 
| logo =
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|{{{pixels|}}}}}}}}
| logo_size = <!-- use a format of ##px, such as 120px -->
| caption = {{{caption|}}}
| label1caption = Formerly
| formerly =
| data1 = {{if empty|{{{formerly|}}}|{{{Formerly|}}}}}
| sport = <!-- does not need to be wikilinked. This parameter is also
| label2 = {{#if:{{{game|}}}|Game|Sport}}
used to help automatically switch the "current_season" image to be more specific
| 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|}}}}} }} }}
to replace the generic current event image (see below). Currently supports:
| label3 = Founded
American football, athletics, Australian rules football, baseball, basketball, boxing, cricket, cue sports, curling, cycling, esports, golf, gymnastics, hockey, lacrosse,
| data3 = {{{founded|}}}
motorsports, netball, Olympics, poker, pro wrestling, rugby, soccer, softball,
| label4 = Founder
speed skating, squash, swimming, table tennis, tennis, volleyball.-->
| data4 = {{if empty|{{{founder|}}}|{{{Founder|}}}}}
| label5game = Inaugural season =
| data5founded = {{{inaugural|}}}
| label6folded = Ceased
| data6replaced = {{{folded|}}}
| label7owner = Replaced by =
| label9ceo = [[Chief<!-- chief executive officer|CEO]] -->
| data7 = {{if empty|{{{replaced|}}}|{{{Replaced|}}}}}
| label10coo = [[Chief<!-- chief operating officer|COO]] -->
| label8 = {{#if:{{{administrator|}}}|Administrator|Owner(s)}}
| director =
| data8 = {{#if:{{{administrator|}}}|{{{administrator}}}|{{{owner|}}}}}
| president =
| label9 = [[Chief executive officer|CEO]]
| data9 commissioner = {{{ceo|}}}
| fame = <!--what the league is famous for...the "claim to fame"...avoid use if possible-->
| label10 = [[Chief operating officer|COO]]
| data10motto = {{{coo|}}}
| label11inaugural = Director
| teams =
| data11 = {{if empty|{{{director|}}}|{{{Director|}}}}}
| label12singles = President
| country = <!-- or | countries = -->
| data12 = {{if empty|{{{president|}}}|{{{President|}}}}}
| label13venue = Commissioner
| confed = <!-- or | continent = or | continents = -->
| data13 = {{if empty|{{{commissioner|}}}|{{{Commissioner|}}}}}
| label14champion = Claim to fame =
| data14champ_season = {{{fame|}}}
| label15most_champs = Motto
| classification =
| data15 = {{{motto|}}}
| label16qualification = Divisions
| data16tv = {{{divisions|}}}
| label17sponsor = No. of teams =
| data17investor = {{{teams|}}}
| related_comps =
| label18 = Singles entrants
| data18founder = {{{singles|}}}
| label19levels = Competitors
| promotion =
| data19 = {{{competitors|}}}
| relegation =
| label20 = {{#if:{{{countries|}}}|Countries|Country}}
| domestic_cup =
| data20 = {{if empty|{{{countries|}}}|{{{country|}}}}}
| label21website = Headquarters
| footnotes =
| data21 = {{{headquarters|}}}
| current = <!-- wikilink to current season article to put icon and link at the bottom of the infobox -->
| 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|}}}
 
| data38 = {{#if:{{{current|}}}|{{Current sports event icon|sport={{{sport}}}|size=31px}} ''{{{current}}}''}}
| header39 = {{#if:{{{footnotes|}}}|Notes}}
| 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>
{{documentation}}
</noinclude>
40

edits