Difference between revisions of "Template:MedalistTable"

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(add parameters to allow two columns under heading for Third/Bronze)
m (77 revisions imported)
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
<noinclude>{| </noinclude>class="{{{class|wikitable plainrowheaders}}}" border="1" style="font-size: {{{fontsize|100}}}%"
 
<noinclude>{| </noinclude>class="{{{class|wikitable plainrowheaders}}}" border="1" style="font-size: {{{fontsize|100}}}%"
 
|- style="text-align: center;"
 
|- style="text-align: center;"
! scope="col" style="width: {{{labelwidth|120}}}px; background: #f2f2f2;"| {{{type|Games}}}
+
! scope="col" style="width: {{{labelwidth|120}}}px;"| {{{type|Games}}}
 
{{#ifeq: {{{location|}}} | yes |
 
{{#ifeq: {{{location|}}} | yes |
! scope="col" style="width: {{{locationwidth|140}}}px; background: #f2f2f2;"{{!}} Location
+
! scope="col" style="width: {{{locationwidth|140}}}px;"{{!}} Location
 
}}
 
}}
 
! scope="col" colspan={{{columns|1}}} style="width: {{{width|200}}}px; background: #{{#switch:{{{style|}}}|ribbon-CA=FF9999|ribbon-US=9999FF|ordinal=f2f2f2|#default=FFD700}};" | {{#ifeq:{{{style|medal}}}|medal|Gold|First}}
 
! scope="col" colspan={{{columns|1}}} style="width: {{{width|200}}}px; background: #{{#switch:{{{style|}}}|ribbon-CA=FF9999|ribbon-US=9999FF|ordinal=f2f2f2|#default=FFD700}};" | {{#ifeq:{{{style|medal}}}|medal|Gold|First}}
 
! scope="col" colspan={{{columns|1}}} style="width: {{{width|200}}}px; background: #{{#switch:{{{style|}}}|ribbon-CA=9999FF|ribbon-US=FF9999|ordinal=f2f2f2|#default=CCCCCC}};" | {{#ifeq:{{{style|medal}}}|medal|Silver|Second}}
 
! scope="col" colspan={{{columns|1}}} style="width: {{{width|200}}}px; background: #{{#switch:{{{style|}}}|ribbon-CA=9999FF|ribbon-US=FF9999|ordinal=f2f2f2|#default=CCCCCC}};" | {{#ifeq:{{{style|medal}}}|medal|Silver|Second}}
! scope="col" colspan={{{columns|{{{third-columns|1}}}}}} style="width: {{{width|{{{third-width|200}}}}}}px; background: #{{#switch:{{{style|}}}|ribbon-CA=FFFFFF|ribbon-US=FFFF99|ordinal=f2f2f2|#default=CC9966}};" | {{#ifeq:{{{style|medal}}}|medal|Bronze|Third}}<noinclude>
+
! scope="col" colspan={{{third-columns|{{{columns|1}}}}}} style="width: {{{third-width|{{{width|200}}}}}}px; background: #{{#switch:{{{style|}}}|ribbon-CA=FFFFFF|ribbon-US=FFFF99|ordinal=f2f2f2|#default=CC9966}};" | {{#ifeq:{{{style|medal}}}|medal|Bronze|Third}}<noinclude>
 
|}
 
|}
 
{{documentation}}
 
{{documentation}}
[[Category:Olympics templates|MedalistTable]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 09:38, 30 September 2020

Games Gold Silver Bronze
50px Template documentation[create]