Template:Hero Card Nav/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "==Usage== This template is used in the navbox. ==Example== <pre> {{Hero Card Nav|Abrams}} {{Hero Card Nav|Hero=McGinnis}} </pre> {{Hero Card Nav|Abrams}} {{Hero Card Nav|Hero=McGinnis}} <templatedata> { "params": { "Hero": { "description": "Which Hero this is for", "example": "Abrams", "default": "Abrams" }, "size": { "description": "Image size, adjust if using elsewhere", "example": "50", "type": "number", "default": "50" }, "font size":..." |
m Alt example with localization |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Usage== | == Usage == | ||
This template is used in the navbox. | This template is used in the navbox. | ||
== | == Examples == | ||
<pre> | <pre> | ||
{{Hero Card Nav| | {{Hero Card Nav|Mirage}} | ||
{{Hero Card Nav}} | |||
{{Hero Card Nav|Hero=McGinnis}} | {{Hero Card Nav|Hero=McGinnis}} | ||
{{Hero Card Nav|Mo & Krill|72}} | |||
{{Hero Card Nav|Hero=McGinnis|Alt={{#invoke:Lang|get_string|hero_forge|lang_code_override=zh-hant|fallback_str=en}}}} | |||
</pre> | </pre> | ||
{{Hero Card Nav| | {{Hero Card Nav|Mirage}} | ||
{{Hero Card Nav}} | |||
{{Hero Card Nav|Hero=McGinnis}} | {{Hero Card Nav|Hero=McGinnis}} | ||
{{Hero Card Nav|Mo & Krill|72}} | |||
{{Hero Card Nav|Hero=McGinnis|Alt={{#invoke:Lang|get_string|hero_forge|lang_code_override=zh-hant|fallback_str=en}}}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 15: | Line 21: | ||
"description": "Which Hero this is for", | "description": "Which Hero this is for", | ||
"example": "Abrams", | "example": "Abrams", | ||
"default": "Abrams" | "default": "Abrams", | ||
"aliases": [ | |||
"1" | |||
], | |||
"type": "string" | |||
}, | |||
"Alt": { | |||
"description": "Alternate name for the hero to display, typically the localized name", | |||
"example": "Abrams", | |||
"default": "Abrams", | |||
"type": "string" | |||
}, | }, | ||
"size": { | "size": { | ||
Line 21: | Line 37: | ||
"example": "50", | "example": "50", | ||
"type": "number", | "type": "number", | ||
"default": " | "default": "55", | ||
"aliases": [ | |||
"2" | |||
] | |||
}, | }, | ||
"font size": { | "font size": { | ||
"description": "Font size, defaults to | "description": "Font size, defaults to 9", | ||
"type": "number", | "type": "number", | ||
"default": " | "default": "9" | ||
} | } | ||
}, | }, | ||
Line 32: | Line 51: | ||
"paramOrder": [ | "paramOrder": [ | ||
"Hero", | "Hero", | ||
"Alt", | |||
"size", | "size", | ||
"font size" | "font size" | ||
] | ], | ||
"format": "inline" | |||
} | } | ||
</templatedata><noinclude>[[Category:Template documentation]]</noinclude> | </templatedata><noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 23:39, 5 November 2024
Usage[edit source]
This template is used in the navbox.
Examples[edit source]
{{Hero Card Nav|Mirage}} {{Hero Card Nav}} {{Hero Card Nav|Hero=McGinnis}} {{Hero Card Nav|Mo & Krill|72}} {{Hero Card Nav|Hero=McGinnis|Alt={{#invoke:Lang|get_string|hero_forge|lang_code_override=zh-hant|fallback_str=en}}}}
A smaller type of hero card for use primarily in navboxes
Parameter | Description | Type | Status | |
---|---|---|---|---|
Hero | Hero 1 | Which Hero this is for
| String | optional |
Alt | Alt | Alternate name for the hero to display, typically the localized name
| String | optional |
size | size 2 | Image size, adjust if using elsewhere
| Number | optional |
font size | font size | Font size, defaults to 9
| Number | optional |