Difference between revisions of "Template:Class Weapon Table Row"

From comp.tf
Jump to navigation Jump to search
m (code refactoring)
m
Line 2: Line 2:
 
! align="center" rowspan="2" | [[Image:{{{imgname}}}|link=http://wiki.teamfortress.com/wiki/{{{wikilink}}}]]<br /><small>'''{{{itemquality}}}'''</small><br />'''[[{{{weaponname}}}]]'''
 
! align="center" rowspan="2" | [[Image:{{{imgname}}}|link=http://wiki.teamfortress.com/wiki/{{{wikilink}}}]]<br /><small>'''{{{itemquality}}}'''</small><br />'''[[{{{weaponname}}}]]'''
 
| align="center" {{#switch: cevo6s
 
| align="center" {{#switch: cevo6s
  | true = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
  | true = bgcolo{{=}}"lightgreen" {{!}} <font color="black"> Allowed </font>
  | false = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
  | false = bgcolor{{=}}"indianred" {{!}} <font color="white"> Banned </font>
 
}}
 
}}
 
| align="center" {{#switch: esea6s
 
| align="center" {{#switch: esea6s
  | true = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
  | true = bgcolor{{=}}"lightgreen" {{!}} <font color="black"> Allowed </font>
  | false = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
  | false = bgcolor{{=}}"indianred" {{!}} <font color="white"> Banned </font>
 
}}
 
}}
 
| align="center" {{#switch: etf2l6s
 
| align="center" {{#switch: etf2l6s
  | true = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
  | true = bgcolor{{=}}"lightgreen" {{!}} <font color="black"> Allowed </font>
  | false = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
  | false = bgcolor{{=}}"indianred" {{!}} <font color="white"> Banned </font>
 
}}
 
}}
 
| align="center" {{#switch: ozf6s
 
| align="center" {{#switch: ozf6s
  | true = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
  | true = bgcolor{{=}}"lightgreen" {{!}} <font color="black"> Allowed </font>
  | false = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
  | false = bgcolor{{=}}"indianred" {{!}} <font color="white"> Banned </font>
 
}}
 
}}
 
| align="center" {{#switch: ugc6s
 
| align="center" {{#switch: ugc6s
  | true = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
  | true = bgcolor{{=}}"lightgreen" {{!}} <font color="black"> Allowed </font>
  | false = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
  | false = bgcolor{{=}}"indianred" {{!}} <font color="white"> Banned </font>
 
}}
 
}}
 
| align="center" {{#switch: cevoHL
 
| align="center" {{#switch: cevoHL
  | true = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
  | true = bgcolor{{=}}"lightgreen" {{!}} <font color="black"> Allowed </font>
  | false = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
  | false = bgcolor{{=}}"indianred" {{!}} <font color="white"> Banned </font>
 
}}
 
}}
 
| align="center" {{#switch: etf2lHL
 
| align="center" {{#switch: etf2lHL
  | true = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
  | true = bgcolor{{=}}"lightgreen" {{!}} <font color="black"> Allowed </font>
  | false = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
  | false = bgcolor{{=}}"indianred" {{!}} <font color="white"> Banned </font>
 
}}
 
}}
 
| align="center" {{#switch: ozfHL
 
| align="center" {{#switch: ozfHL
  | true = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
  | true = bgcolor{{=}}"lightgreen" {{!}} <font color="black"> Allowed </font>
  | false = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
  | false = bgcolor{{=}}"indianred" {{!}} <font color="white"> Banned </font>
 
}}
 
}}
 
| align="center" {{#switch: ugcHL
 
| align="center" {{#switch: ugcHL
  | true = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
  | true = bgcolor{{=}}"lightgreen" {{!}} <font color="black"> Allowed </font>
  | false = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
  | false = bgcolor{{=}}"indianred" {{!}} <font color="white"> Banned </font>
 
}}
 
}}
 
| align="center" {{#switch: wireplayHL
 
| align="center" {{#switch: wireplayHL
  | true = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
  | true = bgcolor{{=}}"lightgreen" {{!}} <font color="black"> Allowed </font>
  | false = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
  | false = bgcolor{{=}}"indianred" {{!}} <font color="white"> Banned </font>
 
}}
 
}}
 
|-
 
|-

Revision as of 04:19, 12 July 2013


This is a test version of a template for the construction of a row in a Class' weapons table. Right now, I'm trying to find a way to allow states other than Allowed/Banned to come up on the ladder, while still keeping template users away from the code. got to read up on #switch parser functions

{{User:Maxim/Template:Class Weapon Table Row
|weaponname = Natascha
|itemquality = Stock
|wikilink = Brass_Beast
|imgname = 128px-Fists.png
|cevo6s = true
|esea6s = true
|etf2l6s = true
|ozf6s = false
|ugc6s = false
|ozfHL = no
|ugcHL = asldkjf
|etf2lHL = 
|cevoHL = true
|wireplayHL =
|description = SEY! SEY!
}}

Displays

User:Maxim/Template:Class Weapon Table Row