Difference between revisions of "Template:MedalTableTop"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(remove "font-size:85%" from style since already using "font-size:88%" via class="infobox" (see MediaWiki:Common.css) - also makes this template match style used by Template:MedalTop, Template:MedalBox, etc,)
imported>Zyxw
(moved style="text-align: center" from <tr> ( |- ) to <th> ( ! ) due to new default setting at MediaWiki:Common.css (see revision of 17:34, 23 June 2015) - tested in /sandbox and /testcases.)
Line 2: Line 2:
 
|-
 
|-
 
{{#ifeq:{{{name|}}}|no||<caption class="{{{titleclass|}}}" style="{{{titlestyle|}}}">{{{name|{{Title without disambig|{{PAGENAME}}}}}}}</caption>}}
 
{{#ifeq:{{{name|}}}|no||<caption class="{{{titleclass|}}}" style="{{{titlestyle|}}}">{{{name|{{Title without disambig|{{PAGENAME}}}}}}}</caption>}}
{{#if:{{{image| }}}|{{!}}colspan="3" style="text-align:center; background-color:#FFFFFF'" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imagesize|}}}|sizedefault=100px|alt={{{alt|}}}|suppressplaceholder=yes}}<br />{{#if:{{{caption|}}}|{{{caption|{{}}}}}}}
+
{{#if:{{{image| }}}|{{!}} colspan="3" style="text-align:center; background-color:#FFFFFF'" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imagesize|}}}|sizedefault=100px|alt={{{alt|}}}|suppressplaceholder=yes}}<br />{{#if:{{{caption|}}}|{{{caption|{{}}}}}}}
 
{{!}}- }}
 
{{!}}- }}
{{#if:{{{1| }}}|{{!}}colspan="3" style="text-align:center; background-color:#FFFFFF'" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{1|}}}|size={{{2|}}}|sizedefault=100px|alt={{{alt|}}}|suppressplaceholder=yes}}<br />{{#if:{{{3|}}}|{{{3|{{}}}}}}}
+
{{#if:{{{1| }}}|{{!}} colspan="3" style="text-align:center; background-color:#FFFFFF'" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{1|}}}|size={{{2|}}}|sizedefault=100px|alt={{{alt|}}}|suppressplaceholder=yes}}<br />{{#if:{{{3|}}}|{{{3|{{}}}}}}}
 
{{!}}- }}
 
{{!}}- }}
!colspan="3" style="text-align:center; background-color:#B0C4DE"| {{{header|Medal record}}}
+
! colspan="3" style="text-align:center; background-color:#B0C4DE" | {{{header|Medal record}}}
 
|-
 
|-
{{#if:{{{sport| }}}|{{!}}- style="background-color:#eeeeee;text-align:center;"
+
{{#if:{{{sport| }}}|{{!}}-
!colspan="3" {{!}} {{{sport}}}
+
! colspan="3" style="text-align:center; background-color:#eeeeee;" {{!}} {{{sport}}}
 
{{!}}- }}
 
{{!}}- }}
{{#if:{{{country_code| }}}|{{!}}- style="background-color:#eeeeee;text-align:center;" class="adr"
+
{{#if:{{{country_code| }}}|{{!}}- class="adr"
!colspan="3" {{!}} '''Representing {{#switch: {{{country_code}}}| USA =  the | URS =  the | MHL =  the | UAE =  the | GBR =  the | BAH =  the | NED =  the | PHI =  the | SEY =  the | GAM =  the | SOL =  the |}} {{ {{{country_code}}} }}'''
+
! colspan="3" style="text-align:center; background-color:#eeeeee;" {{!}} '''Representing {{#switch: {{{country_code}}}| USA =  the | URS =  the | MHL =  the | UAE =  the | GBR =  the | BAH =  the | NED =  the | PHI =  the | SEY =  the | GAM =  the | SOL =  the |}} {{ {{{country_code}}} }}'''
 
{{!}}- }}
 
{{!}}- }}
 
{{#if:{{{medals|}}}|{{{medals|}}}
 
{{#if:{{{medals|}}}|{{{medals|}}}

Revision as of 07:07, 24 June 2015

Template:Title without disambig
Medal record