Jump to content

Template:Medals table/testcases

From Wikipedia, the free encyclopedia

Basic Example

[edit]
Side by side comparison
{{Medals table}}{{Medals table/sandbox}}
  *   Host nation (Australia)
Table Caption
RankteamGoldSilverBronzeTotal
1 Englandnote78924
2Custom Name45615
3 Australia*1236
Totals (3 entries)12151845
Source: Some source
  *   Host nation (Australia)
Table Caption
RankteamGoldSilverBronzeTotal
1 Englandnote78924
2Custom Name45615
3 Australia*1236
Totals (3 entries)12151845
Source: Some source

Custom host

[edit]
Side by side comparison
{{Medals table}}{{Medals table/sandbox}}
  *   Host nation (This be the host!)
Table Caption
RankNationGoldSilverBronzeTotal
1 England (ENG)78924
2 New Zealand (NZL)45615
3 Australia (AUS)*1236
Totals (3 entries)12151845
  *   Host nation (This be the host!)
Table Caption
RankNationGoldSilverBronzeTotal
1 England (ENG)78924
2 New Zealand (NZL)45615
3 Australia (AUS)*1236
Totals (3 entries)12151845

Multiple hosts in legend

[edit]
Side by side comparison
{{Medals table}}{{Medals table/sandbox}}
  *   Host nations (Australia, New Zealand)
Table Caption
RankNationGoldSilverBronzeTotal
1 England (ENG)78924
2 New Zealand (NZL)45615
3 Australia (AUS)*1236
Totals (3 entries)12151845
  *   Host nations (Australia, New Zealand)
Table Caption
RankNationGoldSilverBronzeTotal
1 England (ENG)78924
2 New Zealand (NZL)45615
3 Australia (AUS)*1236
Totals (3 entries)12151845

Adjust the case for the team param

[edit]

The {{{team}}} should be capitalized at the top of column 2 but lowercased at the bottom for the totals UNLESS it is an abbreviation such as NPC. If it is an abbreviation, keep it capitalized per WP:MOS.

Side by side comparison
{{Medals table}}{{Medals table/sandbox}}
RankNationGoldSilverBronzeTotal
1 Great Britain (GBR)75618
Totals (1 entries)75618
RankNationGoldSilverBronzeTotal
1 Great Britain (GBR)75618
Totals (1 entries)75618
Side by side comparison
{{Medals table}}{{Medals table/sandbox}}
RankNPCGoldSilverBronzeTotal
1 Great Britain (GBR)75618
Totals (1 entries)75618
RankNPCGoldSilverBronzeTotal
1 Great Britain (GBR)75618
Totals (1 entries)75618

Skip nation

[edit]
Side by side comparison
{{Medals table}}{{Medals table/sandbox}}
RankNationGoldSilverBronzeTotal
1 Great Britain (GBR)75618
2 France (FRA)34310
 Authorised Neutral Athletes (ANA)[1]34310
3 Sweden (SWE)1214
 Switzerland (SUI)1214
 Mixed-NOCs (MIX)1102
5 United States (USA)0202
Totals (5 entries)16201450
RankNationGoldSilverBronzeTotal
1 Great Britain (GBR)75618
2 France (FRA)34310
 Authorised Neutral Athletes (ANA)[1]34310
3 Sweden (SWE)1214
 Switzerland (SUI)1214
 Mixed-NOCs (MIX)1102
5 United States (USA)0202
Totals (5 entries)16201450


Show Limit

[edit]

Should display the first 2 and the 'remaining' link should link to Template:Medals table/testcases/showlimit and Template:Medals table/testcases/showlimit-sandbox respectively

Should display the first 4 and the 'remaining' link should link to Template:Medals table/testcases/showlimit and Template:Medals table/testcases/showlimit-sandbox respectively

Works with numbered params as well as IOC codes

[edit]
Side by side comparison
{{Medals table}}{{Medals table/sandbox}}
RankNationGoldSilverBronzeTotal
1 France (FRA)66618
2 Great Britain (GBR)55515
3{{{name_1}}}44412
4 Australia (AUS)3339
5{{{name_2}}}2226
6 Germany (GER)1113
Totals (6 entries)21212163
RankNationGoldSilverBronzeTotal
1 France (FRA)66618
2 Great Britain (GBR)55515
3{{{name_1}}}44412
4 Australia (AUS)3339
5{{{name_2}}}2226
6 Germany (GER)1113
Totals (6 entries)21212163
Side by side comparison
{{Medals table}}{{Medals table/sandbox}}
  *   Host nation (Some Country)
RankNationGoldSilverBronzeTotal
1 France (FRA)66618
2 Great Britain (GBR)55515
3Some Country*44412
4 Australia (AUS)3339
{{{name_2}}}note2226
5 Germany (GER)1113
Totals (5 entries)21212163
  *   Host nation (Some Country)
RankNationGoldSilverBronzeTotal
1 France (FRA)66618
2 Great Britain (GBR)55515
3Some Country*44412
4 Australia (AUS)3339
{{{name_2}}}note2226
5 Germany (GER)1113
Totals (5 entries)21212163

Hide the totals row

[edit]

| hide_totals = yes

Side by side comparison
{{Medals table}}{{Medals table/sandbox}}
RankNationGoldSilverBronzeTotal
1 Great Britain (GBR)75618
2 France (FRA)34310
3 Sweden (SWE)1214
 Switzerland (SUI)1214
5 United States (USA)0202
RankNationGoldSilverBronzeTotal
1 Great Britain (GBR)75618
2 France (FRA)34310
3 Sweden (SWE)1214
 Switzerland (SUI)1214
5 United States (USA)0202

Hide the rank row

[edit]

| hide_rank = yes

Side by side comparison
{{Medals table}}{{Medals table/sandbox}}
SportGoldSilverBronzeTotal
 Athletics35614
 Canoeing2248
 Rowing2147
Totals (3 entries)781429
SportGoldSilverBronzeTotal
 Athletics35614
 Canoeing2248
 Rowing2147
Totals (3 entries)781429

Sport table

[edit]
Side by side comparison
{{Medals table}}{{Medals table/sandbox}}
  Leading in that sport
SportGoldSilverBronzeTotal
 Modern pentathlon1001
 Rugby sevens1001
 Baseball0101
 Judo0022
Totals (4 entries)2125
  Leading in that sport
SportGoldSilverBronzeTotal
 Modern pentathlon1001
 Rugby sevens1001
 Baseball0101
 Judo0022
Totals (4 entries)2125