Template:WeaponCard: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sylphoid (talk | contribs)
fix fonts, bold,
Sur (talk | contribs)
m removed hardcoded line height from weapon name
 
Line 21: Line 21:
</div>
</div>
|-
|-
| style="text-align:center; font-family: 'Retail Demo Bold',serif; font-weight:bold; color:#FFEFD7; height:20px; font-size:25px; line-height:8px;" | {{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|WeaponName|true}}
| style="text-align:center; font-family: 'Retail Demo Bold',serif; font-weight:bold; color:#FFEFD7; height:20px; font-size:25px;" | {{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|WeaponName|true}}
|-
|-
|
|

Latest revision as of 15:46, 6 November 2024

Template documentation [view] [edit] [history] [purge]

Usage[edit source]

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[edit source]

{{WeaponCard|Dynamo}}
{{WeaponCard|key=hero_forge}}
Weapon Stats
Falloff Range
20m - 58m
52 DPS
The Vonnegun
Medium Range Heavy Hitter Projectile
Weapon Stats
Falloff Range
20m - 58m
36 DPS
Services Rendered
Rapid Fire Medium Range
Increases fire rate as the guns spins up

No description.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

no description

Unknownoptional
keykey

no description

Unknownoptional
phph

no description

Unknownoptional