Difference between revisions of "Template:Medal"

From blackwiki
Jump to navigation Jump to search
imported>The Earwig
(Twinkle...)
imported>Zyxw
(Add a hidden tracking category for cases where an expected 2nd or 3rd unnamed parameter is missing. Tested in /sandbox. No change to output as per /testcases.)
Line 16: Line 16:
 
  | 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>'''
+
  | 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]]}}}}}}
 
  | Olympics | Olympic                = " colspan="3" {{!}} '''<span class="nowrap">[[Olympic Games]]</span>'''
 
  | Olympics | Olympic                = " colspan="3" {{!}} '''<span class="nowrap">[[Olympic Games]]</span>'''
 
  | WorldChampionships                = " colspan="3" {{!}} '''<span class="nowrap">World Championships</span>'''
 
  | WorldChampionships                = " colspan="3" {{!}} '''<span class="nowrap">World Championships</span>'''
 
  | EuropeanChampionships            = " colspan="3" {{!}} '''<span class="nowrap">European Championships</span>'''
 
  | EuropeanChampionships            = " colspan="3" {{!}} '''<span class="nowrap">European Championships</span>'''
  | Country                          = " colspan="3" class="adr" {{!}} '''Competitor for <span class="country-name">{{{2}}}</span>'''
+
  | Country                          = " colspan="3" class="adr" {{!}} '''Competitor for <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>'''
+
  | 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]]}}}}}}
 
  | #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|Country|Sport|Team|Independent|Olympic|Olympics|WorldChampionships|EuropeanChampionships=
|#default = {{!!}} style="text-align:center;vertical-align:middle;" {{!}} <span class="nowrap">{{{2}}}</span>
+
|#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|Country|Sport|Team|TrueSpirit|PdC|Independent|Olympic|Olympics|WorldChampionships|EuropeanChampionships=
|#default = {{!!}} style="text-align:center;vertical-align:middle;" {{!}} {{{3}}}}}<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:33, 17 March 2016