Editing Template:WeaponCard/doc

Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
{{TS}}
==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}}
</pre>
</pre>
{{WeaponCard|Dynamo}}
{{WeaponCard|Dynamo}}
<pre>
{{WeaponCard|McGinnis}}
{{WeaponCard|key=hero_forge}}
</pre>
{{WeaponCard|key=hero_forge}}
<pre>
{{WeaponCard|key=hero_forge|weapon_name=Test Weapon}}
</pre>
{{WeaponCard|key=hero_forge|weapon_name=Test Weapon}}
<pre>
{{WeaponCard|key=hero_forge|weapon_name=Test Weapon|no_description=true}}
</pre>
{{WeaponCard|key=hero_forge|weapon_name=Test Weapon|no_description=true}}
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"1": {},
"1": {},
"key": {},
"ph": {}
"ph": {},
"weapon_name": {
"description": "In case the weapon name is different from the files"
},
"no_description": {
"description": "Remove description",
"type": "boolean",
"default": "true"
},
"no_falloff": {
"description": "Weapons with no damage falloff (Celeste)",
"type": "boolean",
"default": "true"
}
},
},
"format": "inline"
"format": "inline"
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Deadlock:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template