Difference between revisions of "Template:MedalistTable"

From blackwiki
Jump to navigation Jump to search
blackwiki>Sillyfolkboy
(link cat in title (should work now))
blackwiki>Sillyfolkboy
(update with new option (includes styling for fair ribbons and ordinal placing (1st,2nd,3rd))
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: #EFEFEF;"                     | {{{type|Games}}}
+
! scope="col" style="width: {{{labelwidth|120}}}px; background: #f2f2f2;"| {{{type|Games}}}
 
{{#ifeq: {{{location|}}} | yes |
 
{{#ifeq: {{{location|}}} | yes |
! scope="col" style="width:{{{locationwidth|140}}}px; background: #EFEFEF;"               {{!}} Location
+
! scope="col" style="width: {{{locationwidth|140}}}px; background: #f2f2f2;"{{!}} Location
 
}}
 
}}
! scope="col" colspan={{{columns|1}}} style="width: {{{width|200}}}px; background: #{{#ifeq:{{Yesno|{{{ordinal|no}}}}}|yes|99F|FFD700}};" | {{#ifeq:{{Yesno|{{{ordinal|no}}}}}|yes|First[[Category:Articles using MedalistTable ordinal parameter]]|Gold}}
+
! 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: #{{#ifeq:{{Yesno|{{{ordinal|no}}}}}|yes|F99|CCC}};" | {{#ifeq:{{Yesno|{{{ordinal|no}}}}}|yes|Second|Silver}}
+
! 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: #{{#ifeq:{{Yesno|{{{ordinal|no}}}}}|yes|FF9|CD7F32}};" | {{#ifeq:{{Yesno|{{{ordinal|no}}}}}|yes|Third|Bronze}}<noinclude>
+
! scope="col" colspan={{{columns|1}}} style="width: {{{width|200}}}px; background: #{{#switch:{{{style|}}}|ribbon-CA=FFFFFF|ribbon-US=FFFF99|ordinal=f2f2f2|#default=CD7F32}};" | {{#ifeq:{{{style|medal}}}|medal|Bronze|Third}}<noinclude>
 
|}
 
|}
 
{{documentation}}
 
{{documentation}}
 
[[Category:Olympics templates|MedalistTable]]
 
[[Category:Olympics templates|MedalistTable]]
 
</noinclude>
 
</noinclude>

Revision as of 22:57, 19 January 2015

Games Gold Silver Bronze
50px Template documentation[create]