Template:Hero card2/doc: Difference between revisions
Jump to navigation
Jump to search
m herolabs_text_size and sticker_size params |
cleanup |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Usage == | |||
This template <span style="color:grey;">[if you know how this template works, please explain how to use it and what function it should serve].</span> | |||
== Examples == | |||
<pre> | |||
{{Hero card2|name=Lash|link=Lash}} | |||
{{Hero card2|name=Jacob|link=Lash}} | |||
</pre> | |||
{{Hero card2|name=Lash|link=Lash}} | |||
{{Hero card2|name=Jacob|link=Lash}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 24: | Line 34: | ||
"label": "Text Size", | "label": "Text Size", | ||
"description": "Change if the hero name doesnt fit. Dont put px at the end.", | "description": "Change if the hero name doesnt fit. Dont put px at the end.", | ||
"type": " | "type": "number", | ||
"default": "11", | |||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"20, 11" | "20, 11" | ||
] | ] | ||
}, | }, | ||
"card_size": { | |||
"label": "Card Size", | "label": "Card Size", | ||
"description": "Size of the hero card. Dont put px at the end", | "description": "Size of the hero card. Dont put px at the end", | ||
"type": "string", | "type": "string", | ||
"default": "88", | |||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"132, 88" | "132, 88" | ||
] | ] | ||
}, | }, | ||
"sticker_size": { | |||
"label": "Sticker Size", | "label": "Sticker Size", | ||
"description": "Size of the Recommended/Hero Lab sticker that appears in the top right of hero cards.", | "description": "Size of the Recommended/Hero Lab sticker that appears in the top right of hero cards.", | ||
Line 50: | Line 60: | ||
"default": "30" | "default": "30" | ||
}, | }, | ||
"herolabs_text_size": { | |||
"label": "Hero Labs Text Size", | "label": "Hero Labs Text Size", | ||
"description": "Size of the Hero Labs text that appears for Hero Lab heroes.", | "description": "Size of the Hero Labs text that appears for Hero Lab heroes.", | ||
"example": "6", | "example": "6", | ||
"type": " | "type": "number", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"6", | "6", | ||
Line 78: | Line 88: | ||
"default": "false" | "default": "false" | ||
} | } | ||
} | }, | ||
"description": " " | |||
} | } | ||
</templatedata><includeonly>[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | </templatedata><includeonly>[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 20:39, 13 November 2024
Usage[edit source]
This template [if you know how this template works, please explain how to use it and what function it should serve].
Examples[edit source]
{{Hero card2|name=Lash|link=Lash}} {{Hero card2|name=Jacob|link=Lash}}
Parameter | Description | Type | Status | |
---|---|---|---|---|
Hero Portrait | Image | If not set. The hero portrait will default to "Name card.png" | String | optional |
Hero Name | name | Name of the hero. Also determines the wiki page, if no argument "link" has been used
| String | optional |
Hero Link | link | Determines the wiki page. If not used, wiki page link will be determined by "name" argument | String | optional |
Text Size | text_size | Change if the hero name doesnt fit. Dont put px at the end.
| Number | optional |
Card Size | card_size | Size of the hero card. Dont put px at the end
| String | optional |
Sticker Size | sticker_size | Size of the Recommended/Hero Lab sticker that appears in the top right of hero cards.
| String | optional |
Hero Labs Text Size | herolabs_text_size | Size of the Hero Labs text that appears for Hero Lab heroes.
| Number | optional |
Recommended for new players | recommended | Is this hero recommended for new players?
| Boolean | optional |
is hero experimental? | herolabs | Is the hero in hero labs
| Boolean | optional |