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

From comp.tf
Jump to navigation Jump to search
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" | yes
+
| align="center" {{#switch: {{{cevo6s}}}
| align="center" {{!}} no
+
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
| align="center" {{!}} yes
+
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
| align="center" | no
+
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{cevo6sref}}}|name="cevo6sref"}}
| align="center" | yes
+
}}
| align="center" | sadf
+
| align="center" {{#switch: {{{esea6s}}}
 +
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
 +
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
 +
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{esea6sref}}}|name="esea6sref"}}
 +
}}
 +
| align="center" {{#switch: {{{etf2l6s}}}
 +
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
 +
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
 +
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{etf2l6sref}}}|name="etf2l6sref"}}
 +
}}
 +
| align="center" {{#switch: {{{ozf6s}}}
 +
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
 +
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
 +
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{ozf6sref}}}|name="ozf6sref"}}
 +
}}
 +
| align="center" {{#switch: {{{ugc6s}}}
 +
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
 +
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
 +
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{ugc6sref}}}|name="ugc6sref"}}
 +
}}
 +
| align="center" {{#switch: {{{cevoHL}}}
 +
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
 +
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
 +
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{cevoref}}}|name="cevoref"}}
 +
}}
 
| align="center" {{#switch: {{{etf2lHL}}}
 
| align="center" {{#switch: {{{etf2lHL}}}
 
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>  
 
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>  
Line 13: Line 37:
 
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{etf2lHLref}}}|name="etf2lHLref"}}
 
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{etf2lHLref}}}|name="etf2lHLref"}}
 
}}
 
}}
| align="center" | asdf
+
| align="center" {{#switch: {{{ozfHL}}}
| align="center" | asdf
+
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
| align="center" |asdf
+
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
 +
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{ozfHLref}}}|name="ozfHLref"}}
 +
}}
 +
| align="center" {{#switch: {{{ugcHL}}}
 +
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
 +
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
 +
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{ugcHLref}}}|name="ugcHLref"}}
 +
}}
 +
| align="center" {{#switch: {{{wireHL}}}
 +
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
 +
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
 +
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{wireHLref}}}|name="wireHLref"}}
 +
}}
 
|-
 
|-
 
| align="center" colspan="9"| {{{description}}}
 
| align="center" colspan="9"| {{{description}}}

Revision as of 11:48, 16 August 2013

User:Maxim/Template:Class Weapon Table Header |- ! align="center" rowspan="2" | [[Image:{{{imgname}}}|link=http://wiki.teamfortress.com/wiki/{{{wikilink}}}]]
{{{itemquality}}}
[[{{{weaponname}}}]] | align="center" | align="center" | align="center" | align="center" | align="center" | align="center" | align="center" | align="center" | align="center" | align="center" |- | align="center" colspan="9"| {{{description}}}

|}

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