Difference between revisions of "Template:Medal"

From blackwiki
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;
| style="text-align:center;vertical-align:middle;{{#switch: {{{1}}}
+
|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 = " colspan="3" {{!}} '''<span class="nowrap">{{{2|}}}</span>'''{{Main other|{{#if:{{{2|}}}||{{#if:{{{2}}}|[[Category:Articles using Template:Medal missing an expected parameter]]}}}}}}
+
  | 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                = " colspan="3" {{!}} '''<span class="nowrap">[[Olympic Games]]</span>'''
+
  | Olympics | Olympic                = " {{!}} <span class="nowrap">[[Olympic Games]]</span>
  | WorldChampionships                = " colspan="3" {{!}} '''<span class="nowrap">World Championships</span>'''
+
  | WorldChampionships                = " {{!}} <span class="nowrap">World Championships</span>
  | EuropeanChampionships            = " colspan="3" {{!}} '''<span class="nowrap">European Championships</span>'''
+
  | EuropeanChampionships            = " {{!}} <span class="nowrap">European Championships</span>
  | Country                          = " colspan="3" class="adr" {{!}} '''Representing <span class="country-name">{{{2}}}</span>'''{{Main other|{{#if:{{{2|}}}||{{#if:{{{2}}}|[[Category:Articles using Template:Medal missing an expected parameter]]}}}}}}
+
  | 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                      = " colspan="3" 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]]}}}}}}
+
  | 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                          = " {{!}} &#32; {{Main other|[[Category:Articles using Template:Medal with unrecognised first positional argument]]}}
 
  | #default                          = " {{!}} &#32; {{Main other|[[Category:Articles using Template:Medal with unrecognised first positional argument]]}}
 
  }}{{#switch: {{{1}}}
 
  }}{{#switch: {{{1}}}
|Competition|Comp|Country|Sport|Team|Independent|Olympic|Olympics|WorldChampionships|EuropeanChampionships=
+
|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|Country|Sport|Team|TrueSpirit|PdC|Independent|Olympic|Olympics|WorldChampionships|EuropeanChampionships=
+
|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