Editing
Template
:
Infobox stat/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!
==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 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
Yamato
28m ago
路
Gammaton32
Yamato
29m ago
路
Gammaton32
Abrams
52m ago
路
Gammaton32
Damage Amplification
2h ago
路
Gammaton32
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