Template:WeaponCard/doc: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sylphoid (talk | contribs)
Created page with "==Usage== This template displays weapon stats. ==Examples== <pre> {{WeaponCard|Dynamo}} {{WeaponCard|McGinnis}} </pre> {{WeaponCard|Dynamo}} {{WeaponCard|McGinnis}} <templatedata> { "params": { "1": {}, "ph": {} }, "format": "inline" } </templatedata> <noinclude>Category:Template documentation</noinclude>"
 
Sur (talk | contribs)
m forge (mcginnis) for example instead of atlas (abrams)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
==Usage==
==Usage==
This template displays weapon stats.
This template displays weapon stats.
Recommended to use <code>key</code> 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==
==Examples==
<pre>
<pre>
{{WeaponCard|Dynamo}}
{{WeaponCard|Dynamo}}
{{WeaponCard|McGinnis}}
{{WeaponCard|key=hero_forge}}
</pre>
</pre>
{{WeaponCard|Dynamo}}
{{WeaponCard|Dynamo}}
{{WeaponCard|McGinnis}}
{{WeaponCard|key=hero_forge}}
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"1": {},
"1": {},
        "key": {},
"ph": {}
"ph": {}
},
},

Latest revision as of 02:16, 13 October 2024

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
22m - 58m
52 DPS
The Vonnegun
Medium Range Heavy Hitter Projectile
Weapon Stats
Falloff Range
22m - 58m
36 DPS
Services Rendered
Rapid Fire Medium Range
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