Template:Hero card2/doc: Difference between revisionsGive feedback
No edit summary |
mNo edit summary |
||
| Line 5: | Line 5: | ||
== Examples == | == Examples == | ||
<pre> | <pre> | ||
{{Hero card2| | {{Hero card2|heroName=Lash|link=Lash}} | ||
{{Hero card2| | {{Hero card2|heroName=Jacob|link=Lash}} | ||
</pre> | </pre> | ||
{{Hero card2| | {{Hero card2|heroName=Lash|link=Lash}} | ||
{{Hero card2| | {{Hero card2|heroName=Jacob|link=Lash}} | ||
heroName | |||
descriptions | |||
overrideLinkImage | |||
/ descripting vertical | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
" | "heroName": { | ||
"label": "Hero Name", | "label": "Hero Name", | ||
"description": " | "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", | "type": "string", | ||
"suggestedvalues": [ | "required": true, | ||
"suggestedvalues": ["Abrams"], | |||
"default": "Abrams", | |||
"default": "Abrams" | "aliases": ["1"] | ||
}, | }, | ||
" | "cardSize": { | ||
"label": " | "label": "Card Size", | ||
"description": " | "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": " | "description": "Size of the text on the card. Dont put 'px' at the end.", | ||
"type": "number", | "type": "number", | ||
"default": " | "default": "24", | ||
"suggestedvalues": [ | "suggestedvalues": ["13, 14"] | ||
}, | }, | ||
" | "isHeroLabs": { | ||
"label": " | "label": "Is Hero Labs", | ||
"description": " | "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", | "type": "string", | ||
" | "example": "Abrams" | ||
}, | }, | ||
" | "overrideLinkTooltip": { | ||
"label": " | "label": "Override Link Tooltip", | ||
"description": " | "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", | "type": "string", | ||
" | "example": "Abrams" | ||
}, | }, | ||
" | "overrideLinkImage": { | ||
"label": " | "label": "Override Link Image", | ||
"description": " | "description": "Overrides the link from where the hero card gets the image. '_vertical.png' is suffixed to the override string.", | ||
"type": "string", | |||
"type": " | "example": "Abrams" | ||
" | |||
}, | }, | ||
" | "overrideLinkClick": { | ||
"label": " | "label": "Override Link Click", | ||
"description": " | "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" | |||
"type": " | |||
" | |||
} | } | ||
}, | }, | ||
Revision as of 16:53, 22 May 2026
Usage
This template is used in Template:Hero Navbox. It is called by Module:HeroData/nav.
Examples
{{Hero card2|heroName=Lash|link=Lash}}
{{Hero card2|heroName=Jacob|link=Lash}}
heroName descriptions overrideLinkImage / descripting vertical
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Hero Name | heroName 1 | 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)
| String | required |
| Card Size | cardSize | Size of the hero card. Dont put 'px' at the end
| Number | optional |
| Text Size | textSize | Size of the text on the card. Dont put 'px' at the end.
| Number | optional |
| Is Hero Labs | isHeroLabs | Shows a hero labs sticker on the card and hero labs text, if enabled.
| Boolean | optional |
| Override Display Name | overrideDisplayName | Overrides the name that is displayed on the card.
| String | optional |
| Override Link Tooltip | overrideLinkTooltip | Overrides the link from where the tooltip gets its info. Don't include localization subpage, the tooltip adds it automatically when appropriate.
| String | optional |
| Override Link Image | overrideLinkImage | Overrides the link from where the hero card gets the image. '_vertical.png' is suffixed to the override string.
| String | optional |
| Override Link Click | overrideLinkClick | Overrides where the hero card links to when clicked on. Localization subpage is NOT added automatically to the override string.
| String | optional |
