Difference between revisions of "Template:Ammo tool"

From Team Fortress Wiki
Jump to: navigation, search
(fix)
(Added documentation, final debugged version)
Line 66: Line 66:
 
| 9 = [[File:Carried_9.png|link=]]
 
| 9 = [[File:Carried_9.png|link=]]
 
| 0 = [[File:Carried_0.png|link=]]
 
| 0 = [[File:Carried_0.png|link=]]
}}}}}}
+
}}}}}}<noinclude>{{doc begin}}
 +
{{tl|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 ===
 +
<code><nowiki>{{</nowiki>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)''}}</code>
 +
 
 +
=== Example usages ===
 +
* {{tlx|Ammo tool|6|32}} generates:
 +
{{Ammo tool|6|32}}
 +
* {{tlx|Ammo tool|200|0}} generates:
 +
{{Ammo tool|200|0}}
 +
* {{tlx|Ammo tool|5|inf}} generates:
 +
{{Ammo tool|5|inf}}
 +
* {{tlx|Ammo tool|12|200}} generates:
 +
{{Ammo tool|12|200}}
 +
 
 +
[[Category:Formatting templates|Ammo tool]]
 +
[[Category:Image insertion templates|Ammo tool]]
 +
</noinclude>

Revision as of 20:46, 1 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