Template:RankedMedalTable/doc
This is a documentation subpage for Template:RankedMedalTable. It contains usage information, categories and other content that is not part of the original template page. |
This template provides a header row for Olympic medal tables. It should be used immediately after the opening {|
. Rows may be inserted with {{RankedMedalRow}} after this template has been transcluded. The table end as usual with |}
.
The template supports the following optional parameters:
- class
- HTML class for the table, defaults to “wikitable”, may include “sortable”
- caption
- option to add a caption to the table
- team
- label for the second column, defaults to “Nation”
- nation-width
- allows to manually set the width of the second column
Example
<source lang=text>
Rank | Team | Gold | Silver | Bronze | Total |
---|---|---|---|---|---|
0 | Great Britain (GBR) | 3 | 2 | 1 | 6 |
0 | United States (USA) | 3 | 2 | 1 | 6 |
</source>
Rank | Team | Gold | Silver | Bronze | Total |
---|---|---|---|---|---|
0 | Great Britain (GBR) | 3 | 2 | 1 | 6 |
0 | United States (USA) | 3 | 2 | 1 | 6 |