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 updated to include using key param
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_atlas}}
</pre>
</pre>
{{WeaponCard|Dynamo}}
{{WeaponCard|Dynamo}}
{{WeaponCard|McGinnis}}
{{WeaponCard|key=hero_atlas}}
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"1": {},
"1": {},
        "key": {},
"ph": {}
"ph": {}
},
},

Revision as of 21:27, 11 October 2024

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}}
{{WeaponCard|key=hero_atlas}}
Weapon Stats
Falloff Range
22m - 58m
52 DPS
The Vonnegun
Medium Range Heavy Hitter Projectile
Weapon Stats
Falloff Range
20m - 46m
70 DPS
Case Closed
Spreadshot Close Range
Reloads single shells at a time. Can be interrupted

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

no description

Unknownoptional
keykey

no description

Unknownoptional
phph

no description

Unknownoptional