Difference between revisions of "Template:Medal"
Jump to navigation
Jump to search
imported>Sillyfolkboy (change from "competitor for" to "representing" in line with main template) |
imported>Zyxw m (Adjust formatting of Medal|Sport and Medal|Competition to match MedalSport and MedalCompetition. Tested first in Template:Medal/sandbox and Template:Medal/testcases.) |
||
| Line 1: | Line 1: | ||
| − | <noinclude>{{pp-template|small=yes}} | + | <noinclude>{{sandbox other|<!--avoids transclusion of protection template in sandbox-->|{{pp-template|small=yes}}}} |
{| class="infobox" style="width: 25em; font-size: 95%;" | {| class="infobox" style="width: 25em; font-size: 95%;" | ||
</noinclude> | </noinclude> | ||
| − | |- {{#switch: {{{1}}} | + | |- |
| − | |Sport|Team|Country|Independent = style="background-color:#eeeeee; | + | {{#switch: {{{1}}} |
| − | |Competition|Comp|Olympic|Olympics|WorldChampionships|EuropeanChampionships = style="background-color:#cccccc; | + | |Sport|Team|Country|Independent = ! colspan="3" style="text-align:center;vertical-align:middle;background-color:#eeeeee; |
| − | + | |Competition|Comp|Olympic|Olympics|WorldChampionships|EuropeanChampionships = ! colspan="3" style="text-align:center;vertical-align:middle;background-color:#cccccc; | |
| + | |#default = {{!}} style="text-align:center;vertical-align:middle; | ||
| + | }}{{#switch: {{{1}}} | ||
| Gold | G = " {{!}} [[File:Gold medal icon (G initial).svg|16px|Gold medal – first place|link=]] | | Gold | G = " {{!}} [[File:Gold medal icon (G initial).svg|16px|Gold medal – first place|link=]] | ||
| Silver | S = " {{!}} [[File:Silver medal icon (S initial).svg|16px|Silver medal – second place|link=]] | | Silver | S = " {{!}} [[File:Silver medal icon (S initial).svg|16px|Silver medal – second place|link=]] | ||
| Line 16: | Line 18: | ||
| Disqualified | DQ = background-color:pink" {{!}} '''Disqualified''' | | Disqualified | DQ = background-color:pink" {{!}} '''Disqualified''' | ||
| TrueSpirit | PdC = background-color:white" {{!}} [[File:Olympic_rings.svg|30px]]{{!!}}style="background-color:white" {{!}}'''[[Pierre de Coubertin medal]]''' | | TrueSpirit | PdC = background-color:white" {{!}} [[File:Olympic_rings.svg|30px]]{{!!}}style="background-color:white" {{!}}'''[[Pierre de Coubertin medal]]''' | ||
| − | | Competition | Comp | Sport | Team = | + | | Competition | Comp | Sport | Team = " {{!}} <span class="nowrap">{{{2|}}}</span>{{Main other|{{#if:{{{2|}}}||{{#if:{{{2}}}|[[Category:Articles using Template:Medal missing an expected parameter]]}}}}}} |
| − | | Olympics | Olympic = | + | | Olympics | Olympic = " {{!}} <span class="nowrap">[[Olympic Games]]</span> |
| − | | WorldChampionships = | + | | WorldChampionships = " {{!}} <span class="nowrap">World Championships</span> |
| − | | EuropeanChampionships = | + | | EuropeanChampionships = " {{!}} <span class="nowrap">European Championships</span> |
| − | | Country = | + | | Country = " class="adr" {{!}} Representing <span class="country-name">{{{2}}}</span>{{Main other|{{#if:{{{2|}}}||{{#if:{{{2}}}|[[Category:Articles using Template:Medal missing an expected parameter]]}}}}}} |
| − | | Independent = | + | | Independent = " class="adr" {{!}} Competed as an <span class="country-name">{{{2}}}</span>{{Main other|{{#if:{{{2|}}}||{{#if:{{{2}}}|[[Category:Articles using Template:Medal missing an expected parameter]]}}}}}} |
| #default = " {{!}}   {{Main other|[[Category:Articles using Template:Medal with unrecognised first positional argument]]}} | | #default = " {{!}}   {{Main other|[[Category:Articles using Template:Medal with unrecognised first positional argument]]}} | ||
}}{{#switch: {{{1}}} | }}{{#switch: {{{1}}} | ||
| − | |Competition|Comp | + | |Competition|Comp|Sport|Team|Olympic|Olympics|WorldChampionships|EuropeanChampionships|Country|Independent= |
|#default = {{!!}} style="text-align:center;vertical-align:middle;" {{!}} <span class="nowrap">{{{2}}}</span>{{Main other|{{#if:{{{2|}}}||{{#if:{{{2}}}|[[Category:Articles using Template:Medal missing an expected parameter]]}}}}}} | |#default = {{!!}} style="text-align:center;vertical-align:middle;" {{!}} <span class="nowrap">{{{2}}}</span>{{Main other|{{#if:{{{2|}}}||{{#if:{{{2}}}|[[Category:Articles using Template:Medal missing an expected parameter]]}}}}}} | ||
}}{{#switch: {{{1}}} | }}{{#switch: {{{1}}} | ||
| − | |Competition|Comp | + | |Competition|Comp|Sport|Team|Olympic|Olympics|WorldChampionships|EuropeanChampionships|Country|Independent|TrueSpirit|PdC= |
|#default = {{!!}} style="text-align:center;vertical-align:middle;" {{!}} {{{3}}}{{Main other|{{#if:{{{3|}}}||{{#if:{{{3}}}|[[Category:Articles using Template:Medal missing an expected parameter]]}}}}}}}}<noinclude> | |#default = {{!!}} style="text-align:center;vertical-align:middle;" {{!}} {{{3}}}{{Main other|{{#if:{{{3|}}}||{{#if:{{{3}}}|[[Category:Articles using Template:Medal missing an expected parameter]]}}}}}}}}<noinclude> | ||
|} | |} | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 03:26, 10 December 2016
| {{{2}}} | {{{3}}} |
Template:Medal templates documentation
Tracking categories
- Category:Articles using Template:Medal with Playoffs (0)
- Category:Articles using Template:Medal with Runner-up (0)
- Category:Articles using Template:Medal with Winner (0)
- Category:Articles using Template:Medal with unrecognised first positional argument (0)
- Category:Articles using Template:Medal missing an expected parameter (0)
| The above documentation is transcluded from Template:Medal/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. |