Template:WeaponCard/doc: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
Examples: updated
No edit summary
Line 25: Line 25:
         "weapon_name": {
         "weapon_name": {
"description": "In case the weapon name is different from the files"
"description": "In case the weapon name is different from the files"
}
},
},
    "no_description":{
            "description": "Remove description"
        }
    },
"format": "inline"
"format": "inline"
}
}
</templatedata>
</templatedata>
<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 22:05, 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

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