Difference between revisions of "Template:2015 CONCACAF Gold Cup Group A table/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>TheBigJagielka
blackwiki>Jkudlick
(Updating documentation)
Line 12: Line 12:
 
|-
 
|-
 
!What you type
 
!What you type
|<pre><nowiki>{{#invoke:Sports table|main|style=football
+
|<pre><nowiki>{{#invoke:Sports table|main|style=WDL
 
|update=30 October 2014 |source=FEEFUH
 
|update=30 October 2014 |source=FEEFUH
 
|teamwidth=200 |only_pld_pts={{{only_pld_pts}}} |template_name=2015 CONCACAF Gold Cup Group A table
 
|teamwidth=200 |only_pld_pts={{{only_pld_pts}}} |template_name=2015 CONCACAF Gold Cup Group A table
Line 30: Line 30:
 
|-
 
|-
 
!What you see
 
!What you see
|{{#invoke:Sports table|main|style=football
+
|{{#invoke:Sports table|main|style=WDL
 
|update=30 October 2014 |source=FEEFUH
 
|update=30 October 2014 |source=FEEFUH
 
|teamwidth=200
 
|teamwidth=200
Line 48: Line 48:
 
|}
 
|}
 
To change the order of the teams, set {{para|team1}} to the team in first place in the group, {{para|team2}} to the team in second place, etc. The order of data entry does not need to be changed. The status of a team can also be set during the group stage if the outcome is known:
 
To change the order of the teams, set {{para|team1}} to the team in first place in the group, {{para|team2}} to the team in second place, etc. The order of data entry does not need to be changed. The status of a team can also be set during the group stage if the outcome is known:
*If a team will definitely advance, set {{para|status|A}}
+
*If a team will definitely advance, set {{para|status_XXX|A}}
*If a team will definitely finish third or better, set {{para|status|T}}
+
*If a team will definitely finish third or better, set {{para|status_XXX|T}}
*If a team will definitely finish fourth, set {{para|status|E}}
+
*If a team will definitely finish fourth, set {{para|status_XXX|E}}
*Otherwise, set {{para|status}}
+
*Otherwise, leave {{para|status_XXX}} blank
  
 
====After group stage====
 
====After group stage====
When the group is complete, set {{para|update|complete}}, {{para|status|A}} for the top two teams, and {{para|status|T}} for the third place team. After all six groups are complete, change the {{para|status|T}} and {{para|result3|3rd}} parameters as follows:
+
When the group is complete, set {{para|update|complete}}, {{para|status_XXX|A}} for the top two teams, {{para|status_XXX|T}} for the third place team, and {{para|status_XXX|E}} for the fourth place team. After all three groups are complete, change the {{para|status_XXX|T}} and {{para|result3|3rd}} parameters as follows:
 
{|class="wikitable" style="background:white;"
 
{|class="wikitable" style="background:white;"
 
|-
 
|-
Line 61: Line 61:
 
|-
 
|-
 
|Team advances
 
|Team advances
|{{para|status|A}} and {{para|result3|KO}}
+
|{{para|status_XXX|A}} and {{para|result3|KO}}
 
|-
 
|-
 
|Team eliminated
 
|Team eliminated
|{{para|status|E}} and remove {{para|result3|3rd}}
+
|{{para|status_XXX|E}} and remove {{para|result3|3rd}}
 
|}
 
|}
  
 
====After tournament complete====
 
====After tournament complete====
After the tournament is complete, set {{para|status|C}} for the tournament champion, or {{para|status|HC}} if the champion is also the host. The parameters {{para|status|A}} and {{para|status|E}} may be removed across all groups, as the outcome of the group stage is evidenced by the row color and the last column.
+
After the tournament is complete, remove {{para|status_XXX|A}} and {{para|status_XXX|E}} across all groups, as the outcome of the group stage is evidenced by the row color and the last column. Leave {{para|status_USA|H}} in place.
  
 
==Display options==
 
==Display options==

Revision as of 06:00, 6 February 2015

Usage

This template is designed to collect information, which is used in several articles, in one location. The 2015 CONCACAF Gold Cup group tables are shown on the overall Gold Cup article, as well as the articles for each Group, if not other articles as well. This template should replace the need to update the same information on several articles.

In article

To add this table to an article, type {{2015 CONCACAF Gold Cup Group A table}}.

Editing

Until the tournament starts, the order of teams and the |update= and |start_date= parameters should not be changed. Once the tournament starts, remove the |start_date= parameter and set |update= to the appropriate date.

During tournament

After each group round match, update the table and ensure the order of teams and the |update= parameter are also updated. For example:

What you type
{{#invoke:Sports table|main|style=WDL
|update=30 October 2014 |source=FEEFUH
|teamwidth=200 |only_pld_pts={{{only_pld_pts}}} |template_name=2015 CONCACAF Gold Cup Group A table

|team1=BBB |team2=CCC |team3=DDD |team4=AAA
|result1=KO |result2=KO |result3=3rd

|win_AAA=0 |draw_AAA=0 |loss_AAA=2 |gf_AAA=4 |ga_AAA=7 |status_AAA=H
|win_BBB=2 |draw_BBB=0 |loss_BBB=0 |gf_BBB=9 |ga_BBB=1 |status_BBB=A
|win_CCC=1 |draw_CCC=1 |loss_CCC=0 |gf_CCC=4 |ga_CCC=3 |status_CCC=T
|win_DDD=0 |draw_DDD=1 |loss_DDD=1 |gf_DDD=2 |ga_DDD=8 |status_DDD=

|res_col_header=Group stage result
|col_KO=green1 |text_KO=Advance to [[2015 CONCACAF Gold Cup#Knockout stage|knockout stage]]
|col_3rd=blue1 |text_3rd=[[2015 CONCACAF Gold Cup#Knockout stage|Knockout stage]] or elimination
}}
What you see
Pos Team Pld W D L GF GA GD Pts Group stage result
1 BBB (A) 2 2 0 0 9 1 +8 6 Advance to knockout stage
2 CCC (T) 2 1 1 0 4 3 +1 4
3 DDD 2 0 1 1 2 8 −6 1 Knockout stage or elimination
4 AAA (H) 2 0 0 2 4 7 −3 0
Updated to match(es) played on 30 October 2014. Source: FEEFUH
(A) Advance to a further round; (H) Host; (T) Qualified, but not yet to the particular phase indicated.

To change the order of the teams, set |team1= to the team in first place in the group, |team2= to the team in second place, etc. The order of data entry does not need to be changed. The status of a team can also be set during the group stage if the outcome is known:

  • If a team will definitely advance, set |status_XXX=A
  • If a team will definitely finish third or better, set |status_XXX=T
  • If a team will definitely finish fourth, set |status_XXX=E
  • Otherwise, leave |status_XXX= blank

After group stage

When the group is complete, set |update=complete, |status_XXX=A for the top two teams, |status_XXX=T for the third place team, and |status_XXX=E for the fourth place team. After all three groups are complete, change the |status_XXX=T and |result3=3rd parameters as follows:

Result Parameters
Team advances |status_XXX=A and |result3=KO
Team eliminated |status_XXX=E and remove |result3=3rd

After tournament complete

After the tournament is complete, remove |status_XXX=A and |status_XXX=E across all groups, as the outcome of the group stage is evidenced by the row color and the last column. Leave |status_USA=H in place.

Display options

If a smaller displayed table is desired, the parameter |only_pld_pts= can be defined in the template call to display only the position, team, games played, and points columns. This display may be desired when multiple groups must be displayed, but the full details are not required. Valid values of |only_pld_pts= to display a truncated table are 1, yes, y, true, and t. For example:

What you type
{{2015 CONCACAF Gold Cup Group A table|only_pld_pts=true}}
What you see
Pos Team Pld Pts
1  United States (H) 3 7
2  Haiti 3 4
3  Panama 3 3
4 23x15px Honduras 3 1
Source: CONCACAF
(H) Host.

Additional information

Additional information regarding how this module works is available in the documentation of Module:Sports table.