Editing Template:Hero card2/doc

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.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
{{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>
<templatedata>
{
{
"params": {
"params": {
"heroName": {
"Image": {
"label": "Hero Portrait",
"description": "If not set. The hero portrait will default to \"Name card.png\"",
"type": "string"
},
"name": {
"label": "Hero Name",
"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)",
"description": "Name of the hero. Also determines the wiki page, if no argument \"link\" has been used",
"type": "string",
"type": "string",
"required": true,
"suggestedvalues": [
"suggestedvalues": ["Abrams"],
"Abrams"
"default": "Abrams",
],
"aliases": ["1"]
"default": "Abrams"
},
"link": {
"label": "Hero Link",
"description": "Determines the wiki page. If not used, wiki page link will be determined by \"name\" argument",
"type": "string"
},
},
"cardSize": {
"text_size": {
"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",
"label": "Text Size",
"description": "Size of the text on the card. Dont put 'px' at the end.",
"description": "Change if the hero name doesnt fit. Dont put px at the end.",
"type": "number",
"type": "number",
"default": "24",
"default": "11",
"suggestedvalues": ["13, 14"]
"suggestedvalues": [
"20, 11"
]
},
},
"isHeroLabs": {
"card_size": {
"label": "Is Hero Labs",
"label": "Card Size",
"description": "Shows a hero labs sticker on the card and hero labs text, if enabled.",
"description": "Size of the hero card. Dont put px at the end",
"type": "boolean",
"type": "string",
"default": "false",
"default": "88",
"suggestedvalues": ["true","false"]
"suggestedvalues": [
"132, 88"
]
},
},
"overrideDisplayName": {
"sticker_size": {
"label": "Override Display Name",
"label": "Sticker Size",
"description": "Overrides the name that is displayed on the card.",
"description": "Size of the Recommended/Hero Lab sticker that appears in the top right of hero cards.",
"example": "30",
"type": "string",
"type": "string",
"example": "Abrams"
"suggestedvalues": [
"30",
"56"
],
"default": "30"
},
},
"overrideLinkTooltip": {
"herolabs_text_size": {
"label": "Override Link Tooltip",
"label": "Hero Labs Text Size",
"description": "Overrides the link from where the tooltip gets its info. Don't include localization subpage, the tooltip adds it automatically when appropriate.",
"description": "Size of the Hero Labs text that appears for Hero Lab heroes.",
"type": "string",
"example": "6",
"example": "Abrams"
"type": "number",
"suggestedvalues": [
"6",
"8"
],
"default": "6"
},
},
"overrideLinkImage": {
"recommended": {
"label": "Override Link Image",
"label": "Recommended for new players",
"description": "Overrides the link from where the hero card gets the image. '_vertical.png' is suffixed to the override string.",
"description": "Is this hero recommended for new players?",
"type": "string",
"type": "boolean",
"example": "Abrams"
"default": "false"
},
},
"overrideLinkClick": {
"herolabs": {
"label": "Override Link Click",
"label": "is hero experimental?",
"description": "Overrides where the hero card links to when clicked on. Localization subpage is NOT added automatically to the override string.",
"description": "Is the hero in hero labs",
"type": "string",
"example": "false",
"example": "Abrams"
"type": "boolean",
"suggestedvalues": [
"true",
"false"
],
"default": "false"
}
}
},
},
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