Template:Hero Card Nav: Difference between revisions
Jump to navigation
Jump to search
m Made the template use the same class as HeroCard2, so it now has animations! |
add docs |
||
Line 2: | Line 2: | ||
[[File:{{{Hero|Abrams}}} card.png|{{{size|50}}}px|link={{{Hero|Abrams}}}]] | [[File:{{{Hero|Abrams}}} card.png|{{{size|50}}}px|link={{{Hero|Abrams}}}]] | ||
<p style="position: absolute; bottom: 7px; text-align: center; background-color:rgba(0, 0, 0, 0.35); border-radius: 2px; width: 100%; font-weight: bold; text-shadow: 0px 0px 4px black, 0px 0px 4px black, 0px 0px 4px black; font-size: {{{font size|9}}}px; letter-spacing: 0.5px; margin: 0; text-transform: uppercase; pointer-events: none;">[[{{{Hero|Abrams}}}|<span style="color:#FFEFD7">{{{Hero|Abrams}}}</span>]]</p> | <p style="position: absolute; bottom: 7px; text-align: center; background-color:rgba(0, 0, 0, 0.35); border-radius: 2px; width: 100%; font-weight: bold; text-shadow: 0px 0px 4px black, 0px 0px 4px black, 0px 0px 4px black; font-size: {{{font size|9}}}px; letter-spacing: 0.5px; margin: 0; text-transform: uppercase; pointer-events: none;">[[{{{Hero|Abrams}}}|<span style="color:#FFEFD7">{{{Hero|Abrams}}}</span>]]</p> | ||
</div></onlyinclude> | </div></onlyinclude><noinclude>{{Documentation}}</noinclude> | ||
<noinclude> | |||
</noinclude> |
Revision as of 17:52, 3 October 2024
Usage
This template is used in the navbox.
Examples
{{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 |