Template:WeaponCard/doc: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
No edit summary
Line 17: Line 17:
</pre>
</pre>
{{WeaponCard|key=hero_forge|weapon_name=Test Weapon}}
{{WeaponCard|key=hero_forge|weapon_name=Test Weapon}}
<pre>
{{WeaponCard|key=hero_forge|weapon_name=Test Weapon|no_description=true}}
</pre>
{{WeaponCard|key=hero_forge|weapon_name=Test Weapon|no_description=true}}
<templatedata>
<templatedata>
{
{

Revision as of 22:06, 2 May 2025

Usage

This template displays weapon stats.

Recommended to use key parameter for hero key instead of an unnamed 1st parameter of the english hero name. This allows localizing it to the current language in O(1) time complexity, as opposed to O(N).

Examples

{{WeaponCard|Dynamo}}
The Vonnegun
Medium Range
Heavy Hitter
Projectile
48 Damage Per Second
Falloff Range
20m ➞ 58m
{{WeaponCard|key=hero_forge}}
Services Rendered
Rapid Fire
Medium Range
72 Damage Per Second
Falloff Range
20m ➞ 58m
Increases fire rate as the guns spins up
{{WeaponCard|key=hero_forge|weapon_name=Test Weapon}}
Test Weapon
Rapid Fire
Medium Range
72 Damage Per Second
Falloff Range
20m ➞ 58m
Increases fire rate as the guns spins up
{{WeaponCard|key=hero_forge|weapon_name=Test Weapon|no_description=true}}
Test Weapon
Rapid Fire
Medium Range
72 Damage Per Second
Falloff Range
20m ➞ 58m

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

no description

Unknownoptional
keykey

no description

Unknownoptional
phph

no description

Unknownoptional
weapon_nameweapon_name

In case the weapon name is different from the files

Unknownoptional
no_descriptionno_description

Remove description

Unknownoptional