Editing
Template:Infobox stat/doc
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Overview== A hero stat infobox is created similar to the display seen in the shop when hovering over each stat category (Weapon, Vitality, Spirit). When hovered, a box appears to the right that contains a table with specified cell values, preferably containing an icon, stat prefix, value, postfix, and name. ===Examples=== <pre>{{Infobox_stat |box_name = CitadelCategoryWeapon |box_rgb = 213, 144, 63 |num_cols = 2 |cell_values = 800 MaxHealth,2 BaseHealthRegen,10 DPS }}</pre> <br>Outputs<br> {{Infobox_stat |box_name = CitadelCategoryWeapon |box_rgb = 213, 144, 63 |num_cols = 2 |cell_values = 800 MaxHealth,2 BaseHealthRegen,10 DPS }} <br>See [[Module:HeroData]] which creates all 3 for a given hero dynamically using their stats and scalings<br> ===Parameters=== box_name: See [[Data:Lang_en.json]] for all english localization keys; ensure the box_name is a key that can be localized<br> <templatedata> { "params": { "box_name": { "description": "Unlocalized name of the Infobox_stat which will be localized to both the label and the image. ", "example": "CitadelCategoryWeapon", "type": "string" }, "box_rgb": { "description": "RGB values for the box, comma separated. RGBA is not supported, as the alpha channel is modified by the template.", "example": "255,255,255", "type": "string" }, "num_cols": { "description": "Number of columns in the table.", "example": "3", "type": "number", "default": "3" }, "cell_values": { "description": "Number of cell values, comma separated (no space after comma). Rows are added automatically based on the number of cell values and columns.", "example": "800 MaxHealth,2 BaseHealthRegen,10 DPS", "type": "string" } }, "paramOrder": [ "box_name", "box_rgb", "num_cols", "cell_values" ] } </templatedata>
Summary:
Please note that all contributions to 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
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Discord community
Recent changes
Random page
Tools
What links here
Related changes
Special pages
Page information
Languages