Difference between revisions of "Template:Ammo tool"

From Team Fortress Wiki
Jump to: navigation, search
m
m
 
(5 intermediate revisions by one other user not shown)
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:#3d3923; text-shadow:1px 1px 1px #b0ab9f; position: relative; top: 8px;">{{{1}}}</span>{{#switch: {{{2}}}
  | {{#ifeq: {{{2}}} | inf | [[File:Carried_inf.png|link=]]
+
| 0 = {{ns:}}
| {{#switch: {{#expr: ({{{2}}}/100) mod 10}}
+
  | inf = <span style="font-family:Arial Narrow; font-size:40px; color:#3d3923; text-shadow:1px 1px 1px #b0ab9f; position: relative; top: 8px;">∞</span>
| 1 = [[File:Carried_1.png|link=]]
+
| #default = <span style="font-family:tf2; font-size:34px; color:#3d3923; text-shadow:1px 1px 1px #b0ab9f; position: relative; top: 8px;">{{{2}}}</span>}}
| 2 = [[File:Carried_2.png|link=]]
 
| 3 = [[File:Carried_3.png|link=]]
 
| 4 = [[File:Carried_4.png|link=]]
 
| 5 = [[File:Carried_5.png|link=]]
 
| 6 = [[File:Carried_6.png|link=]]
 
| 7 = [[File:Carried_7.png|link=]]
 
| 8 = [[File:Carried_8.png|link=]]
 
| 9 = [[File:Carried_9.png|link=]]
 
}}{{#switch: {{#expr: ({{{2}}}/10) mod 10}}
 
| 1 = [[File:Carried_1.png|link=]]
 
| 2 = [[File:Carried_2.png|link=]]
 
| 3 = [[File:Carried_3.png|link=]]
 
| 4 = [[File:Carried_4.png|link=]]
 
| 5 = [[File:Carried_5.png|link=]]
 
| 6 = [[File:Carried_6.png|link=]]
 
| 7 = [[File:Carried_7.png|link=]]
 
| 8 = [[File:Carried_8.png|link=]]
 
| 9 = [[File:Carried_9.png|link=]]
 
| 0 = {{#ifexpr: ({{{2}}}/100) mod 10 > 0
 
| [[File:Carried_0.png|link=]] }}
 
}}{{#switch: {{#expr: {{{2}}} mod 10}}
 
| 1 = [[File:Carried_1.png|link=]]
 
| 2 = [[File:Carried_2.png|link=]]
 
| 3 = [[File:Carried_3.png|link=]]
 
| 4 = [[File:Carried_4.png|link=]]
 
| 5 = [[File:Carried_5.png|link=]]
 
| 6 = [[File:Carried_6.png|link=]]
 
| 7 = [[File:Carried_7.png|link=]]
 
| 8 = [[File:Carried_8.png|link=]]
 
| 9 = [[File:Carried_9.png|link=]]
 
| 0 = [[File:Carried_0.png|link=]]
 
}}}}}}
 
 
</includeonly><noinclude>{{doc begin}}
 
</includeonly><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.
 
{{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 ===
 
=== 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>
+
<code><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)''}}</nowiki></code>
  
 
=== Example usages ===
 
=== Example usages ===
Line 51: Line 19:
 
{{Ammo tool|12|200}}
 
{{Ammo tool|12|200}}
  
 +
{| class="wikitable grid" width="100%"
 +
! class="header" width="10%" | Wep
 +
! class="header" width="5%"  | Frag icon
 +
! class="header" width="5%"  | {{Tooltip|Ammo|Big digits - loaded; small digits - carried}}
 +
! class="header" width="10%" | Dmg
 +
! class="header" width="30%" | Importnt
 +
|-
 +
! {{Table icon|Grenade Launcher|Stock}}
 +
| align="center" | {{Icon killicon|weapon=Grenade Launcher}}
 +
| align="center" | {{Ammo tool|4|16}}
 +
| '''Base''': A lot
 +
'''[[Crit]]''': Much more
 +
|
 +
{{Info}}Shoot
 +
 +
{{Info}}Shoot
 +
 +
{{Info}}Shoot
 +
 +
{{Pro}}Profit!
 +
|-
 +
|}
 
[[Category:Formatting templates|Ammo tool]]
 
[[Category:Formatting templates|Ammo tool]]
[[Category:Image insertion templates|Ammo tool]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 18:59, 17 March 2022

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


Wep Frag icon Ammo Dmg Importnt
Grenade Launcher
Stock
Grenade Launcher
Killicon grenade launcher.png 416 Base: A lot

Crit: Much more

Pictogram info.png Shoot

Pictogram info.png Shoot

Pictogram info.png Shoot

Pictogram plus.png Profit!