Difference between revisions of "Template:Resultscell"

From QBWiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{#ifeq: Y | X | bgcolor=gray data-sort-value="9999" {{!}} X | {{#ifeq: {{{1}}} | 1 | bgcolor=gold | }} {{#ifeq: {{{1}}} | 2 | bgcolor=silver | }} {{#ifeq: {{{1}}} | 3 | bgcolor=#cd7f32 | }} {{#ifeq: {{{1}}} | 4 | bgcolor=cyan | }} data-sort-value="{{{1}}}" {{!}} {{#if {{{t|}}} | T- | }} {{{1}}} }}
+
{{#ifeq: {{{1|X}}} | X | bgcolor{{=}}gray data-sort-value{{=}}"9999" {{!}} X | {{#switch: {{{1}}} | 1 = bgcolor=gold | 2 = bgcolor=silver | 3 = bgcolor=#cd7f32 | 4 = bgcolor=cyan | }} data-sort-value="{{{1}}}" {{!}} {{#if {{{t|}}} | T- | }} {{{1}}} }}

Revision as of 21:56, 16 June 2014

bgcolorTemplate:=gray data-sort-valueTemplate:="9999" | X