Template:Medals table/testcases
Appearance
| This is the template test cases page for the sandbox of Template:Medals table. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Basic Example
[edit]| {{Medals table}} | {{Medals table/sandbox}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
* Host nation (Australia)
Source: Some source |
* Host nation (Australia)
Source: Some source | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Custom host
[edit]| {{Medals table}} | {{Medals table/sandbox}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
* Host nation (This be the host!)
|
* Host nation (This be the host!)
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Multiple hosts in legend
[edit]| {{Medals table}} | {{Medals table/sandbox}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
* Host nations (Australia, New Zealand)
|
* Host nations (Australia, New Zealand)
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
| {{Medals table}} | {{Medals table/sandbox}} | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||||||||||||||||||||||||
| {{Medals table}} | {{Medals table/sandbox}} | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||||||||||||||||||||||||
Skip nation
[edit]| {{Medals table}} | {{Medals table/sandbox}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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
* Host nation (United States)
| Rank | Nation | Gold | Silver | Bronze | Total |
|---|---|---|---|---|---|
| 1 | 14 | 14 | 11 | 39 | |
| 2 | 14 | 10 | 7 | 31 | |
| 3–10 | Remaining | 51 | 46 | 38 | 135 |
| Totals (10 entries) | 79 | 70 | 56 | 205 | |
* Host nation (United States)
| Rank | Nation | Gold | Silver | Bronze | Total |
|---|---|---|---|---|---|
| 1 | 14 | 14 | 11 | 39 | |
| 2 | 14 | 10 | 7 | 31 | |
| 3–10 | Remaining | 51 | 46 | 38 | 135 |
| Totals (10 entries) | 79 | 70 | 56 | 205 | |
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
* Host nation (United States)
| Rank | Nation | Gold | Silver | Bronze | Total |
|---|---|---|---|---|---|
| 1 | 14 | 14 | 11 | 39 | |
| 2 | 14 | 10 | 7 | 31 | |
| 3 | 11 | 8 | 10 | 29 | |
| 4 | 9 | 8 | 6 | 23 | |
| 5–10 | Remaining | 31 | 30 | 22 | 83 |
| Totals (10 entries) | 79 | 70 | 56 | 205 | |
* Host nation (United States)
| Rank | Nation | Gold | Silver | Bronze | Total |
|---|---|---|---|---|---|
| 1 | 14 | 14 | 11 | 39 | |
| 2 | 14 | 10 | 7 | 31 | |
| 3 | 11 | 8 | 10 | 29 | |
| 4 | 9 | 8 | 6 | 23 | |
| 5–10 | Remaining | 31 | 30 | 22 | 83 |
| Totals (10 entries) | 79 | 70 | 56 | 205 | |
Works with numbered params as well as IOC codes
[edit]| {{Medals table}} | {{Medals table/sandbox}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {{Medals table}} | {{Medals table/sandbox}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
* Host nation (Some Country)
|
* Host nation (Some Country)
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Hide the totals row
[edit]| hide_totals = yes
| {{Medals table}} | {{Medals table/sandbox}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Hide the rank row
[edit]| hide_rank = yes
| {{Medals table}} | {{Medals table/sandbox}} | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Sport table
[edit]| {{Medals table}} | {{Medals table/sandbox}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Leading in that sport
|
Leading in that sport
|