Home
Random
Log in
Settings
About the Deadlock Wiki
Search
Editing
Template
:
Hero card2/doc
Give feedback
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!
{{TS}} == Usage == This template is used in [[Template:Hero Navbox]]. It is called by [[Module:HeroData/nav]]. == Examples == <pre> {{Hero card2|Lash}} {{Hero card2|Lash|overrideDisplayName=Jacob}} {{Hero card2|Lash|overrideLinkTooltip=Abrams}} {{Hero card2|Lash|overrideLinkImage=Abrams}} {{Hero card2|Lash|overrideLinkClick=Abrams}} </pre> {{Hero card2|Lash}} {{Hero card2|Lash|overrideDisplayName=Jacob}} {{Hero card2|Lash|overrideLinkTooltip=Abrams}} {{Hero card2|Lash|overrideLinkImage=Abrams}} {{Hero card2|Lash|overrideLinkClick=Abrams}} <pre> {{Hero card2|Lash|cardSize=88}} {{Hero card2|Lash|textSize=13}} {{Hero card2|Lash|isHeroLabs=true}} </pre> {{Hero card2|Lash|cardSize=88}} {{Hero card2|Lash|textSize=13}} {{Hero card2|Lash|isHeroLabs=true}} <templatedata> { "params": { "heroName": { "label": "Hero Name", "description": "English name of the hero. If no overrides are used then the input value is used to: Set the name on the card (localization gets applied when appropriate), Set the image (heroName._vertical.png), Set the tooltip (localization gets applied when appropriate) and Set where the card links to when clicked (localized subpage get applied when appropriate)", "type": "string", "required": true, "suggestedvalues": ["Abrams"], "default": "Abrams", "aliases": ["1"] }, "cardSize": { "label": "Card Size", "description": "Size of the hero card. Dont put 'px' at the end", "type": "number", "default": "130", "suggestedvalues": ["80, 88"] }, "textSize": { "label": "Text Size", "description": "Size of the text on the card. Dont put 'px' at the end.", "type": "number", "default": "24", "suggestedvalues": ["13, 14"] }, "isHeroLabs": { "label": "Is Hero Labs", "description": "Shows a hero labs sticker on the card and hero labs text, if enabled.", "type": "boolean", "default": "false", "suggestedvalues": ["true","false"] }, "overrideDisplayName": { "label": "Override Display Name", "description": "Overrides the name that is displayed on the card.", "type": "string", "example": "Abrams" }, "overrideLinkTooltip": { "label": "Override Link Tooltip", "description": "Overrides the link from where the tooltip gets its info. Don't include localization subpage, the tooltip adds it automatically when appropriate.", "type": "string", "example": "Abrams" }, "overrideLinkImage": { "label": "Override Link Image", "description": "Overrides the link from where the hero card gets the image. '_vertical.png' is suffixed to the override string.", "type": "string", "example": "Abrams" }, "overrideLinkClick": { "label": "Override Link Click", "description": "Overrides where the hero card links to when clicked on. Localization subpage is NOT added automatically to the override string.", "type": "string", "example": "Abrams" } }, "description": " " } </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
Pages included on this page:
Template:Hero card2
(
edit
)
Template:Hero card2/styles.css
(
edit
)
Template:If lang
(
view source
) (⧼restriction-level-bot+⧽)
Template:Message box
(
edit
)
Template:TS
(
edit
)
Module:Dictionary
(
edit
)
Module:HeroData
(
edit
)
Module:Lang
(
edit
)
Module:Utilities
(
edit
)
Data:Dictionary
(
edit
)
Data:HeroData.json
(
view source
) (⧼restriction-level-bot+⧽)
Data:LangCodes.json
(
view source
) (⧼restriction-level-bot+⧽)
Data:Lang en.json
(
view source
) (⧼restriction-level-bot+⧽)