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

From comp.tf
Jump to navigation Jump to search
m
m
 
(65 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>{{User:Maxim/Template:Class Weapon Table Header}}</noinclude>
+
<includeonly>|-
|-
+
! style="border-right: hidden; width: 1px" rowspan="2" |
! align="center" rowspan="2" | [[Image:{{{imgname}}}|link=http://wiki.teamfortress.com/wiki/{{{wikilink}}}]]<br /><small>'''{{{itemquality}}}'''</small><br />'''[[{{{weaponname}}}]]'''
+
! style="border-right: hidden; width: 10px" rowspan="2" |
| align="center" {{#switch: {{{cevo6s}}}
+
! style="border-right: hidden; width: 1px" rowspan="2" |
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
! rowspan="2" style="width: 100px;" | [[Image:{{{weaponname}}}.png|120px|link=http://wiki.teamfortress.com/wiki/{{#if:{{{link|}}}|{{{link|}}}|{{{weaponname|}}}}}]]<br />'''[http://wiki.teamfortress.com/wiki/{{#if:{{{link|}}}|{{{link|}}}|{{{weaponname|}}}}} {{{weaponname}}}]'''
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
! style="border-left: hidden; width: 1px" rowspan="2" |
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{cevo6sref}}}|name="cevo6sref"}}
+
! style="border-left: hidden; width: 10px" rowspan="2" |
}}
+
! style="border-left: hidden; width: 1px" rowspan="2" |
| align="center" {{#switch: {{{esea6s}}}
+
| align="center" height="5px" {{#switch: {{{ugc4s}}}
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
| true = bgcolor="LightGreen" {{!}} Allowed
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
| false = bgcolor="IndianRed" {{!}} <font color="white"> Banned </font>  
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{esea6sref}}}|name="esea6sref"}}
+
| maybe = bgcolor="Gold" {{!}} Depends {{#tag:ref|{{{ugc4s}}}|name="ugc4s"}}
}}
+
| always = bgcolor="#c9d7e8" {{!}} Always
| 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}}}
+
| align="center" height="5px" {{#switch: {{{6s}}}
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
| true = bgcolor="LightGreen" {{!}} Allowed
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
| false = bgcolor="IndianRed" {{!}} <font color="white"> Banned </font>  
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{ozf6sref}}}|name="ozf6sref"}}
+
| maybe = bgcolor="Gold" {{!}} Depends {{#tag:ref|{{{ugc6sref}}}|name="ugc6sref"}}
 +
| always = bgcolor="#c9d7e8" {{!}} Always
 
}}
 
}}
| align="center" {{#switch: {{{ugc6s}}}
+
| align="center" height="5px" {{#switch: {{{rgl6s}}}
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
| true = bgcolor="LightGreen" {{!}} Allowed
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
| false = bgcolor="IndianRed" {{!}} <font color="white"> Banned </font>  
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{ugc6sref}}}|name="ugc6sref"}}
+
| maybe = bgcolor="Gold" {{!}} Depends {{#tag:ref|{{{rgl6sref}}}|name="rgl6sref"}}
 +
| always = bgcolor="#c9d7e8" {{!}} Always
 
}}
 
}}
| align="center" {{#switch: {{{cevoHL}}}
+
| align="center" height="5px" {{#switch: {{{ugchl}}}
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
| true = bgcolor="LightGreen" {{!}} Allowed
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
| false = bgcolor="IndianRed" {{!}} <font color="white"> Banned </font>  
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{cevoHLref}}}|name="cevoHLref"}}
+
| maybe = bgcolor="Gold" {{!}} Depends {{#tag:ref|{{{ugchlref}}}|name="ugchlref"}}
 +
| always = bgcolor="#c9d7e8" {{!}} Always
 
}}
 
}}
| align="center" {{#switch: {{{etf2lHL}}}
+
| align="center" height="5px" {{#switch: {{{rglhl}}}
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
| true = bgcolor="LightGreen" {{!}} Allowed
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
| false = bgcolor="IndianRed" {{!}} <font color="white"> Banned </font>  
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{etf2lHLref}}}|name="etf2lHLref"}}
+
| maybe = bgcolor="Gold" {{!}} Depends {{#tag:ref|{{{rglhlref}}}|name="rglhlref"}}
 +
| always = bgcolor="#c9d7e8" {{!}} Always
 
}}
 
}}
| align="center" {{#switch: {{{ozfHL}}}
+
| align="center" height="5px" {{#switch: {{{etf2lhl}}}
| true = bgcolor="indianred" {{!}} <font color="white"> Banned </font>
+
| true = bgcolor="LightGreen" {{!}} Allowed
| false = bgcolor="lightgreen" {{!}} <font color="black"> Allowed </font>
+
| false = bgcolor="IndianRed" {{!}} <font color="white"> Banned </font>  
| maybe = bgcolor="yellow" {{!}} <font color="black"> Depends</font> {{#tag:ref|{{{ozfHLref}}}|name="ozfHLref"}}
+
| maybe = bgcolor="Gold" {{!}} Depends {{#tag:ref|{{{etf2lhlref}}}|name="etf2lhlref"}}
}}
+
| always = bgcolor="#c9d7e8" {{!}} Always
| 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="10"| {{{description}}}
+
| align="center" colspan="6" style="width: 1000px;" | {{{description}}}</includeonly><noinclude>
<noinclude>
+
{{Documentation}}
{{Template:Class Weapon Table End}}
 
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
 
<pre>
 
{{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!
 
}}
 
</pre>
 
=== Displays ===
 
{|
 
{{User:Maxim/Template:Class Weapon Table Row
 
|weaponname = Natascha
 
|itemquality = Stock
 
|wikilink = Brass_Beast
 
|imgname = 128px-Fists.png
 
|cevo6s = maybe
 
|cevo6sref = cevoref
 
|esea6s = maybe
 
|esea6sref = esearef
 
|etf2l6s = maybe
 
|etf2l6sref = etf2lref
 
|ozf6s = maybe
 
|ozf6sref = ozfref
 
|ugc6s = maybe
 
|ugc6sref = ugc reason like below
 
|cevoHL = maybe
 
|cevoHLref = cevoref
 
|etf2lHL = maybe
 
|etf2lHLref = this is a test description of why this item has certain conditions associated with its use in this league.
 
|ozfHL = maybe
 
|ozfHLref = ozfref
 
|ugcHL = maybe
 
|ugcHLref = ugcref
 
|wireHL = maybe
 
|wireHLref = wireref
 
|description = SEY! SEY!
 
}}
 
|}
 
<references />
 
 
</noinclude>
 
</noinclude>

Latest revision as of 01:28, 24 September 2020

(view - edit) Documentation

Must be used with Template:Class Weapon Table Header and Template:Class Weapon Table End for it to look as desired. See Template:Class Weapon Table Header for an example.

Usage

Easily shows whether a weapon is allowed, banned, or selectively allowed.

The values 'true', 'false', 'maybe' denote whether a weapon is allowed, not allowed, or selectively allowed in a specific league.

For the leagues designated 'maybe' (sometimes allowed), you add another item below it with the letters 'ref' after the name of the league. You can then specify the circumstances in which the weapon is allowed. If there is no references section, create one or the template will fail.

To create a references section in any given page, insert <references/> on a new line at the bottom of a page. Unless there are actual references to other articles, or posts or pages, give the section the heading 'Notes'.

Variables

|weaponname= name of the weapon |description= Information about the usage of the weapon. Strategy info.

For the following fields, type: true, if the weapon is allowed in that league, false, if the weapon is not allowed. maybe, if the weapon is selectively allowed.

For the leagues designated 'maybe' (sometimes allowed), you add another item below it with the letters 'ref' after the name of the league. You can then specify a reason for why that weapon is sometimes allowed in that league, that will be found in the references section of that page. See Usage for an example of how to use 'maybe'.

|ugc4s= for UGC 4v4 |6s= for the Global Whitelist |rgl6s= for RGL 6v6 |ugchl= for UGC Highlander |rglhl=for RGL Highlander |etf2lhl= for ETF2L Highlander

Example

{{Template:Class Weapon Table Header}}
{{Template:Class Weapon Table Row
|weaponname = Natascha
|description = INFO HERE! INFO HERE!
|ugc4s = false
|ugc6s = false
|6s = maybe
|6sref = Exemplar reference.
|rgl6s = true
|ugchl = true
|etf2lhl = false
|rglhl = false
}}
{{Template:Class Weapon Table End}}

Displays:

Weapon 4v4 6v6 Highlander
UGC-Icon2.png UGC United Nations Global Whitelist RGL Icon.png RGL UGC-Icon2.png UGC RGL Icon.png RGL ETF2L-Icon2.png ETF2L
Natascha.png
Natascha
Banned Depends [1] Allowed Allowed Banned Banned
INFO HERE! INFO HERE!


References

  1. {{{ugc6sref}}}

See also