Template:Infobox football league season/doc

From The League Wiki
Jump to navigation Jump to search
{{{competition}}}
[[File:{{{logo}}}|{{{pixels}}}|alt={{{alt}}}]]
{{{caption}}}
Season{{{season}}}
Dates{{{dates}}}
MLS Cup{{{mlscup}}}
{{{shieldtitle}}}{{{shield}}}
Premiers{{{premiers}}}
Promoted{{{promoted}}}
Relegated{{{relegated}}}
{{{continentalcup1}}}{{{continentalcup1 qualifiers}}}
{{{continentalcup2}}}{{{continentalcup2 qualifiers}}}
{{{continentalcup3}}}{{{continentalcup3 qualifiers}}}
{{{continentalcup4}}}{{{continentalcup4 qualifiers}}}
Matches played{{{matches}}}{{{matches footnote}}}
Goals scored{{{total goals}}} (Expression error: Unrecognized punctuation character "&". per match){{{total goals footnote}}}
Average goals/game{{{average goals}}}
Best Player{{{best player}}}
Top goalscorer{{{league topscorer}}}
Best goalkeeper{{{best goalkeeper}}}
Biggest home win{{{biggest home win}}}
Biggest away win{{{biggest away win}}}
Highest scoring{{{highest scoring}}}
Longest winning run{{{longest wins}}}
Longest unbeaten run{{{longest unbeaten}}}
Longest winless run{{{longest winless}}}
Longest losing run{{{longest losses}}}
Highest attendance{{{highest attendance}}}
Lowest attendance{{{lowest attendance}}}
Total attendance{{{attendance}}}
Average attendance{{{average attendance}}}
← {{{prevseason}}}
{{{nextseason}}} →
All statistics correct as of {{{updated}}}.
{{{extra information}}}

Usage

{{Infobox football league season
| competition               =
| logo                      =
| image                     =
| pixels                    = <!-- width of image in pixels (px) -->
| alt                       =
| caption                   =
| season                    =
| dates                     = 
| mlscup                    = <!-- for MLS only; supersedes "winners" parameter -->
| winners                   =
| American                  = <!-- changes "Champions" to "Champion(s)" -->
| shieldtitle               =
| shield                    =
| premiers                  =
| promoted                  =
| relegated                 =
| continentalcup1           =
| continentalcup1 qualifiers=
| continentalcup2           =
| continentalcup2 qualifiers=
| continentalcup3           =
| continentalcup3 qualifiers=
| continentalcup4           =
| continentalcup4 qualifiers=
| matches                   = <!-- no commas -->
| matches footnote          =
| total goals               =
| total goals footnote      =
| average goals             =
| best player               =
| league topscorer          =
| best goalkeeper           =
| biggest home win          =
| biggest away win          =
| highest scoring           =
| longest wins              =
| longest unbeaten          =
| longest winless           =
| longest losses            =
| highest attendance        =
| lowest attendance         =
| attendance                =
| average attendance        =
| prevseason                =
| nextseason                =
| updated                   =
| extra information         =
}}

Parameters

All parameters are optional.

  • {{{competition}}} — The commonly-used name of the competition (including sponsorship). If this is omitted, it will be automatically derived from the article title.
  • {{{dates}}} — The dates of the first and last matches played in the season, separated by an endash
  • {{{winners}}} — Champions
  • {{{mlscup}}} — MLS Cup winners. Note that this supersedes the {{{winners}}} field.
  • {{{shieldtitle}}} — The name of the title given to the regular season winners if not "Supporters' Shield" (where applicable)
  • {{{shield}}} — Supporters' Shield winners (where applicable)
  • {{{promoted}}} — promoted (if any)
  • {{{relegated}}} — relegated (if any)
  • {{{continentalcup1}}} — Continental cup1, e.g., Champions League
  • {{{continentalcup1 qualifiers}}} — Continental cup1 qualifiers
  • {{{matches}}} — Total number of matches played
  • {{{total goals}}} — Total number of goals scored. Works with *{{{matches}}} to provide average goals scored.
  • {{{average goals}}} — Manual input of average goals scored. Round to 2 decimal places.
  • {{{league topscorer}}} — The name of the top scorer in the domestic league level, and the number of scored goals, in the form "Footballer (goals)".
  • {{{best goalkeeper}}} — The name of the best goalkeeper in the domestic league level, and the number of clean sheets or goals-to-games ratio, in the form "Goalkeeper (clean sheets/goals-to-games ratio)".

