Difference between revisions of "Template:MedalTableTop"

From blackwiki
Jump to navigation Jump to search
imported>MSGJ
(add parameter for header, move cats and iws to /doc)
imported>Zyxw
(Add "country" as used in Template:MedalBox, not displayed if "country_code" is used. Tested with /sandbox and /testcases.)
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| class="infobox" style="width: 23em; font-size: 90%;"
+
{| class="infobox" style="width: 22em;"
!colspan="3" style="text-align:center; background-color:#B0C4DE"| {{{Header|Medal record}}}
 
 
|-
 
|-
{{#if:{{{1| }}}|{{!}}colspan="3" style="text-align:center; background-color:#FFFFFF'" {{!}} [[Image:{{Hide if placeholder image|{{{1|}}}}}|{{{2|100px}}}|alt={{{alt|}}}|{{{3|{{PAGENAME}}}}}]]<br /><small>{{{3|{{PAGENAME}}}}}
+
{{#ifeq:{{{name|}}}|no||<caption class="{{{titleclass|}}}" style="{{{titlestyle|}}}">{{{name|{{PAGENAMEBASE|{{PAGENAME}}}}}}}</caption>}}
{{!}}- }}<noinclude>
+
{{#if:{{{image| }}}|{{!}} colspan="3" style="text-align:center; background-color:#ffffff;" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{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|{{}}}}}}}
 +
{{!}}- }}
 +
! colspan="3" style="text-align:center; background-color:#b0c4de" | {{{header|Medal record}}}
 +
|-
 +
{{#if:{{{sport| }}}|{{!}}-
 +
! colspan="3" style="text-align:center; background-color:#eeeeee;" {{!}} {{{sport}}}
 +
{{!}}- }}
 +
{{#if:{{{country_code|{{{nation| }}}}}}|{{!}}- class="adr"
 +
! colspan="3" style="text-align:center; background-color:#eeeeee;" {{!}} Representing {{#switch: {{{country_code|{{{nation}}}}}}| USA =  the | URS =  the | MHL =  the | UAE =  the | GBR =  the | BAH =  the | NED =  the | PHI =  the | SEY =  the | GAM =  the | SOL =  the |}} {{ {{{country_code|{{{nation}}}}}} }}
 +
{{!}}- |{{#if: {{{country|}}}|{{!}}- class="adr"
 +
! colspan="3" style="text-align:center; background-color:#eeeeee;" {{!}} Representing {{{country}}} }}}}
 +
{{#if:{{{medals|}}}|{{{medals|}}}
 +
{{!}}{{)}}}}<noinclude>
 
|}
 
|}
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 19:49, 5 November 2017

Template:PAGENAMEBASE
Medal record