Editing
Template
:
HeroData/doc
(section)
Give feedback
Jump to navigation
Jump to search
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.
Anti-spam check. Do
not
fill this in!
== π‘ Tips == * '''Hero Names:''' Most functions accept EITHER the internal hero key (e.g., <code>hero_atlas</code>) OR the display name (e.g., <code>Abrams</code>). The <code>tag</code> function ONLY accepts display names (e.g., <code>Abrams</code>, <code>Lady Geist</code>). * '''Significant Figures:''' The optional rounding parameter uses significant figures, not decimal places. <code>2</code> turns <code>1250</code> into <code>1300</code> and <code>0.125</code> into <code>0.13</code>. * '''Nested Stats:''' The module automatically checks multiple locations for stats (top-level β Weapon β AltFire), so you don't need to specify where the stat is located. * '''Weapon Types:''' By default, the <code>list</code> function returns localized, human-readable names. This is almost always what you want! <templatedata> { "description": "Displays hero stats and information from game files. Use Data:HeroData.json to find available stats.", "params": { "1": { "label": "Function or Hero Name", "description": "Either a function name (altfire, list, scalar, tag) OR the hero's name/key when getting stats (e.g., Abrams or hero_atlas).", "type": "string", "required": true, "example": "Abrams", "suggestedvalues": ["altfire", "list", "scalar", "tag"] }, "2": { "label": "Hero Name or Stat Name", "description": "The hero's name/key (if param 1 is a function) OR the stat name to retrieve (if param 1 is a hero name).", "type": "string", "required": false, "example": "MaxHealth" }, "3": { "label": "Stat Name, Index, or Options", "description": "Depends on function: stat name for altfire/scalar, list name for list function, tag number for tag function, or sig_figs/localize for default function.", "type": "string", "required": false }, "4": { "label": "Additional Parameter", "description": "Additional parameter for specific functions (e.g., list index, sig_figs for altfire/scalar).", "type": "string", "required": false }, "5": { "label": "Localization", "description": "For list function: set to 'false' to get raw internal keys instead of localized names (defaults to 'true'). For scalar function: sig_figs or localize option.", "type": "string", "required": false, "default": "true" } }, "format": "inline" } </templatedata> <includeonly> [[Category:Templates]] </includeonly><noinclude> [[Category:Template documentation]] </noinclude>
Summary:
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
Navigation menu
Personal tools
Create account
Log in
associated-pages
Template
Discussion
English
Views
Read
Edit source
History
Tools
Search
Discord
Discord
Navigation
Main page
About us
Random page
Special pages
Recent changes
Damage Amplification
7m ago
Β·
Gammaton32
Grey Talon
3h ago
Β·
NotVeryTerse
Damage Amplification
4h ago
Β·
Gammaton32
Vindicta/Voice lines
5h ago
Β·
Mr. Mindish
Show more...
Interface Admin
Common CSS
Vector CSS
Minerva CSS
Citizen CSS
Brown theme CSS
Gadgets
Gadgets definition
Editing
How to edit
Style guide
All guides
New files
Unresolved feedback
Tools
What links here
Related changes
Page information