Template:Infobox football country season: Difference between revisions
Appearance
Content deleted Content added
Adding unknown parameter tracking through Category:Pages using infobox football country season with unknown parameters using Module:check for unknown parameters |
No edit summary |
||
Line 3: | Line 3: | ||
| label1 = Season |
| label1 = Season |
||
| data1 = {{{season|}}} |
| data1 = {{{season|}}} |
||
| header2 = {{#if:{{{champions1|}}}{{{champions2|}}}{{{champions3|}}}{{{champions4|}}}{{{champions5|}}}{{{dchampions|}}}{{{dchampions2|}}}{{{lchampions|}}}{{{schampions|}}}|Men's {{#ifeq:{{Yesno|{{{soccer|no}}}}}|yes|soccer|football}}|}} |
| header2 = {{#if:{{{champions1|}}}{{{champions2|}}}{{{champions3|}}}{{{champions4|}}}{{{champions5|}}}{{{champions6|}}}{{{champions7|}}}{{{dchampions|}}}{{{dchampions2|}}}{{{lchampions|}}}{{{schampions|}}}|Men's {{#ifeq:{{Yesno|{{{soccer|no}}}}}|yes|soccer|football}}|}} |
||
| label3 = {{{division1|}}} |
| label3 = {{{division1|}}} |
||
| data3 = {{{champions1|}}} |
| data3 = {{{champions1|}}} |
||
Line 13: | Line 13: | ||
| data6 = {{{champions4|}}} |
| data6 = {{{champions4|}}} |
||
| label7 = {{{division5|}}} |
| label7 = {{{division5|}}} |
||
| data7 = {{{ |
| data7 = {{{champions6|}}} |
||
| label8 = {{{ |
| label8 = {{{division6|}}} |
||
| data8 = {{{ |
| data8 = {{{champions7|}}} |
||
| label9 = {{{ |
| label9 = {{{division7|}}} |
||
| data9 = {{{ |
| data9 = {{{champions5|}}} |
||
| label10 = {{{ |
| label10 = {{{domestic|}}} |
||
| data10 = {{{ |
| data10 = {{{dchampions|}}} |
||
| label11 = {{{ |
| label11 = {{{domestic2|}}} |
||
| data11 = {{{ |
| data11 = {{{dchampions2|}}} |
||
⚫ | |||
⚫ | |||
| |
| data12 = {{{lchampions|}}} |
||
| |
| label13 = {{{supercup|}}} |
||
| |
| data13 = {{{schampions|}}} |
||
⚫ | |||
⚫ | |||
| |
| label14 = {{{wdivision1|}}} |
||
| |
| data14 = {{{wchampions1|}}} |
||
| |
| label15 = {{{wdivision2|}}} |
||
| |
| data15 = {{{wchampions2|}}} |
||
| |
| label16 = {{{wdivision3|}}} |
||
| |
| data16 = {{{wchampions3|}}} |
||
| |
| label17 = {{{wdomestic|}}} |
||
| |
| data17 = {{{wdchampions|}}} |
||
| label18 = {{{wleaguecup|}}} |
|||
| data18 = {{{wlchampions|}}} |
|||
| label19 = {{{wsupercup|}}} |
|||
| data19 = {{{wschampions|}}} |
|||
| below = {{#if:{{{prevseason|}}}{{{nextseason|}}}{{{flagicon|}}}|<table align="center" style="width: 100%"> |
| below = {{#if:{{{prevseason|}}}{{{nextseason|}}}{{{flagicon|}}}|<table align="center" style="width: 100%"> |
||
<tr> |
<tr> |
||
Line 42: | Line 46: | ||
</tr> |
</tr> |
||
</table>}} |
</table>}} |
||
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox football country season with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox football country season]] with unknown parameter "_VALUE_"|ignoreblank=y| champions1 | champions2 | champions3 | champions4 | champions5 | country | dchampions | dchampions2 | division1 | division2 | division3 | division4 | division5 | domestic | domestic2 | flagicon | football_in_country | lchampions | leaguecup | nextlink | nextseason | prevlink | prevseason | schampions | season | soccer | supercup | wchampions1 | wchampions2 | wchampions3 | wdchampions | wdivision1 | wdivision2 | wdivision3 | wdomestic | wlchampions | wleaguecup | wschampions | wsupercup }}<noinclude>{{documentation}}</noinclude> |
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox football country season with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox football country season]] with unknown parameter "_VALUE_"|ignoreblank=y| champions1 | champions2 | champions3 | champions4 | champions5 | champions6 | champions7 | country | dchampions | dchampions2 | division1 | division2 | division3 | division4 | division5 | domestic | domestic2 | flagicon | football_in_country | lchampions | leaguecup | nextlink | nextseason | prevlink | prevseason | schampions | season | soccer | supercup | wchampions1 | wchampions2 | wchampions3 | wdchampions | wdivision1 | wdivision2 | wdivision3 | wdomestic | wlchampions | wleaguecup | wschampions | wsupercup }}<noinclude>{{documentation}}</noinclude> |
Revision as of 11:48, 27 February 2021
This infobox can be used in articles about football played in a specified country during a particular season, e.g. 2016–17 in English football
Usage
{{Infobox football country season
| country = <!-- Country in which the season is taking place, e.g. "England" -->
| soccer = <!-- "yes" or "no" -->
| season = <!-- Year(s) during which the season is taking place, e.g. "2017" or "2016–17" -->
<!-- MEN'S FOOTBALL -->
| division1 = <!-- Name of the country's first division for the season -->
| champions1 = <!-- Champions of the country's first division for the season -->
| division2 = <!-- Name of the country's second division for the season -->
| champions2 = <!-- Champions of the country's second division for the season -->
| division3 = <!-- Name of the country's third division for the season -->
| champions3 = <!-- Champions of the country's third division for the season -->
| division4 = <!-- Name of the country's fourth division for the season -->
| champions4 = <!-- Champions of the country's fourth division for the season -->
| division5 = <!-- Name of the country's fifth division for the season -->
| champions5 = <!-- Champions of the country's fifth division for the season -->
| division6 = <!-- Name of the country's fifth division for the season -->
| champions6 = <!-- Champions of the country's fifth division for the season -->
| division7 = <!-- Name of the country's fifth division for the season -->
| champions7 = <!-- Champions of the country's fifth division for the season -->
| domestic = <!-- Name of the country's domestic cup for the season -->
| dchampions = <!-- Champions of the country's domestic cup for the season -->
| domestic2 = <!-- Name of the country's second domestic cup for the season -->
| dchampions2 = <!-- Champions of the country's second domestic cup for the season -->
| leaguecup = <!-- Name of the country's league cup for the season -->
| lchampions = <!-- Champions of the country's league cup for the season -->
| supercup = <!-- Name of the country's super cup for the season -->
| schampions = <!-- Champions of the country's super cup for the season -->
<!-- WOMEN'S FOOTBALL -->
| wdivision1 = <!-- Name of the country's first division for the season -->
| wchampions1 = <!-- Champions of the country's first division for the season -->
| wdivision2 = <!-- Name of the country's second division for the season -->
| wchampions2 = <!-- Champions of the country's second division for the season -->
| wdivision3 = <!-- Name of the country's third division for the season -->
| wchampions3 = <!-- Champions of the country's third division for the season -->
| wdivision4 = <!-- Name of the country's fourth division for the season -->
| wchampions4 = <!-- Champions of the country's fourth division for the season -->
| wdomestic = <!-- Name of the country's domestic cup for the season -->
| wdchampions = <!-- Champions of the country's domestic cup for the season -->
| wleaguecup = <!-- Name of the country's league cup for the season -->
| wlchampions = <!-- Champions of the country's league cup for the season -->
| wsupercup = <!-- Name of the country's super cup for the season -->
| wschampions = <!-- Champions of the country's super cup for the season -->
| prevseason = <!-- Year(s) during which the previous season took place, e.g. "2011" or "2010–11" -->
| nextseason = <!-- Year(s) during which the next season will take place, e.g. "2013" or "2012–13" -->
| flagicon = <!-- "yes" or "no" -->
}}
Blank syntax
{{Infobox football country season
| country =
| soccer =
| season =
| division1 =
| champions1 =
| division2 =
| champions2 =
| division3 =
| champions3 =
| division4 =
| champions4 =
| division5 =
| champions5 =
| division6 =
| champions6 =
| division7 =
| champions7 =
| domestic =
| dchampions =
| domestic2 =
| dchampions2 =
| leaguecup =
| lchampions =
| supercup =
| schampions =
| wdivision1 =
| wchampions1 =
| wdivision2 =
| wchampions2 =
| wdivision3 =
| wchampions3 =
| wdivision4 =
| wchampions4 =
| wdomestic =
| wdchampions =
| wleaguecup =
| wlchampions =
| wsupercup =
| wschampions =
| prevseason =
| nextseason =
| flagicon =
}}
Parameters
All parameters are optional. The {{{division}}} and {{{champion}}} parameters range from 1 to 5 (women's parameters range from 1 to 3), but only {{{(w)division1}}} and {{{(w)champion1}}} are used in the examples below.
Parameter | Description | Wikilinked | Example input | Result |
---|---|---|---|---|
{{{country}}} | Name of the country concerned. | England | Football in England | |
Some countries may need "the" to accompany them. | the Czech Republic | Football in the Czech Republic | ||
{{{soccer}}} | Changes "football" to "soccer" for countries such as the United States. | yes | Soccer in the United States | |
{{{season}}} | The current season in the series. | — | 2016–17 | 2016–17 |
Men's football | ||||
{{{division1}}} | Name of the country's first division for the season. | [[Premier League]]
|
Premier League | |
{{{champions1}}} | Champions of the country's first division for the season. | [[Chelsea F.C.|Chelsea]]
|
Chelsea | |
{{{domestic}}} | Name of the country's domestic cup for the season. | [[FA Cup]]
|
FA Cup | |
{{{dchampions}}} | Champions of the country's domestic cup for the season. | [[Arsenal F.C.|Arsenal]]
|
Arsenal | |
{{{leaguecup}}} | Name of the country's league cup for the season. | [[EFL Cup]]
|
EFL Cup | |
{{{lchampions}}} | Champions of the country's league cup for the season. | [[Manchester United F.C.|Manchester United]]
|
Manchester United | |
{{{supercup}}} | Name of the country's super cup for the season. | [[FA Community Shield]]
|
FA Community Shield | |
{{{schampions}}} | Champions of the country's super cup for the season. | [[Manchester United F.C.|Manchester United]]
|
Manchester United | |
Women's football | ||||
{{{wdivision1}}} | Name of the country's first division for the season. | [[FA WSL 1]]
|
FA WSL 1 | |
{{{wchampions1}}} | Champions of the country's first division for the season. | [[Manchester City W.F.C.|Manchester City]]
|
Manchester City | |
{{{wdomestic}}} | Name of the country's domestic cup for the season. | [[FA Women's Cup]]
|
FA Women's Cup | |
{{{wdchampions}}} | Champions of the country's domestic cup for the season. | [[Manchester City W.F.C.|Manchester City]]
|
Manchester City | |
{{{wleaguecup}}} | Name of the country's league cup for the season. | [[FA WSL Cup]]
|
FA WSL Cup | |
{{{wlchampions}}} | Champions of the country's league cup for the season. | [[Manchester City W.F.C.|Manchester City]]
|
Manchester City | |
Below | ||||
{{{prevseason}}} | The previous season in the series. | 2015–16 | 2015–16 | |
{{{nextseason}}} | The next season in the series. | 2017–18 | 2017–18 | |
{{{flagicon}}} | Displays the flagicon of the given country. | — | yes |
Examples
Example 1
The input:
{{Infobox football country season
| country = England
| season = 2016–17
| division1 = [[2016–17 Premier League|Premier League]]
| champions1 = [[Chelsea F.C.|Chelsea]]
| division2 = [[2016–17 EFL Championship|Championship]]
| champions2 = [[Newcastle United FC|Newcastle United]]
| division3 = [[2016–17 Football League One|League One]]
| champions3 = [[Sheffield United F.C.|Sheffield United]]
| division4 = [[2016–17 Football League Two|League Two]]
| champions4 = [[Portsmouth F.C.|Portsmouth]]
| division5 = [[2016–17 National League|National League]]
| champions5 = [[Lincoln City F.C.|Lincoln City]]
| domestic = [[2016–17 FA Cup|FA Cup]]
| dchampions = [[Arsenal F.C.|Arsenal]]
| domestic2 = [[2016–17 EFL Trophy|EFL Trophy]]
| dchampions2 = [[Coventry City F.C.|Coventry City]]
| leaguecup = [[2016–17 EFL Cup|EFL Cup]]
| lchampions = [[Manchester United F.C.|Manchester United]]
| supercup = [[2016 FA Community Shield|Community Shield]]
| schampions = [[Manchester United F.C.|Manchester United]]
| wdivision1 = [[2016 FA WSL#WSL 1|WSL 1]]
| wchampions1 = [[Manchester City W.F.C.|Manchester City]]
| wdivision2 = [[2016 FA WSL#WSL 2|WSL 2]]
| wchampions2 = [[Yeovil Town L.F.C.|Yeovil Town]]
| wdomestic = [[2016–17 FA Women's Cup|FA Women's Cup]]
| wdchampions = [[Manchester City W.F.C.|Manchester City]]
| wleaguecup = [[2016 FA WSL#WSL Cup|WSL Cup]]
| wlchampions = [[Manchester City W.F.C.|Manchester City]]
| prevseason = 2015–16
| nextseason = 2017–18
| flagicon = yes
}}
produces
Example 2
The input:
{{Infobox football country season
| country = the United States
| soccer = yes
| season = 2012
| division1 = [[2012 Major League Soccer season|Supporters' Shield]]
| champions1 = [[San Jose Earthquakes]]
| division2 = [[2012 North American Soccer League season|NASL]]
| champions2 = [[San Antonio Scorpions FC|San Antonio Scorpions]]
| division3 = [[2012 USL Pro season|USL Pro]]
| champions3 = [[Charleston Battery]]
| domestic = [[2012 Lamar Hunt U.S. Open Cup|US Open Cup]]
| dchampions = [[Sporting Kansas City]]
| leaguecup = [[MLS Cup 2012|MLS Cup]]
| lchampions = [[Los Angeles Galaxy]]
| prevseason = 2011
| nextseason = 2013
| flagicon = yes
}}
produces
Season | 2012 | |||
---|---|---|---|---|
Men's soccer | ||||
Supporters' Shield | San Jose Earthquakes | |||
NASL | San Antonio Scorpions | |||
USL Pro | Charleston Battery | |||
US Open Cup | Sporting Kansas City | |||
MLS Cup | Los Angeles Galaxy | |||
|