Template:Infobox medal templates/doc
File:Edit-copy green.svg | This is a documentation subpage for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
Warning | This template is used on approximately 424,000 pages, or roughly 16812% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
This template is used to add a collapsible medal templates section in an infobox. It is meant to be used in the infobox code, and not in the article directly.
Usage
Athlete | |||
---|---|---|---|
Sport | Foo | ||
{{{title}}}
|
<syntaxhighlight lang="wikitext">
Athlete | |
---|---|
Sport | Foo ... |
</syntaxhighlight>
Note
Do not enclose the medal templates with {{MedalTop}}, {{MedalBottom}}, or any other table header/footer templates, as this will cause the template to break. Most instances of this misuse are tracked in Category:Infobox medal templates requiring repair.
TemplateData
TemplateData for Infobox medal templates
This template is used to add a collapsible medal templates section in an infobox. It is meant to be used in the infobox code, and not in the article directly.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Medals | medals | Medal templates | String | required |
Expand | expand | Any value here will expand (display) the medal templates section. It is collapsed by default. | Boolean | suggested |
Title | title | Customize the title
| String | optional |
Title style | titlestyle | CSS style rules for the title
| String | optional |
Example
As implemented in {{Infobox sportsperson}}.
<syntaxhighlight lang="wikitext" style="white-space:pre>
Personal information | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Born | 13 June 1984 Hachinohe, Aomori, Japan | (age 40)||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Height | 166 cm (5 ft 5 in) (2016) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Medal record
|
</syntaxhighlight>
Templates using this template
Template name | Default | Accept 'no'? | Show param | Title | Title param |
---|---|---|---|---|---|
{{Infobox alpine ski racer}} |
collapsed | N | show-medals | Medal record | none |
{{Infobox amateur wrestler}} |
expanded | Y | show-medals | Medal record | none |
{{Infobox badminton player}} |
expanded | Y | show-medals | Medal record | none |
{{Infobox bandy biography}} |
expanded | N | medaltemplates-expand | Honours | medaltemplates-title |
{{Infobox basketball biography}} |
expanded | Y | show-medals medaltemplates-expand medal_templates-expand |
Medals | none |
{{Infobox biathlete}} via Infobox sportsperson (* = different behavior) |
collapsed* | N* | show-medals | Medal record | none* |
{{Infobox boxer}} |
expanded | Y | show-medals | Medal record | none |
{{Infobox boxer (amateur)}} via Infobox sportsperson (* = different behavior) |
collapsed* | N* | show-medals | Medal record | none* |
{{Infobox climber}} |
expanded | Y | show-medals | Medal record | none |
{{Infobox college coach}} |
expanded | Y | show-medals | Medal record | none |
{{Infobox curler}} |
expanded | Y | show-medals | Medal record | none |
{{Infobox cyclist}} |
expanded | Y | show-medals | Medal record | none |
{{Infobox darts player}} |
expanded | Y | show-medals | Medal record | none |
{{Infobox equestrian}} |
collapsed | N | show-medals | Medal record | none |
{{Infobox fencer}} |
collapsed | N | show-medals | Medal record | none |
{{Infobox field hockey player}} |
expanded | N | medaltemplates-expand | Medal record | none |
{{Infobox figure skater}} |
collapsed | N | show-medals | Medal record | none |
{{Infobox football biography}} |
collapsed | N | medaltemplates-expand | Honours | medaltemplates-title |
{{Infobox go player}} |
expanded | Y | show-medals | Medal record | none |
{{Infobox gymnast}} |
collapsed | N | show-medals | Medal record | none |
{{Infobox ice hockey player}} |
expanded | Y | show-medals | Medal record | none |
{{Infobox lacrosse player}} |
collapsed | N | medaltemplates-expand medal_templates-expand |
Medal record | none |
{{Infobox martial artist}} |
expanded | Y | show-medals | Medal record | none |
{{Infobox national basketball team}} |
expanded | Y | show-medals | Medal record | none |
{{Infobox national football team}} |
collapsed | N | medaltemplates-expand | Honours | none |
{{Infobox cricket team}} |
expanded | N | show-medals | Medal record | none |
{{Infobox national volleyball team}} |
collapsed | N | medaltemplates-expand | Honours | medaltemplates-title |
{{Infobox NCAA athlete}} |
collapsed | N | medaltemplates-expand medal_templates-expand |
Medal record | none |
{{Infobox netball biography}} |
expanded | Y | show-medals | Medal record | none |
{{Infobox sailor}} via Infobox sportsperson (* = different behavior) |
collapsed* | N* | show-medals | Medal record | medaltemplates-title |
{{Infobox skier}} |
expanded | Y | show-medals | Medal record | none |
{{Infobox speed skater}} via Infobox sportsperson (* = different behavior) |
expanded | Y | show-medals | Medal record | none* |
{{Infobox sport wrestler}} via Infobox sportsperson (* = different behavior) |
expanded | Y | show-medals | Medal record | none* |
{{Infobox sportsperson}} |
expanded | Y | show-medals | Medal record | medaltemplates-title |
{{Infobox squash player}} |
expanded | Y | show-medals | Medal record | none |
{{Infobox swimmer}} via Infobox sportsperson (* = different behavior) |
collapsed* | N* | show-medals | Medal record | none* |
{{Infobox synchronized skating team}} |
collapsed | N | show-medals | Medal record | none |
{{Infobox table tennis player}} |
collapsed | N | show-medals | Medal record | none |
{{Infobox tennis biography}} |
collapsed | N | medaltemplates-expand | Medal record | medaltemplates-title |
{{Infobox volleyball biography}} |
expanded | N | medaltemplates-expand | Honours | medaltemplates-title |
Tracking category
See also
- {{MedalBox}}
- {{MedalTableTop}}, {{MedalTop}}, {{MedalBottom}}
- {{CompetitionRecordTableTop}}, {{CompetitionRecordBottom}}