Template:WeaponCard/doc: Difference between revisions
Jump to navigation
Jump to search
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>" |
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| | {{WeaponCard|key=hero_forge}} | ||
</pre> | </pre> | ||
{{WeaponCard|Dynamo}} | {{WeaponCard|Dynamo}} | ||
{{WeaponCard| | {{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 | |||
Services Rendered | |||
| |||
Increases fire rate as the guns spins up
|
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | no description | Unknown | optional |
key | key | no description | Unknown | optional |
ph | ph | no description | Unknown | optional |