Note: If dates are to be added to the matches, these must be accompanied by a source containing the date of the match.

  • {{{biggest home win}}} — Result (date)
  • {{{biggest away win}}} — As above
  • {{{highest scoring}}} — As above

Note: The following parameters require a mandatory source which explicitly states that the streak is a record. Taking the information from a fixture/results list would consist original research as these lists usually do not point out any streaks. If a source cannot be provided, please do not add any data for these parameters.

  • {{{longest wins}}} — No. games - team (date from-date to)
  • {{{longest unbeaten}}} — As above
  • {{{longest winless}}} — As above
  • {{{longest losses}}} — As above
  • {{{highest attendance}}} — Attendance - match (date)
  • {{{lowest attendance}}} — As above
  • {{{attendance}}} — Total Attendance for season
  • {{{average attendance}}} — Attendance
  • {{{extra information}}} — Any additional information about the season, if any.
  • {{{updated}}} — The date/time at which the season's infobox and article were most recently updated.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Infobox football league season

<templatedata> { "params": { "image": { "required": false, "label": "Image", "type": "wiki-page-name", "description": "Image of logo of the league." }, "pixels": { "required": false, "label": "Pixels", "type": "number", "description": "Width of the image in pixels" }, "caption": { "required": false, "label": "Image Caption", "type": "string", "description": "Caption for the image that is provided" }, "competition": { "required": false, "label": "Competition", "type": "string", "description": "Commonly used name of competition", "example": "Premier League" }, "winners": { "required": false, "label": "Winners", "type": "string", "description": "Champions of the competition.", "example": "Manchester City" }, "premiers": { "required": false, "label": "Premiers", "type": "string", "description": "League's Premier" }, "promoted": { "required": false, "label": "Promoted", "type": "string", "description": "Promoted(if any)", "example": "Swansea City
Stoke City" }, "relegated": { "required": false, "label": "Relegated", "type": "string", "description": "Relegated(if any)", "example": "Swansea City
Stoke City" }, "Dissolved": { "required": false, "label": "Dissolved", "type": "string", "description": "Dissolved" }, "continentalcup1": { "required": false, "label": "Continental Cup 1", "type": "string", "description": "Continental Cup1", "example": "Champions League" }, "continentalcup1 qualifiers": { "required": false, "label": "Continental Cup1 Qualifiers", "type": "string", "description": "Qualifiers for continental cup 1", "example": "Manchester United
Tottenham Hotspur" }, "continentalcup2": { "required": false, "label": "Continental cup 2", "type": "string", "description": "Continental Cup 2 ", "example": "Europa League" }, "continentalcup2 qualifiers": { "required": false, "label": "Continental Cup2 Qualifiers", "type": "string", "description": "Qualifiers for continental cup 2", "example": "Chelsea
Arsenal" }, "matches": { "required": false, "label": "Matches played", "type": "number", "description": "Total matches played", "example": "380" }, "total goals": { "required": false, "label": "Goals scored", "type": "number", "description": "Total Goals scored", "example": "1018" }, "average goals": { "required": false, "label": "Average goals/game", "type": "string", "description": "Manual input of average goals scored. Round to 2 decimal places" }, "league topscorer": { "required": false, "label": "Top goalscorer", "type": "string", "description": "The name of league's top scorer", "example": "Mohamed Salah
(32 goals)[1]" }, "biggest home win": { "required": false, "label": "Biggest home win", "type": "line", "description": "Result (with date)" }, "biggest away win": { "required": false, "label": "Biggest away win", "type": "line", "description": "Result (with date)" }, "highest scoring": { "required": false, "label": "Highest Scoring", "type": "line", "description": "Result (with date)" }, "longest wins": { "required": false, "label": "Longest Wins", "type": "line", "description": "No. of games won - Team(date from - date to)" }, "longest unbeaten": { "required": false, "label": "Longest Unbeaten", "type": "line", "description": "No. of games won - Team(date from - date to)" }, "longest winless": { "required": false, "label": "Longest winless", "type": "line", "description": "No. of games lost - Team(date from - date to)" }, "longest losses": { "required": false, "label": "Longest losses", "type": "line", "description": "No. of games lost - Team(date from - date to)" }, "highest attendance": { "required": false, "label": "Highest Attendance", "type": "line", "description": "Attendance (with date)" }, "lowest attendance": { "required": false, "label": "Lowest Attendance", "type": "line", "description": "Attendance (with date)" }, "attendance": { "required": false, "label": "Attendance", "type": "number", "description": "Total attendance for season" }, "average attendance": { "required": false, "label": "Average Attendance", "type": "number", "description": "Average attendance for season" }, "prevseason": { "required": false, "label": "Previous Season", "type": "wiki-page-name", "description": "Link to the page of the previous season" }, "nextseason": { "required": false, "label": "Next Season", "type": "wiki-page-name", "description": "Link to the page of the next season" }, "extra information": { "required": false, "label": "Extra Information", "type": "string", "description": "Any additional information about the season" }, "updated": { "required": false, "label": "Updated", "type": "line", "description": "The date/time at which the infobox was most recently updated" }, "dates": { "label": "Dates", "description": "The dates of the first and last matches played in the season, separated by an endash", "example": "11 August 2017 – 13 May 2018", "type": "date" }, "season": { "label": "Season", "description": "season of the competition", "example": "2017–18", "type": "string" }, "matches footnote": { "label": "Matches Footnote", "description": "Footnote that apears under the number of matches" }, "best player": { "label": "Best player", "description": "The name of league's official best player", "type": "string" }, "best goalkeeper": { "label": "Best goalkeeper", "description": "The name of league's official best goalkeeper", "type": "string" } }, "description": "Infobox to use in football league season's articles", "paramOrder": [ "image", "pixels", "caption", "competition", "season", "dates", "winners", "premiers", "promoted", "relegated", "Dissolved", "continentalcup1", "continentalcup1 qualifiers", "continentalcup2", "continentalcup2 qualifiers", "matches", "matches footnote", "total goals", "average goals", "best player", "league topscorer", "best goalkeeper", "biggest home win", "biggest away win", "highest scoring", "longest wins", "longest unbeaten", "longest winless", "longest losses", "highest attendance", "lowest attendance", "attendance", "average attendance", "prevseason", "nextseason", "updated", "extra information" ], "format": "block" }

</templatedata>

Example

The input:

{{Infobox football league season
| competition                = La Liga
| season                     = 2011–12
| dates                      = 27 August 2011 – 13 May 2012
| winners                    = [[Real Madrid CF|Real Madrid]]<br>32nd title
| relegated                  = [[Villareal CF|Villarreal]] <br> [[Sporting de Gijón]] <br> [[Racing de Santander|Racing Santander]]
| continentalcup1            = [[2012–13 UEFA Champions League|Champions League]]
| continentalcup1 qualifiers = [[Real Madrid CF|Real Madrid]]<br>[[FC Barcelona|Barcelona]]<br>[[Valencia CF|Valencia]]<br>[[Málaga CF| Málaga]]
| continentalcup2            = [[2012–13 UEFA Europa League|Europa League]]
| continentalcup2 qualifiers = [[Athletic Bilbao]]<br/>[[Atlético Madrid]]<br>[[Levante UD|Levante]]
| best player                = [[Cristiano Ronaldo]]
| league topscorer           = [[Lionel Messi]] (50)
| best goalkeeper            = [[Víctor Valdés]]<br />(0.8 goals conceded per game)
| biggest home win           = [[FC Barcelona|Barcelona]] 8–0 [[CA Osasuna|Osasuna]] (17 September 2011)
| biggest away win           = [[Rayo Vallecano]] 0–7 [[FC Barcelona|Barcelona]] (29 April 2012)<ref name="Rayo Vallecano 0-7 Barcelona">{{cite web|title=Rayo Vallecano 0-7 Barcelona|url=http://actas.rfef.es/actas/RFEF_CmpPartido?cod_primaria=1000144&CodActa=16983|publisher=[[Royal Spanish Football Federation|RFEF]]|date=29 April 2012 |accessdate=29 April 2012|language=Spanish}}</ref>
| highest scoring            = [[FC Barcelona|Barcelona]] 8–0 [[CA Osasuna|Osasuna]] (17 September 2011)<br>
[[Real Madrid CF|Real Madrid]] 6–2 [[Rayo Vallecano|Rayo Vallecano]] (24 September 2011) <br>
[[Real Madrid CF|Real Madrid]] 7–1 [[CA Osasuna|Osasuna]] (6 November 2011)<br/>
[[Sevilla FC|Sevilla]] 2–6 [[Real Madrid CF|Real Madrid]] (17 December 2011)<br>
[[Levante UD|Levante]] 3–5 [[Rayo Vallecano|Rayo Vallecano]] (19 February 2012)
[[FC Barcelona|Barcelona]] 5–3 [[Granada CF|Granada]] (20 March 2012)
| matches                    = 380
| total goals                = 1050
| longest wins               = 11 games by [[Real Madrid CF|Real Madrid]] and [[FC Barcelona|Barcelona]]<ref name="Soccernet">{{cite web|title=Spanish La Liga statistics|url=http://soccernet.espn.go.com/stats/_/league/esp.1/spanish-primera-division?cc=5739|publisher=[[ESPNsoccernet]]|accessdate=29 August 2011}}</ref>
| longest unbeaten           = 23 games by [[Real Madrid CF|Real Madrid]]<ref name=Soccernet/>
| longest winless            = 20 games by [[Racing de Santander|Racing Santander]]<ref name=Soccernet/>
| longest losses             = 6 games by [[Real Betis|Betis]], [[Rayo Vallecano]] and [[Real Zaragoza|Zaragoza]]<ref name=Soccernet/>
| highest attendance         = 99,252<ref>{{cite web|title=Barcelona — Real Madrid, 04/21/2012 |url=http://www.fcbarcelona.com/football/first-team/match-archive/2011-2012/league/round-35/fc-barcelona_real-madrid/info |publisher=fcbarcelona.com|accessdate=22 April 2012}}</ref> [[FC Barcelona|Barcelona]] – [[Real Madrid CF|Real Madrid]]
| lowest attendance          = 6,000<ref name=Soccernet/> [[Getafe CF|Getafe]] – [[Racing de Santander|Racing Santander]]
| attendance                 = 11,504,567<ref name=Soccernet/>
| average attendance         = 30,275<ref name=Soccernet/>
| prevseason                 = [[2010–11 La Liga|2010–11]]
| nextseason                 = [[2012–13 La Liga|2012–13]]
}}

produces

La Liga
Season2011–12
Dates27 August 2011 – 13 May 2012
ChampionsReal Madrid
32nd title
RelegatedVillarreal
Sporting de Gijón
Racing Santander
Champions LeagueReal Madrid
Barcelona
Valencia
Málaga
Europa LeagueAthletic Bilbao
Atlético Madrid
Levante
Matches played380
Goals scored1,050 (2.76 per match)
Top goalscorerLionel Messi (50)
Best goalkeeperVíctor Valdés
(0.8 goals conceded per game)
Biggest home winBarcelona 8–0 Osasuna (17 September 2011)
Biggest away winRayo Vallecano 0–7 Barcelona (29 April 2012)[2]
Highest scoringBarcelona 8–0 Osasuna (17 September 2011)

Real Madrid 6–2 Rayo Vallecano (24 September 2011)
Real Madrid 7–1 Osasuna (6 November 2011)
Sevilla 2–6 Real Madrid (17 December 2011)
Levante 3–5 Rayo Vallecano (19 February 2012)

Barcelona 5–3 Granada (20 March 2012)
Longest winning run11 games by Real Madrid and Barcelona[3]
Longest unbeaten run23 games by Real Madrid[3]
Longest winless run20 games by Racing Santander[3]
Longest losing run6 games by Betis, Rayo Vallecano and Zaragoza[3]
Highest attendance99,252[4] Barcelona – Real Madrid
Lowest attendance6,000[3] Getafe – Racing Santander
Total attendance11,504,567[3]
Average attendance30,275[3]

References

  1. Cite error: Invalid <ref> tag; no text was provided for refs named topscorer
  2. "Rayo Vallecano 0-7 Barcelona" (in Spanish). RFEF. 29 April 2012. Retrieved 29 April 2012.CS1 maint: unrecognized language (link)
  3. 3.0 3.1 3.2 3.3 3.4 3.5 3.6 "Spanish La Liga statistics". ESPNsoccernet. Retrieved 29 August 2011.
  4. "Barcelona — Real Madrid, 04/21/2012". fcbarcelona.com. Retrieved 22 April 2012.