Template:MedalTableTop

class="infobox" style="width: 22em;"
{{#ifeq:{{{name
}}|no||{{{name|{{PAGENAMEBASE|{{PAGENAME}}}}}}}}}

{{#if:{{{image| }}}|{{!}} colspan="3" style="text-align:center; background-color:#ffffff;color:inherit;" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{imagesize|}}}}}}|sizedefault=100px|alt={{{alt|}}}|suppressplaceholder=yes}}
{{#if:{{{caption|}}}|{{{caption|{{}}}}}}}

{{!}}- }}

{{#if:{{{1| }}}|{{!}} colspan="3" style="text-align:center; background-color:#ffffff;color:inherit;" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{1|}}}|size={{{2|}}}|sizedefault=100px|alt={{{alt|}}}|suppressplaceholder=yes}}
{{#if:{{{3|}}}|{{{3|{{}}}}}}}

{{!}}- }}

! colspan="3" style="text-align:center; background-color:#b0c4de;color:inherit;" | {{{header|Medal record}}}

|-

{{#if:{{{sport| }}}|{{!}}-

! colspan="3" style="text-align:center; background-color:#eeeeee;color:inherit;" {{!}} {{{sport}}}

{{!}}- }}

{{#if:{{{country_code|{{{nation| }}}}}}|{{!}}- class="adr"

! colspan="3" style="text-align:center; background-color:#eeeeee;color:inherit;" {{!}} 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;color:inherit;" {{!}} Representing {{{country}}} }}}}

{{#if:{{{medals|}}}|{{{medals|}}}

{{!}}{{)}}}}

|}

{{documentation|Template:Medal templates documentation}}