Difference between revisions of "Template:MedalistTable"
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: # | + | ! 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: # | + | ! scope="col" style="width: {{{locationwidth|140}}}px; background: #f2f2f2;"{{!}} Location |
}} | }} | ||
| − | ! scope="col" colspan={{{columns|1}}} style="width: {{{width|200}}}px; background: #{{# | + | ! 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: #{{# | + | ! 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: #{{# | + | ! 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> | ||