Difference between revisions of "Template:Metrics/Health"

From Team Fortress Wiki
Jump to: navigation, search
m (I think we can do it already.)
Line 1: Line 1:
 
{{#switch: {{lc:{{{C}}}}}
 
{{#switch: {{lc:{{{C}}}}}
 
   | scout    = {{#expr:
 
   | scout    = {{#expr:
                 125 +
+
                 {{Metrics/Base health|scout}} +
 
                 {{#switch: {{lc:{{{S}}}}}
 
                 {{#switch: {{lc:{{{S}}}}}
 
                   | pretty boy's pocket pistol = 15
 
                   | pretty boy's pocket pistol = 15
Line 16: Line 16:
 
               }}
 
               }}
  
   | soldier  = 200
+
   | soldier  = {{Metrics/Base health|soldier}}
  
   | pyro    = 175
+
   | pyro    = {{Metrics/Base health|pyro}}
  
 
   | demoman  = {{#expr:
 
   | demoman  = {{#expr:
                 175 +
+
                 {{Metrics/Base health|demoman}} +
 
                 {{#switch: {{lc:{{{P}}}}}
 
                 {{#switch: {{lc:{{{P}}}}}
 
                   | ali baba's wee booties
 
                   | ali baba's wee booties
Line 39: Line 39:
  
 
   | heavy    = {{#expr:
 
   | heavy    = {{#expr:
                 300 +
+
                 {{Metrics/Base health|heavy}} +
 
                 {{#switch: {{lc:{{{S}}}}}
 
                 {{#switch: {{lc:{{{S}}}}}
 
                   | dalokohs bar
 
                   | dalokohs bar
Line 52: Line 52:
  
 
   | engineer = {{#expr:
 
   | engineer = {{#expr:
                 125 +
+
                 {{Metrics/Base health|engineer}} +
 
                 {{#switch: {{lc:{{{M}}}}}
 
                 {{#switch: {{lc:{{{M}}}}}
 
                   | gunslinger = 25
 
                   | gunslinger = 25
Line 60: Line 60:
  
 
   | medic    = {{#expr:
 
   | medic    = {{#expr:
                 150 +
+
                 {{Metrics/Base health|medic}} +
 
                 {{#switch: {{lc:{{{M}}}}}
 
                 {{#switch: {{lc:{{{M}}}}}
 
                   | vita-saw = -10
 
                   | vita-saw = -10
Line 68: Line 68:
  
 
   | sniper  = {{#expr:
 
   | sniper  = {{#expr:
                 125 +
+
                 {{Metrics/Base health|sniper}} +
 
                 {{#switch: {{lc:{{{S}}}}}
 
                 {{#switch: {{lc:{{{S}}}}}
 
                   | darwin's danger shield = 25
 
                   | darwin's danger shield = 25
Line 76: Line 76:
  
 
   | spy      = {{#expr:
 
   | spy      = {{#expr:
                 125 +
+
                 {{Metrics/Base health|spy}} +
 
                 {{#switch: {{lc:{{{M}}}}}
 
                 {{#switch: {{lc:{{{M}}}}}
 
                   | conniver's kunai = -65
 
                   | conniver's kunai = -65

Revision as of 06:55, 12 August 2012

0

Template documentation [view] [edit] [history] [purge]

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