Difference between revisions of "Template:Metrics/Speed/doc"

From Team Fortress Wiki
Jump to: navigation, search
(Added the Pyro)
m (Missing arguments added)
Line 1: Line 1:
This template drops in a class's speed, modified by settings that determine what the class has equipped (where appropriate).  The <code>C</code> argument is the only one required, and other arguments and values depend on the class. The <code>W</code> argument, if defined, means the value returned is modified by the [[Disciplinary Action]].  
+
This template drops in a class's speed, modified by settings that determine what the class has equipped (where appropriate).  The <code>C</code> argument is the only one required. The <code>A</code> argument indicates the action the player is taking, and other arguments and values depend on the class. The <code>W</code> argument, if defined, means the value returned is modified by being under the [[Disciplinary Action]] effect.  
  
 
Template defaults to <code>0</code> if the <code>C</code> argument is unknown, to avoid causing downstream parsing failures if used in an equation.
 
Template defaults to <code>0</code> if the <code>C</code> argument is unknown, to avoid causing downstream parsing failures if used in an equation.
Line 10: Line 10:
 
|-
 
|-
 
| C || Class name
 
| C || Class name
 +
|-
 +
| A || Action
 
|-
 
|-
 
| W || ''If under [[Disciplinary Action]] effect''
 
| W || ''If under [[Disciplinary Action]] effect''
Line 24: Line 26:
 
|-
 
|-
 
| H || Health ([[Soldier]])<br>Heads taken ([[Demoman]])
 
| H || Health ([[Soldier]])<br>Heads taken ([[Demoman]])
 +
|-
 +
| T || Triggered Ability
 
|}
 
|}
  
Line 30: Line 34:
 
|-
 
|-
 
! class = "header" | C
 
! class = "header" | C
 +
! class = "header" | A
 
! class = "header" | P
 
! class = "header" | P
 
! class = "header" | S
 
! class = "header" | S
Line 36: Line 41:
 
! class = "header" | B
 
! class = "header" | B
 
! class = "header" | H
 
! class = "header" | H
 +
! class = "header" | T
 
|-
 
|-
| scout || baby face's blaster || crit-a-cola || ||  || ''Positive real'' ||
+
| scout || rowspan="9" | back<br>crouch<br>swim || baby face's blaster || crit-a-cola || ||  || ''Positive real'' || ||
 
|-
 
|-
| soldier || colspan="6" | ''Not Yet Implemented''
+
| soldier || colspan="7" | ''Not Yet Implemented''
 
|-
 
|-
| pyro || || || || gas jockey's gear || ||
+
| pyro || || || || gas jockey's gear || || ||
 
|-
 
|-
| demoman || colspan="6" | ''Not Yet Implemented''
+
| demoman || colspan="7" | ''Not Yet Implemented''
 
|-
 
|-
| heavy || colspan="6" | ''Not Yet Implemented''
+
| heavy || colspan="7" | ''Not Yet Implemented''
 
|-
 
|-
| engineer || colspan="6" | ''Not Yet Implemented''
+
| engineer || colspan="7" | ''Not Yet Implemented''
 
|-
 
|-
| medic || colspan="6" | ''Not Yet Implemented''
+
| medic || colspan="7" | ''Not Yet Implemented''
 
|-
 
|-
| sniper || colspan="6" | ''Not Yet Implemented''
+
| sniper || colspan="7" | ''Not Yet Implemented''
 
|-
 
|-
| spy || || || || || ||
+
| spy || || || || || || ||
 
|}
 
|}
  

Revision as of 02:11, 25 July 2012

This template drops in a class's speed, modified by settings that determine what the class has equipped (where appropriate). The C argument is the only one required. The A argument indicates the action the player is taking, and other arguments and values depend on the class. The W argument, if defined, means the value returned is modified by being under the Disciplinary Action effect.

Template defaults to 0 if the C argument is unknown, to avoid causing downstream parsing failures if used in an equation.

Arguments

Argument Meaning
C Class name
A Action
W If under Disciplinary Action effect
P Primary weapon
S Secondary weapon
M Melee weapon
G Item set (G stands for Group, synonym of set)
B Boost amount (Scout)
H Health (Soldier)
Heads taken (Demoman)
T Triggered Ability

Valid argument settings

C A P S M G B H T
scout back
crouch
swim
baby face's blaster crit-a-cola Positive real
soldier Not Yet Implemented
pyro gas jockey's gear
demoman Not Yet Implemented
heavy Not Yet Implemented
engineer Not Yet Implemented
medic Not Yet Implemented
sniper Not Yet Implemented
spy

Sub-templates The speed values for each class are stored in sub-templates, due to overall complexity.