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

From Team Fortress Wiki
Jump to: navigation, search
(escape)
(Add ability to change background color based on grade)
Line 2: Line 2:
 
<nowiki></nowiki>
 
<nowiki></nowiki>
 
{{!-}}
 
{{!-}}
{{!}} colspan="2" style="background:{{#switch: {{{grade}}}|civilian = \#B0C3D9|freelance = \#5E98D9|mercenary = \#4B69FF|commando = \#8847FF|assassin = \#D32CE6|elite = \#EB4B4B|#default = \#FFDDAD}};" {{!}} {{item icon|{{{item}}}}}[[{{{link|{{{item}}}}}}{{if lang}}|{{{name|{{Item name|{{{item}}}}}}}}]]
+
{{!}} colspan="2" style="background:#{{#switch: {{{grade}}}|civilian=B0C3D9|freelance=5E98D9|mercenary=4B69FF|commando=8847FF|assassin=D32CE6|elite=EB4B4B|#default=FFDDAD}};" {{!}} {{item icon|{{{item}}}}} [[{{{link|{{{item}}}}}}{{if lang}}|<span style="{{#if:{{{grade|}}}|color:white}};">{{{name|{{Item name|{{{item}}}}}}}}</span>]]
 
{{!}} 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=%}}}}
 
{{!-}}
 
{{!-}}
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
 +
{|class="wikitable sortable"
 +
|-
 +
! colspan="3" style="background:#F3A957;" | Test
 +
|-
 +
{{for|
 +
|{{Crate series table/row/Sandbox|item=Shotgun|rate=1|grade=civilian}}
 +
|{{Crate series table/row/Sandbox|item=Shotgun|rate=1|grade=freelance}}
 +
|{{Crate series table/row/Sandbox|item=Shotgun|rate=1|grade=mercenary}}
 +
|{{Crate series table/row/Sandbox|item=Shotgun|rate=1|grade=commando}}
 +
|{{Crate series table/row/Sandbox|item=Shotgun|rate=1|grade=assassin}}
 +
|{{Crate series table/row/Sandbox|item=Shotgun|rate=1|grade=elite}}
 +
|{{Crate series table/row/Sandbox|item=Shotgun|rate=1}}
 +
|{{Crate series table/row/Sandbox|item=Minigun|rate=2|grade=assassin}}
 +
|{{Crate series table/row/Sandbox|item=Hat of Undeniable Wealth and Respect|rate=97|grade=mercenary}}
 +
|{{Crate series table/row/Sandbox|item=Pistol|rate=500}}
 +
}}
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 02:38, 5 September 2023