Difference between revisions of "Template:Crate series table/row/Sandbox"

From Team Fortress Wiki
Jump to: navigation, search
(Create sandbox page)
 
(Attempt to change bg based on grade variable)
Line 2: Line 2:
 
<nowiki></nowiki>
 
<nowiki></nowiki>
 
{{!-}}
 
{{!-}}
{{!}} colspan="2" style="background:#FFDDAD; {{#if:{{{grade}}}|background:green;}}" {{!}} {{item icon|{{{item}}}}}[[{{{link|{{{item}}}}}}{{if lang}}|{{{name|{{Item name|{{{item}}}}}}}}]]
+
{{!}} colspan="2" style="
 +
background:{{#switch: {{{grade}}}
 +
  | elite = orange
 +
  | #default = #FFDDAD
 +
}}" {{!}} {{item icon|{{{item}}}}}[[{{{link|{{{item}}}}}}{{if lang}}|{{{name|{{Item name|{{{item}}}}}}}}]]
 
{{!}} style="text-align:right;" {{!}} {{#if:{{{rate|}}}|{{Decimal Align|NUM={{{rate}}}|P=2|POSTFIX=%}}}}
 
{{!}} style="text-align:right;" {{!}} {{#if:{{{rate|}}}|{{Decimal Align|NUM={{{rate}}}|P=2|POSTFIX=%}}}}
 
{{!-}}
 
{{!-}}

Revision as of 01:14, 5 September 2023