Difference between revisions of "Template:MedalCount/doc"
Jump to navigation
Jump to search
imported>Zyxw (add example) |
imported>Zyxw (add actual example from Ole Einar Bjørndalen) |
||
| Line 2: | Line 2: | ||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | ||
| − | == Usage with MedalBox == | + | == Usage == |
| + | |||
| + | |||
| + | === Usage with table markup === | ||
| + | {| class="infobox" style="width:22em;" | ||
| + | {{MedalCount |type=Type | ||
| + | | Event1 | 0 | 0 | 0 | ||
| + | | Event2 | 0 | 0 | 0 | ||
| + | | Event3 | 0 | 0 | 0 | ||
| + | | Event4 | 0 | 0 | 0 | ||
| + | | Event5 | 0 | 0 | 0 | ||
| + | | Event6 | 0 | 0 | 0 | ||
| + | | Event7 | 0 | 0 | 0 | ||
| + | | Event8 | 0 | 0 | 0 | ||
| + | | Event9 | 0 | 0 | 0 | ||
| + | | Event10| 0 | 0 | 0 | ||
| + | }} | ||
| + | |} | ||
| + | <pre style="overflow:auto;"> | ||
| + | {| class="infobox" style="width:22em;" | ||
| + | {{MedalCount |type=Type | ||
| + | | Event1 | 0 | 0 | 0 | ||
| + | | Event2 | 0 | 0 | 0 | ||
| + | | Event3 | 0 | 0 | 0 | ||
| + | | Event4 | 0 | 0 | 0 | ||
| + | | Event5 | 0 | 0 | 0 | ||
| + | | Event6 | 0 | 0 | 0 | ||
| + | | Event7 | 0 | 0 | 0 | ||
| + | | Event8 | 0 | 0 | 0 | ||
| + | | Event9 | 0 | 0 | 0 | ||
| + | | Event10| 0 | 0 | 0 | ||
| + | }} | ||
| + | |} | ||
| + | </pre> | ||
| + | {{clear}} | ||
| + | |||
| + | === Usage with MedalBox === | ||
{{MedalBox | {{MedalBox | ||
| sport = Sport | | sport = Sport | ||
| Line 41: | Line 77: | ||
{{clear}} | {{clear}} | ||
| − | == Usage with MedalTableTop == | + | === Usage with MedalTableTop === |
{{MedalTableTop | {{MedalTableTop | ||
| name = Name | | name = Name | ||
| Line 82: | Line 118: | ||
{{clear}} | {{clear}} | ||
| − | == Usage with Infobox sportsperson == | + | === Usage with Infobox sportsperson === |
{{Infobox sportsperson | {{Infobox sportsperson | ||
| name = Name | | name = Name | ||
| Line 123: | Line 159: | ||
{{clear}} | {{clear}} | ||
| − | == | + | == Example == |
| − | {| | + | From [[Ole Einar Bjørndalen]]: |
| − | + | {{Infobox biathlete | |
| − | + | | name = Ole Einar Bjørndalen | |
| − | | | + | | birth_date = {{birth date and age|df=yes|1974|1|27}} |
| − | | | + | | birth_place = [[Drammen]], [[Norway]] |
| − | | | + | | show-medals = yes |
| − | | | + | | medaltemplates = |
| − | | | + | {{Medal|Sport|Men's [[biathlon]]}} |
| − | | | + | {{Medal|Country|{{NOR}}}} |
| − | | | + | {{MedalCount |
| − | | | + | | [[Winter Olympics|Olympic Games]] | 8 | 4 | 1 |
| − | | | + | | [[Biathlon World Championships|World Championships]] | 19 | 12 | 9 |
| + | | {{nowrap|[[Summer Biathlon World Championships|Summer World Championships]]}} | 1 | 1 | 1 | ||
| + | | {{nowrap|[[Norwegian Biathlon Championships|Norwegian Championships]]}} | 30 | 8 | 12 | ||
| + | | {{nowrap|Summer Norwegian Championships}} | 14 | 5 | 0 | ||
| + | | {{nowrap|[[Biathlon Junior World Championships | Junior World Championships]]}} | 3 | 0 | 1 | ||
| + | | {{nowrap|Junior Norwegian Championships}} | 4 | 1 | 1 | ||
| + | | '''Total (135 medals)''' | '''79''' | '''31''' | '''25''' | ||
}} | }} | ||
| − | + | }} | |
<pre style="overflow:auto;"> | <pre style="overflow:auto;"> | ||
| − | {| | + | {{Infobox biathlete |
| − | + | | name = Ole Einar Bjørndalen | |
| − | + | | birth_date = {{birth date and age|df=yes|1974|1|27}} | |
| − | | | + | | birth_place = [[Drammen]], [[Norway]] |
| − | | | + | | show-medals = yes |
| − | | | + | | medaltemplates = |
| − | | | + | {{Medal|Sport|Men's [[biathlon]]}} |
| − | | | + | {{Medal|Country|{{NOR}}}} |
| − | | | + | {{MedalCount |
| − | | | + | | [[Winter Olympics|Olympic Games]] | 8 | 4 | 1 |
| − | | | + | | [[Biathlon World Championships|World Championships]] | 19 | 12 | 9 |
| − | | | + | | {{nowrap|[[Summer Biathlon World Championships|Summer World Championships]]}} | 1 | 1 | 1 |
| + | | {{nowrap|[[Norwegian Biathlon Championships|Norwegian Championships]]}} | 30 | 8 | 12 | ||
| + | | {{nowrap|Summer Norwegian Championships}} | 14 | 5 | 0 | ||
| + | | {{nowrap|[[Biathlon Junior World Championships | Junior World Championships]]}} | 3 | 0 | 1 | ||
| + | | {{nowrap|Junior Norwegian Championships}} | 4 | 1 | 1 | ||
| + | | '''Total (135 medals)''' | '''79''' | '''31''' | '''25''' | ||
}} | }} | ||
| − | + | }} | |
</pre> | </pre> | ||
{{clear}} | {{clear}} | ||
| Line 161: | Line 208: | ||
* {{tl|Medal}} | * {{tl|Medal}} | ||
* {{tl|Infobox sportsperson}} | * {{tl|Infobox sportsperson}} | ||
| + | * [[:Category:Sportsperson infobox templates]] | ||
<includeonly> | <includeonly> | ||
Revision as of 19:34, 13 September 2015
| 40px | This is a documentation subpage for Template:MedalCount. It contains usage information, categories and other content that is not part of the original template page. |
Contents
Usage
Usage with table markup
| ||||||||||||||||||||||||||||||||||||||||||||||||||
{| class="infobox" style="width:22em;"
{{MedalCount |type=Type
| Event1 | 0 | 0 | 0
| Event2 | 0 | 0 | 0
| Event3 | 0 | 0 | 0
| Event4 | 0 | 0 | 0
| Event5 | 0 | 0 | 0
| Event6 | 0 | 0 | 0
| Event7 | 0 | 0 | 0
| Event8 | 0 | 0 | 0
| Event9 | 0 | 0 | 0
| Event10| 0 | 0 | 0
}}
|}
Usage with MedalBox
| Medal record | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Sport | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Representing Country | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
{{MedalBox
| sport = Sport
| country = Country
| medals =
{{MedalCount |type=Podiums
| Event1 | 0 | 0 | 0
| Event2 | 0 | 0 | 0
| Event3 | 0 | 0 | 0
| Event4 | 0 | 0 | 0
| Event5 | 0 | 0 | 0
| Event6 | 0 | 0 | 0
| Event7 | 0 | 0 | 0
| Event8 | 0 | 0 | 0
| Event9 | 0 | 0 | 0
| Event10| 0 | 0 | 0
}}
}}
Usage with MedalTableTop
| Medal record | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Sport | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Representing Template:NRU | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
{{MedalTableTop
| name = Name
| sport = Sport
| country_code = NRU
| medals =
{{MedalCount |type=Podiums
| Event1 | 0 | 0 | 0
| Event2 | 0 | 0 | 0
| Event3 | 0 | 0 | 0
| Event4 | 0 | 0 | 0
| Event5 | 0 | 0 | 0
| Event6 | 0 | 0 | 0
| Event7 | 0 | 0 | 0
| Event8 | 0 | 0 | 0
| Event9 | 0 | 0 | 0
| Event10| 0 | 0 | 0
}}
}}
Usage with Infobox sportsperson
| Sport | |||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Country | Country | ||||||||||||||||||||||||||||||||||||||||||||||||
| Sport | Sport | ||||||||||||||||||||||||||||||||||||||||||||||||
Medal record
| |||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox sportsperson
| name = Name
| country = Country
| sport = Sport
| medaltemplates =
{{MedalCount
| Event1 | 0 | 0 | 0
| Event2 | 0 | 0 | 0
| Event3 | 0 | 0 | 0
| Event4 | 0 | 0 | 0
| Event5 | 0 | 0 | 0
| Event6 | 0 | 0 | 0
| Event7 | 0 | 0 | 0
| Event8 | 0 | 0 | 0
| Event9 | 0 | 0 | 0
| Event10| 0 | 0 | 0
}}
}}
Example
From Ole Einar Bjørndalen:
| Personal information | |||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Born | 27 January 1974 Drammen, Norway | ||||||||||||||||||||||||||||||||||||||||||||||
Medal record
| |||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox biathlete
| name = Ole Einar Bjørndalen
| birth_date = {{birth date and age|df=yes|1974|1|27}}
| birth_place = [[Drammen]], [[Norway]]
| show-medals = yes
| medaltemplates =
{{Medal|Sport|Men's [[biathlon]]}}
{{Medal|Country|{{NOR}}}}
{{MedalCount
| [[Winter Olympics|Olympic Games]] | 8 | 4 | 1
| [[Biathlon World Championships|World Championships]] | 19 | 12 | 9
| {{nowrap|[[Summer Biathlon World Championships|Summer World Championships]]}} | 1 | 1 | 1
| {{nowrap|[[Norwegian Biathlon Championships|Norwegian Championships]]}} | 30 | 8 | 12
| {{nowrap|Summer Norwegian Championships}} | 14 | 5 | 0
| {{nowrap|[[Biathlon Junior World Championships | Junior World Championships]]}} | 3 | 0 | 1
| {{nowrap|Junior Norwegian Championships}} | 4 | 1 | 1
| '''Total (135 medals)''' | '''79''' | '''31''' | '''25'''
}}
}}
See also
- {{MedalBox}}
- {{MedalTableTop}}
- {{Medal}}
- {{Infobox sportsperson}}
- Category:Sportsperson infobox templates