Jump to content

Module:Women'sPremierLeagueProgression/doc

From Wikipedia, the free encyclopedia

Usage

[edit]
{{#invoke:Women'sPremierLeagueProgression|create|parameters}}

This module has only one function: create.

Named parameters

[edit]
caption
Optional. Specifies a caption for the top of the table.
teams
A comma-separated list of the participating teams. These will automatically be wikilinked in the table.
matchesPerTeam
The number of group stage matches per team.
matchReportArticle
Optional. The name of the article on which the match scorecards exist. The scorecard for each match must be on the specified article and must be accessible via an element with the id attribute set to matchN, where N is the match number (the {{anchor}} template may be used for this purpose). If not specified, it will be the article from which the module is invoked.
knockoutType
Specifies the model of the playoff stage.

Data

[edit]
  • All unnamed parameters are used to represent data.
  • Each of the teams mentioned in the teams parameter take two data parameters, in the order in which they are mentioned. The first team in the teams parameter uses the 1st and 2nd parameters, the second team uses the 3rd and 4th parameters, the third team uses the 5th and 6th parameters ans so on.
  • Odd-numbered parameters represent group stage data, even-numbered parameters represent playoff data.
  • The value of each data parameter consists of one or more result fields, separated by commas. The order of the result fields must be the same order in which the matches were played.
  • Each result field starts with one of the letters W (win), L (loss), N (no result), E or U, followed by the match number. (E and U are used only in the playoff stage data and must not be followed by a match number)
  • Points in the group stage will be inferred from the result fields.
For playoff stage only
  • If the knockoutType parameter is set to 1, the playoff stage data for each team can have a maximum of two result fields: the first for the eliminator, the second for the final.
  • The result field E indicates that the team has been eliminated. It must be the last result in the playoff data, after the result of the match that caused the elimination. For teams eliminated in the group stage, the playoff stage data for the team must only consist of an E.
  • The result field U indicates that the team does not have to play the match, but is not eliminated.