Difference between revisions of "Template:Metrics/Health"
(Added Civilian (begrudengly)) |
|||
Line 9: | Line 9: | ||
|sniper={{#expr:125+{{#switch:{{lc:{{{S}}}}}|darwin's danger shield=25|0}}}} | |sniper={{#expr:125+{{#switch:{{lc:{{{S}}}}}|darwin's danger shield=25|0}}}} | ||
|spy={{#expr:125+{{#switch:{{lc:{{{M}}}}}|conniver's kunai=-65|big earner=-25|0}}}} | |spy={{#expr:125+{{#switch:{{lc:{{{M}}}}}|conniver's kunai=-65|big earner=-25|0}}}} | ||
− | |||
|0}}<noinclude> | |0}}<noinclude> | ||
{{Template doc}} | {{Template doc}} | ||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 05:37, 23 February 2012
0
This template drops in a classes health, modified by settings that determine what the class has equipped (where appropriate). The C
argument is the only one required, and other arguments and values depend on the class. Defaults to generating 0
if the C
argument is unknown, to avoid causing downstream parsing failures, if used in a equation (such as Template:Math/Overheal).
Arguments
Argument | Meaning |
---|---|
C | Class name |
P | Primary weapon |
S | Secondary weapon |
M | Melee weapon |
H | Heads taken |
Valid argument settings
C | P | S | M | H |
---|---|---|---|---|
scout | sandman | |||
soldier | battalion's backup | |||
pyro | ||||
demoman | ali baba's wee booties bootlegger |
eyelander horseless headless horsemann's headtaker nessie's nine iron |
Positive integer | |
heavy | dalokohs bar fishcake |
|||
engineer | gunslinger | |||
medic | vita-saw | |||
sniper | ||||
spy | conniver's kunai big earner |