Template:Hero card2/doc: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Mixorio (talk | contribs)
mNo edit summary
Sylphoid (talk | contribs)
cleanup
 
(7 intermediate revisions by 3 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 16: Line 26:
"default": "Abrams"
"default": "Abrams"
},
},
        "link": {
"link": {
"label": "Hero Link",
"label": "Hero Link",
"description": "Determines the wiki page. If not used, wiki page link will be determined by \"name\" argument",
"description": "Determines the wiki page. If not used, wiki page link will be determined by \"name\" argument",
"type": "string"
"type": "string"
},
},
"text-size": {
"text_size": {
"label": "Text Size",
"label": "Text Size",
"description": "Default is 24px. 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": "number",
"default": "11",
"suggestedvalues": [
"20, 11"
]
},
"card_size": {
"label": "Card Size",
"description": "Size of the hero card. Dont put px at the end",
"type": "string",
"type": "string",
"default": "88",
"suggestedvalues": [
"suggestedvalues": [
"24"
"132, 88"
]
]
},
"sticker_size": {
"label": "Sticker Size",
"description": "Size of the Recommended/Hero Lab sticker that appears in the top right of hero cards.",
"example": "30",
"type": "string",
"suggestedvalues": [
"30",
"56"
],
"default": "30"
},
"herolabs_text_size": {
"label": "Hero Labs Text Size",
"description": "Size of the Hero Labs text that appears for Hero Lab heroes.",
"example": "6",
"type": "number",
"suggestedvalues": [
"6",
"8"
],
"default": "6"
},
},
"recommended": {
"recommended": {
Line 33: Line 75:
"description": "Is this hero recommended for new players?",
"description": "Is this hero recommended for new players?",
"type": "boolean",
"type": "boolean",
"default": "false"
},
"herolabs": {
"label": "is hero experimental?",
"description": "Is the hero in hero labs",
"example": "false",
"type": "boolean",
"suggestedvalues": [
"true",
"false"
],
"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}}

Hero Labs

Lash

Hero Labs

Jacob

Template parameters

ParameterDescriptionTypeStatus
Hero PortraitImage

If not set. The hero portrait will default to "Name card.png"

Stringoptional
Hero Namename

Name of the hero. Also determines the wiki page, if no argument "link" has been used

Suggested values
Abrams
Default
Abrams
Stringoptional
Hero Linklink

Determines the wiki page. If not used, wiki page link will be determined by "name" argument

Stringoptional
Text Sizetext_size

Change if the hero name doesnt fit. Dont put px at the end.

Suggested values
20, 11
Default
11
Numberoptional
Card Sizecard_size

Size of the hero card. Dont put px at the end

Suggested values
132, 88
Default
88
Stringoptional
Sticker Sizesticker_size

Size of the Recommended/Hero Lab sticker that appears in the top right of hero cards.

Suggested values
30 56
Default
30
Example
30
Stringoptional
Hero Labs Text Sizeherolabs_text_size

Size of the Hero Labs text that appears for Hero Lab heroes.

Suggested values
6 8
Default
6
Example
6
Numberoptional
Recommended for new playersrecommended

Is this hero recommended for new players?

Default
false
Booleanoptional
is hero experimental?herolabs

Is the hero in hero labs

Suggested values
true false
Default
false
Example
false
Booleanoptional