Difference between revisions of "Template:Infobox sports league"

From blackwiki
Jump to navigation Jump to search
imported>Kanesue
m
imported>S.A. Julio
(add to unknown parameter check per edit request)
 
(207 intermediate revisions by 67 users not shown)
Line 1: Line 1:
{| class="infobox" width="280" cellspacing="0" style="font-size: 90%;"
+
{{infobox
|-
+
| title     = {{if empty|{{{title|}}}|{{BASEPAGENAME}}}}
! colspan="2" style="font-size: medium;" | {{{title|{{PAGENAME}}}}}
 
|-
 
{{#if:{{{current_season<includeonly>|</includeonly>}}} |
 
{{!}} colspan="2" align="center" {{!}} [[Image:Soccerball current event.svg|40px|Current season or competition]] ''[[{{{current_season<includeonly>|</includeonly>}}}<!--|Current season or competition-->]]''
 
{{!}}-
 
}}
 
{{#if: {{{logo<includeonly>|</includeonly>}}} |
 
{{!}} colspan="2" style="text-align: center; background-color:#ffffff; border-top:solid 1px #ccd2d9; border-bottom:solid 1px #ccd2d9;" {{!}} [[Image:{{{logo}}}|{{{pixels|200px}}}|{{{caption|{{PAGENAME}}}}}]]
 
{{!}}-
 
}}
 
| '''Sport''' || {{{sport}}}
 
|-
 
| '''Founded''' || [[{{{founded}}} in sports|{{{founded}}}]]
 
|-
 
{{#if: {{{ceo<includeonly>|</includeonly>}}} |
 
{{!}} '''Commissioner'''
 
{{!}} {{{ceo}}}
 
{{!}}-
 
}}
 
{{#if: {{{fame<includeonly>|</includeonly>}}} |
 
{{!}} '''Claim to fame'''
 
{{!}} {{{fame}}}
 
{{!}}-
 
}}
 
{{#if: {{{motto<includeonly>|</includeonly>}}} |
 
{{!}} '''Motto'''
 
{{!}} {{{motto}}}
 
{{!}}-
 
}}
 
{{#if:{{{inaugural<includeonly>|</includeonly>}}} |
 
{{!}} '''Inaugural season'''
 
{{!}} [[{{{inaugural}}} in sports|{{{inaugural}}}]]
 
{{!}}-
 
}}
 
{{!}}-
 
{{#if:{{{teams|<noinclude>-</noinclude>}}}|
 
{{!}}'''No. of teams'''
 
{{!}}{{{teams}}}
 
{{!}}-
 
}}
 
{{!}}-
 
{{#if:{{{singles|<noinclude>-</noinclude>}}}|
 
{{!}}'''Singles entrants'''
 
{{!}}{{{singles}}}
 
{{!}}-
 
}}
 
{{#if:{{{country<includeonly>|</includeonly>}}} |
 
{{!}} '''Country(ies)'''
 
{{!}} {{{country}}}
 
{{!}}-
 
}}
 
{{#if:{{{continent<includeonly>|</includeonly>}}} |
 
{{!}} '''Continent'''
 
{{!}} {{{continent}}}
 
}}
 
{{!}}-
 
{{#if:{{{folded<includeonly>|</includeonly>}}} |
 
{{!}} '''Ceased'''
 
{{!}} [[{{{folded}}} in sports|{{{folded}}}]]
 
{{!}}-
 
}}
 
{{#if:{{{champion<includeonly>|</includeonly>}}} |  
 
{{!}} '''{{#if:{{{folded|}}}|Last|Most recent}} champion(s)'''<!--There is no "current" or "defending" champion if a league has folded and is now defunct: "defending champion" inappropriate if that individual or team is not competing in the next edition.-->
 
{{!}} {{{champion}}}
 
{{!}}-
 
}}
 
{{!}}-
 
{{#if:{{{most_champs<includeonly>|</includeonly>}}} |
 
{{!}} '''Most championship(s)'''
 
{{!}} {{{most_champs}}}
 
{{!}}-
 
}}
 
{{!}}-
 
{{#if:{{{TV<includeonly>|</includeonly>}}} |
 
{{!}} '''TV partner(s)'''
 
{{!}} {{{TV}}}
 
{{!}}-
 
}}
 
{{#if:{{{website<includeonly>|</includeonly>}}} |
 
{{!}} '''Official website'''
 
{{!}} {{{website}}}
 
{{!}}-
 
}}
 
{{#if:{{{related_comps<includeonly>|</includeonly>}}} |
 
{{!}} '''Related competitions'''
 
{{!}} {{{related_comps}}}
 
}}
 
|}<noinclude>
 
  
<pre>
+
| 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}}}}}''}}
{{Infobox Sports league
+
| labelstyle = white-space: nowrap
| title          =
 
| current_season =
 
| logo          =
 
| pixels        =
 
| caption        =
 
| sport          =
 
| founded        =
 
| fame          =
 
| motto          =
 
| inaugural      =
 
| teams          =
 
| country        =
 
| champion      =
 
| most_champs    =
 
| folded        =
 
| website        =
 
| singles        =
 
| ceo            =
 
| TV            =
 
| related_comps  =
 
}}
 
</pre>
 
  
[[Category:Sports infobox templates|Sports league]]
+
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|{{{pixels|}}}}}}}}
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
+
| caption  = {{{caption|}}}
[[es:Plantilla:Info Liga]]
+
| label1    = Formerly
[[fr:Modèle:Infobox Ligue de sport]]
+
| data1    = {{if empty|{{{formerly|}}}|{{{Formerly|}}}}}
[[hu:Sablon:Infobox sport bajnokság]]
+
| label2    = {{#if:{{{game|}}}|Game|Sport}}
[[ja:Template:スポーツリーグ]]
+
| 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|}}}}} }} }}
[[lv:Veidne:Sporta līga]]
+
| label3    = Founded
[[pl:Szablon:Liga infobox]]
+
| data3    = {{{founded|}}}
[[fi:Malline:Urheilusarja]]
+
| label4    = Founder
[[zh:Template:Infobox sports league]]
+
| 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|}}}
 +
 
 +
| 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>
 
</noinclude>

Latest revision as of 03:34, 28 December 2019

Script error: No such module "If empty".
FormerlyScript error: No such module "If empty".
FounderScript error: No such module "If empty".
Replaced byScript error: No such module "If empty".
DirectorScript error: No such module "If empty".
PresidentScript error: No such module "If empty".
CommissionerScript error: No such module "If empty".
CountryScript error: No such module "If empty".
ContinentScript error: No such module "If empty".
Most recent
champion(s)
Script error: No such module "If empty".
Most titlesScript error: No such module "If empty".
Level on pyramidScript error: No such module "If empty".

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

Template:Parameter names example

{{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 -->
| 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 -->
}}

The ceo parameter displays "Commissioner". The coo parameter displays "Chief Operating Officer".

Images used for the current season link

See Template:Current sports event icon.

Tracking category

TemplateData

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
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
Logologo

no description

Example
abc.jpg
Filesuggested
Logo sizelogo_size pixels

no description

Example
100px
Stringoptional
Captioncaption

no description

Stringoptional
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
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
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
Classificationclassification

no description

Unknownoptional
Qualificationqualification

no description

Unknownoptional
TV partner(s)TV

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