Difference between revisions of "Template:Ammo tool"

From Team Fortress Wiki
Jump to: navigation, search
m
m (Added colour and shadow; thx seb26)
Line 1: Line 1:
<includeonly><span style="font-family:TF2 Build; font-size:64px;">{{{1}}}</span>{{#ifeq: {{{2}}} | 0 | {{ns:}}
+
<includeonly><span style="font-family:TF2 Build; font-size:64px; color:#47402C; text-shadow:1px 1px 1px #47402C;">{{{1}}}</span>{{#ifeq: {{{2}}} | 0 | {{ns:}}
 
  | {{#ifeq: {{{2}}} | inf | [[File:Carried_inf.png|link=]]
 
  | {{#ifeq: {{{2}}} | inf | [[File:Carried_inf.png|link=]]
 
  | {{#switch: {{#expr: ({{{2}}}/100) mod 10}}
 
  | {{#switch: {{#expr: ({{{2}}}/100) mod 10}}

Revision as of 15:32, 3 August 2011

Documentation for Ammo tool

{{Ammo tool}} can display the amount of ammunition carried/loaded in a way resembling the indicator on the in-game HUD. It was designed to be used in weapon charts to improve the aesthetical features of the presentation.

Parameters

{{Ammo tool|integer value of ammo loaded|integer value of ammo carried (including 0 for weapons like Minigun or Flamethrower) OR string "inf" to indicate the carried ammo is unlimited (for weapons like Cow Mangler 5000 or Jarate)}}

Example usages

632

200

5

12200