Editing
Module:HeroData/nav/doc
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= Generates hero navigation cards =Functions= ==get_hero_nav_cards== For [[Template:Hero Navbox]] on [[Heroes]], individual hero pages like [[Abrams]], and the home page. ===Examples=== First with debug_mode on, to help visualize what the output's source looks like. <pre> {{#invoke:HeroData/nav|get_hero_nav_cards |in_herolabs=true |text_size=11 |card_size=card_size|88 |sticker_size=sticker_size|30 |herolabs_text_size=herolabs_text_size|6 |debug_mode=true }}</pre> {{#invoke:HeroData/nav|get_hero_nav_cards |in_herolabs=true |text_size=11 |card_size=88 |sticker_size=30 |herolabs_text_size=6 |debug_mode=true }} Now with debug_mode defaulted to false (off) to see actual visual output. <pre> {{#invoke:HeroData/nav|get_hero_nav_cards |in_herolabs=true |text_size=11 |card_size=88 |sticker_size=30 |herolabs_text_size=6 }} </pre> {{#invoke:HeroData/nav|get_hero_nav_cards |in_herolabs=true |text_size=11 |card_size=88 |sticker_size=30 |herolabs_text_size=6 }} ===Parameters=== * '''text_size''' - Font size of the hero name * '''card_size''' - Size of the hero card * '''sticker_size''' - Size of the Recommended or Hero lab stickers that appear in the top right corner * '''herolabs_text_size''' - Font size of the 'Hero Labs' text that appears for heroes in Hero Labs * '''debug_mode''' - (OPTIONAL) Defaults to false. With true, the output is raw wikitext source that isn't processed, allowing to see more clearly what is ran. '''debug_mode''' is the only optional parameter. All other parameters are required. [[Template:Hero card2]] utilizes this with some default values, see there for suggested values.
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
Templates used on this page:
Data:Dictionary
(
edit
)
Data:HeroData.json
(
edit
)
Data:LangCodes.json
(
edit
)
Data:Lang en.json
(
edit
)
Template:Hero card2
(
edit
)
Module:Dictionary
(
edit
)
Module:HeroData/nav
(
edit
)
Module:Lang
(
edit
)
Module:Utilities
(
edit
)
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Module
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