Difference between revisions of "Template:MedalCount"
Jump to navigation
Jump to search
Template:Wikidata image
Template:Wikidata image
imported>WOSlinker (move docs to subpage) |
imported>Tibullus |
||
| Line 80: | Line 80: | ||
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{39|}}}}} | {{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{39|}}}}} | ||
{{!}} style="background-color:#FFCC99;" {{!}} {{#if:1|{{{40|}}}}} | {{!}} style="background-color:#FFCC99;" {{!}} {{#if:1|{{{40|}}}}} | ||
| + | |- | ||
| + | {{#if:{{{41|}}}| | ||
| + | ! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{41}}}}} | ||
| + | {{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{42|}}}}} | ||
| + | {{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{43|}}}}} | ||
| + | {{!}} style="background-color:#FFCC99;" {{!}} {{#if:1|{{{44|}}}}} | ||
| + | |- | ||
| + | {{#if:{{{45|}}}| | ||
| + | ! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{45}}}}} | ||
| + | {{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{46|}}}}} | ||
| + | {{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{47|}}}}} | ||
| + | {{!}} style="background-color:#FFCC99;" {{!}} {{#if:1|{{{48|}}}}} | ||
| + | |- | ||
| + | {{#if:{{{49|}}}| | ||
| + | ! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{49}}}}} | ||
| + | {{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{50|}}}}} | ||
| + | {{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{51|}}}}} | ||
| + | {{!}} style="background-color:#FFCC99;" {{!}} {{#if:1|{{{52|}}}}} | ||
| + | |- | ||
| + | {{#if:{{{53|}}}| | ||
| + | ! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{53}}}}} | ||
| + | {{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{54|}}}}} | ||
| + | {{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{55|}}}}} | ||
| + | {{!}} style="background-color:#FFCC99;" {{!}} {{#if:1|{{{56|}}}}} | ||
| + | |- | ||
| + | {{#if:{{{57|}}}| | ||
| + | ! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{57}}}}} | ||
| + | {{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{58|}}}}} | ||
| + | {{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{59|}}}}} | ||
| + | {{!}} style="background-color:#FFCC99;" {{!}} {{#if:1|{{{60|}}}}} | ||
| + | |- | ||
| + | {{#if:{{{61|}}}| | ||
| + | ! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{61}}}}} | ||
| + | {{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{62|}}}}} | ||
| + | {{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{63|}}}}} | ||
| + | {{!}} style="background-color:#FFCC99;" {{!}} {{#if:1|{{{64|}}}}} | ||
| + | |- | ||
| + | {{#if:{{{65|}}}| | ||
| + | ! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{65}}}}} | ||
| + | {{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{66|}}}}} | ||
| + | {{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{67|}}}}} | ||
| + | {{!}} style="background-color:#FFCC99;" {{!}} {{#if:1|{{{68|}}}}} | ||
| + | |- | ||
| + | {{#if:{{{69|}}}| | ||
| + | ! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{69}}}}} | ||
| + | {{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{70|}}}}} | ||
| + | {{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{71|}}}}} | ||
| + | {{!}} style="background-color:#FFCC99;" {{!}} {{#if:1|{{{72|}}}}} | ||
| + | |- | ||
| + | {{#if:{{{73|}}}| | ||
| + | ! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{73}}}}} | ||
| + | {{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{74|}}}}} | ||
| + | {{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{75|}}}}} | ||
| + | {{!}} style="background-color:#FFCC99;" {{!}} {{#if:1|{{{76|}}}}} | ||
| + | |- | ||
| + | {{#if:{{{77|}}}| | ||
| + | ! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{77}}}}} | ||
| + | {{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{78|}}}}} | ||
| + | {{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{79|}}}}} | ||
| + | {{!}} style="background-color:#FFCC99;" {{!}} {{#if:1|{{{80|}}}}} | ||
}} | }} | ||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 07:12, 26 December 2013
Contents
Usage
Usage with table markup
{{#if: Event10|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{| 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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{#if: Event10|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{#if: Event10|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{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
Within an infobox
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 Olympic Games|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'''
}}
}}
Automatically calculated total row
| Medal record | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Men's biathlon | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Representing Template:NOR | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
{{#if:|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{MedalBox|medals=
{{Medal|Sport|Men's [[biathlon]]}}
{{Medal|Country|{{NOR}}}}
{{MedalCount | total = yes
| [[Winter Olympic Games|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
}}
}}
See also
- {{MedalBox}}
- {{MedalTableTop}}
- {{Medal}}
- {{Infobox sportsperson}}
- Category:Sportsperson infobox templates
| File:Template-info.png | This template may be suitable for conversion to use {{Infobox}} as a base. |
| The above documentation is transcluded from Template:MedalCount/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |