Template:FIFAgroup
Pos | Team | {{{2}}} | {{{3}}} | {{{4}}} | {{{5}}} | P | W | D | L | GF | GA | GD | Pts | Note | ||||||
1 | {{country data {{{15}}} | flaglink/core | variant = | size = | name = | altlink = national football team | altvar = football
}} |
{{{16}}} | {{{17}}} | {{{18}}} | {{{19}}} | {{{20}}} | {{{21}}} | {{{22}}} | {{{23}}} | {{{24}}} | {{{25}}} | {{{26}}} | {{{27}}} | |
2 | {{country data {{{29}}} | flaglink/core | variant = | size = | name = | altlink = national football team | altvar = football
}} |
{{{30}}} | {{{31}}} | {{{32}}} | {{{33}}} | {{{34}}} | {{{35}}} | {{{36}}} | {{{37}}} | {{{38}}} | {{{39}}} | {{{40}}} | {{{41}}} | |
3 | {{country data {{{43}}} | flaglink/core | variant = | size = | name = | altlink = national football team | altvar = football
}} |
{{{44}}} | {{{45}}} | {{{46}}} | {{{47}}} | {{{48}}} | {{{49}}} | {{{50}}} | {{{51}}} | {{{52}}} | {{{53}}} | {{{54}}} | {{{55}}} | |
4 | {{country data {{{57}}} | flaglink/core | variant = | size = | name = | altlink = national football team | altvar = football
}} |
{{{58}}} | {{{59}}} | {{{60}}} | {{{61}}} | {{{62}}} | {{{63}}} | {{{64}}} | {{{65}}} | {{{66}}} | {{{67}}} | {{{68}}} | {{{69}}} |
Note: because this template calls other templates, the above display looks out of alignment. Look at the Example template to see what the actual will look like.
Name
FIFAgroup = FIFA Group stage (Round 1) results table
Goal
This template has been designed to construct the group tables for the first round of FIFA play, and to simplify the data entry of the results from each game.
Description
The format of the template input parameters has been designed to look the same as the output group table.
Usage
This template must be setup with the initial FIFA groupings. Each county has a three-letter code used by FIFA. This template calls the Fb template to display the country flag. If the flag is missing, something will happen. The missing flag must be correct before this template may be used.
Fb calls the Country data template for each country. If the template is missing, a red-link Template:Country data XXX, where XXX is the country code, will be displayed. The missing Country data template must be created before this template may be used.
Initial setup
To use the template, start by copying the following blank template. Please note that spacing and formatting is an important to the ease of use of the template. All of the input parameters will not line up at this point. After the initial data has been entered, the template will be aligned
{{FIFAgroup | |||||P|W|D|L|GF|GA| GD|Pts| Note || x | – | – | – | | | | | | | | | || – | x | – | – | | | | | | | | | || – | – | x | – | | | | | | | | | || – | – | – | x | | | | | | | | | }}
Add group and countries
If the group name table caption is desired, add the group letter in the first parameter field (indicated by the red "G"). The letter does not need to be centered in the input parameter. If the field is left blank, no table caption will be displayed. Be sure to add a space in the field to keep the input table format.
Add the three-letter country codes for the four countries in this group. These codes must be placed in the next four parameter fields (indicated by blue "C-a" through "C-d") on the first line of parameters. Also, add the same country codes in the first parameter field of each of the following four lines of parameters (indicated by green "C-a" through "C-d").
{{FIFAgroup | G |C-a|C-b|C-c|C-d|P|W|D|L|GF|GA| GD|Pts| Note |C-a| x | – | – | – | | | | | | | | | |C-b| – | x | – | – | | | | | | | | | |C-c| – | – | x | – | | | | | | | | | |C-d| – | – | – | x | | | | | | | | | }}
Example
After adding the group and country codes, the basic template input should look like the following example. The countries South Africa (RSA), Mexico (MEX), USA (USA), and France (FRA) have been used as an example
{{FIFAgroup | A |RSA|MEX|USA|FRA|P|W|D|L|GF|GA| GD|Pts| Note |RSA| x | – | – | – | | | | | | | | | |MEX| – | x | – | – | | | | | | | | | |USA| – | – | x | – | | | | | | | | | |FRA| – | – | – | x | | | | | | | | | }}
- Note that the pipe characters "|" now all align into columns. These columns will now look like the output table.
At this point, the template output will look like the following:
Pos | Team | RSA | MEX | USA | FRA | P | W | D | L | GF | GA | GD | Pts | Note |
1 | South Africa | – | – | – | ||||||||||
2 | Mexico | – | – | – | ||||||||||
3 | United States | – | – | – | ||||||||||
4 | France | – | – | – |
- Note that the "x" input parameters have been converted into grayed out cells in the table.
{{FIFAgroup | A |RSA|MEX|USA|FRA|P|W|D|L|GF|GA| GD|Pts| Note |RSA| x | – | – | – | | | | | | | | | |MEX| – | x | – | – | | | | | | | | | |USA| – | – | x | – | | | | | | | | | |FRA| – | – | – | x | | | | | | | | | }}
Adding game results
Adding first games played
Scores and game statistics are entered into the template input parameters in the same format they will be displayed in the output table.
For example, if the first game played is Mexico vs. France, and France wins the match 3 goals to 1, the following entries (highlighted in red) would be entered.
{{FIFAgroup | |RSA|MEX|USA|FRA|P|W|D|L|GF|GA| GD|Pts| Note |RSA| x | – | – | – | | | | | | | | | |MEX| – | x | – |1–3|1|0|0|1| 1| 3| -2| 0 | |USA| – | – | x | – | | | | | | | | | |FRA| – |3–1| – | x |1|1|0|0| 3| 1| +2| 3 | }}
- Note that any extra spaces created by entering the data have been deleted to preserve the table alignment format.
- Note that this example does not have group code, so no table caption will be displayed.
The resulting output will look like this:
Pos | Team | RSA | MEX | USA | FRA | P | W | D | L | GF | GA | GD | Pts | Note |
1 | South Africa | – | – | – | ||||||||||
2 | Mexico | – | – | 1–3 | 1 | 0 | 0 | 1 | 1 | 3 | -2 | 0 | ||
3 | United States | – | – | – | ||||||||||
4 | France | – | 3–1 | – | 1 | 1 | 0 | 0 | 3 | 1 | +2 | 3 |
- Note that the points column is automatically highlighted.
Reorder teams based on ranking
After each match results are entered the countries must be reordered to match the current rankings. The first line of input parameters, with the group code and column headers must not be changed. The following four lines of input parameters may be rearranged.
It is important that the entire line of parameters for a country be moved together as one group. In this example, France is ranked number 1, Mexico number 2. South Africa and the USA will remain 3 and 4 for the time being.
{{FIFAgroup | A |RSA|MEX|USA|FRA|P|W|D|L|GF|GA| GD|Pts| Note |FRA| – |3–1| – | x |1|1|0|0| 3| 1| +2| 3 | |MEX| – | x | – |1–3|1|0|0|1| 1| 3| -2| 0 | |RSA| x | – | – | – | | | | | | | | | |USA| – | – | x | – | | | | | | | | | }}
will result in the following output.
Pos | Team | RSA | MEX | USA | FRA | P | W | D | L | GF | GA | GD | Pts | Note |
1 | France | – | 3–1 | – | 1 | 1 | 0 | 0 | 3 | 1 | +2 | 3 | ||
2 | Mexico | – | – | 1–3 | 1 | 0 | 0 | 1 | 1 | 3 | -2 | 0 | ||
3 | South Africa | – | – | – | ||||||||||
4 | United States | – | – | – |
Additional match data
As additional matches are played, the data should be added to the table. Be sure to correctly compute Goals For (GF), Goals Against (GA), Goals Difference (GD), and Points (Pts).
Advancing and elimination
When countries advance to the next round, enter the letter a in the Note column. When countries are eliminated, enter the letter e in the Note column. This will output the message Advances to Round 2 or Eliminated under the Note in the output table. It will also highlight the country row blue or pink. For example:
{{FIFAgroup | A |RSA|MEX|USA|FRA|P|W|D|L|GF|GA| GD|Pts| Note |USA|4–2|1–1| x |5–0|3|2|1|0|10| 3| +7| 7 | a |MEX|2–1| x |1–1|1–3|3|1|1|1| 4| 5| +1| 4 | a |FRA|1–1|3–1|0–5| x |3|1|1|1| 4| 7| -3| 4 | e |RSA| x |1–2|2–4|1–1|3|0|1|2| 4| 7| -3| 1 | e }}
will result in the following output.
Pos | Team | RSA | MEX | USA | FRA | P | W | D | L | GF | GA | GD | Pts | Note |
1 | United States | 4–2 | 1–1 | 5–0 | 3 | 2 | 1 | 0 | 10 | 3 | +7 | 7 | Advances to Round 2 | |
2 | Mexico | 2–1 | 1–1 | 1–3 | 3 | 1 | 1 | 1 | 4 | 5 | +1 | 4 | Advances to Round 2 | |
3 | France | 1–1 | 3–1 | 0–5 | 3 | 1 | 1 | 1 | 4 | 7 | -3 | 4 | Eliminated | |
4 | South Africa | 1–2 | 2–4 | 1–1 | 3 | 0 | 1 | 2 | 4 | 7 | -3 | 1 | Eliminated |
Summary of parameters
Row one
The first row of parameters looks like the output table header. The only user parameters are the first five.
Parameter | Name or Usage | Value |
---|---|---|
1 | Group Code | Optional: Uppercase letter If present, the table caption Group X will be displayed. If blank, no caption will be displayed |
2-5 | Country Code | Three-letter FIFA country code |
Rows two through five
The next four rows of parameters looks like the match results. The input for each row is identical. The first five fields will be referred to by number. The remaining fields will be referred to by the name of header code above the field column.
Parameter | Name or Usage | Value |
---|---|---|
1 | Country Code | Three-letter FIFA country code |
2-5 | Match Score | The number of goals scored by and against the team. A lower case x is used to gray out the cell for a countries own column. |
P | Games Played | The number of games played. |
W | Games Won | The number of games . |
D | Games Drawn (tied) | The number of games ties. |
L | Games Lost | The number of games lost. |
GF | Goals For | The number of goals the team has scored. |
GA | Goals Against | The number of goals the team has had scored against them. |
GD | Goals Difference | The difference in the number of goals for and goals against. |
Pts | Points | The number of points a country has earned. |
Note | Note | a when a team advanced to the next round. e when a team is eliminated. |
The above documentation is transcluded from Template:FIFAgroup/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |