Difference between revisions of "Template:Infobox sports league/doc"

From Sim Football Wiki
Jump to navigation Jump to search
m (1 revision imported)
 
Line 4: Line 4:
  
 
== Usage ==
 
== Usage ==
{{Parameter names example | title | current_season | sport | last_season | upcoming_season | current_season2 | logo | logo_size | caption | Formerly | formerly | Replaced | replaced | founded | administrator | owner | ceo | Director | director | President | president | Commissioner | commissioner | coo | Chief Operating Officer | fame | motto | inaugural | divisions | teams | singles | competitors | countries | country | headquarters | venue | confed | continents | continent | folded | champion | champions | most_champs | most successful club | classification | qualification | TV | tv | sponsor | related_comps | founder | Founder | level | pyramid | levels | promotion | relegation | domestic_cup | confed_cup | tournament_format | website | footnotes }}
+
{{Parameter names example | title | current_season | sport | last_season | upcoming_season | current_season2 | logo | logo_size | caption | Formerly | formerly | Replaced | replaced | founded | administrator | owner | ceo | Director | director | President | president | Commissioner | commissioner | coo | fame | motto | inaugural | divisions | teams | singles | competitors | countries | country | headquarters | venue | confed | continents | continent | folded | champion | champions | champ_season | most_champs | most successful club | classification | qualification | TV | tv | sponsor | related_comps | founder | Founder | level | pyramid | levels | promotion | relegation | domestic_cup | confed_cup | tournament_format | website | footnotes }}
  
 
<pre style="overflow:auto;">
 
<pre style="overflow:auto;">
Line 17: Line 17:
 
| caption        =  
 
| caption        =  
 
| formerly        =  
 
| formerly        =  
| sport          = <!-- or | game = --><!-- does not need to be wikilinked. This parameter is also  
+
| sport          = <!-- does not need to be wikilinked. This parameter is also  
 
used to help automatically switch the "current_season" image to be more specific
 
used to help automatically switch the "current_season" image to be more specific
 
to replace the generic current event image (see below). Currently supports:
 
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, golf, gymnastics, hockey, lacrosse,
+
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,
 
motorsports, netball, Olympics, poker, pro wrestling, rugby, soccer, softball,
 
speed skating, squash, swimming, table tennis, tennis, volleyball.-->
 
speed skating, squash, swimming, table tennis, tennis, volleyball.-->
 +
| game            =
 
| founded        =  
 
| founded        =  
 
| folded          =  
 
| folded          =  
Line 30: Line 31:
 
| coo            = <!-- chief operating officer -->
 
| coo            = <!-- chief operating officer -->
 
| director        =  
 
| director        =  
| president      =
+
| president      =  
| commissioner    =
+
| commissioner    =  
 
| fame            = <!--what the league is famous for...the "claim to fame"...avoid use if possible-->
 
| fame            = <!--what the league is famous for...the "claim to fame"...avoid use if possible-->
 
| motto          =  
 
| motto          =  
Line 41: Line 42:
 
| confed          = <!-- or | continent = or | continents = -->
 
| confed          = <!-- or | continent = or | continents = -->
 
| champion        =  
 
| champion        =  
 +
| champ_season    =
 
| most_champs    =  
 
| most_champs    =  
| classification  =
+
| classification  =  
 
| qualification  =  
 
| qualification  =  
 
| tv              =  
 
| tv              =  
Line 50: Line 52:
 
| founder        =  
 
| founder        =  
 
| levels          =  
 
| levels          =  
| promotion      =
+
| promotion      =  
| relegation      =
+
| relegation      =  
| domestic_cup    =
+
| domestic_cup    =  
 
| website        =  
 
| website        =  
| footnotes      =
+
| footnotes      =  
 
| current        = <!-- wikilink to current season article to put icon and link at the bottom of the infobox -->
 
| current        = <!-- wikilink to current season article to put icon and link at the bottom of the infobox -->
 
}}</pre>
 
}}</pre>
Line 67: Line 69:
 
* {{clc|Pages using infobox sports league with unknown parameters}}
 
* {{clc|Pages using infobox sports league with unknown parameters}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Sports infobox templates|Sports League]]
 
[[Category:Sports infobox templates|Sports League]]
[[Category:Templates that add a tracking category]]
+
[[Category:Templates that add a tracking category|{{PAGENAME}}]]
}}</includeonly>
+
}}</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 04:20, 16 June 2021

Usage

{{{title}}}
Current season, competition or edition:
Current sports event [[{{{current_season}}}]]
[[{{{current_season2}}}]]
[[File:{{{logo}}}|{{{logo_size}}}|center]]
{{{caption}}}
Formerly{{{formerly}}}
Sport{{{sport}}}
Founded{{{founded}}}
Founder{{{founder}}}
Inaugural season{{{inaugural}}}
Ceased{{{folded}}}
Replaced by{{{replaced}}}
Administrator{{{administrator}}}
CEO{{{ceo}}}
COO{{{coo}}}
Director{{{director}}}
President{{{president}}}
Commissioner{{{commissioner}}}
Claim to fame{{{fame}}}
Motto{{{motto}}}
Divisions{{{divisions}}}
No. of teams{{{teams}}}
Singles entrants{{{singles}}}
Competitors{{{competitors}}}
Countries{{{countries}}}
Headquarters{{{headquarters}}}
Venue(s){{{venue}}}
Confederation{{{confed}}}
Last
champion(s)
{{{champion}}}
({{{champ_season}}})
Most titles{{{most_champs}}}
Classification{{{classification}}}
Qualification{{{qualification}}}
TV partner(s){{{TV}}}
Sponsor(s){{{sponsor}}}
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}}}
Notes
{{{footnotes}}}
{{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

<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": "Template:\n\n", "description": "Infobox for sports leagues." } </templatedata>