Template:Hero card2: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<div class="HeroCard2" style="display:inline-block; border-radius: 8px; overflow:hidden; position: relative; background-image: linear-gradient(#A69885, #72695A); width: 132px; height: 179px; box-shadow: 5px 5px 12px #00000090; transition: 0.1s transform ease-in-out;"> | <div class="HeroCard2" style="display:inline-block; border-radius: 8px; overflow:hidden; position: relative; background-image: linear-gradient(#A69885, #72695A); width: 132px; height: 179px; box-shadow: 5px 5px 12px #00000090; transition: 0.1s transform ease-in-out;"> | ||
<span>[[File:{{{Image|{{{name|Abrams}}}}}} card.png|132px|link= | <span>[[File:{{{Image|{{{name|Abrams}}}}}} card.png|132px|link={{{link|{{{name|Abrams}}}}}}]]</span> | ||
<p style="position: absolute; bottom: 5px; text-align: center; width: 100%; font-weight: bold; font-family: 'Forevs Demo', 'PT Serif','Palatino','Georgia',serif; color: #FFEFD7; text-shadow: 0px 0px 8px black, 0px 0px 8px black, 0px 0px 8px black; font-size: {{{text-size|24}}}px; letter-spacing: 0.5px; margin: 0; text-transform: uppercase; text-overflow: ellipsis; pointer-events: none;">{{{name|Abrams}}}</p> | <p style="position: absolute; bottom: 5px; text-align: center; width: 100%; font-weight: bold; font-family: 'Forevs Demo', 'PT Serif','Palatino','Georgia',serif; color: #FFEFD7; text-shadow: 0px 0px 8px black, 0px 0px 8px black, 0px 0px 8px black; font-size: {{{text-size|24}}}px; letter-spacing: 0.5px; margin: 0; text-transform: uppercase; text-overflow: ellipsis; pointer-events: none;">{{{name|Abrams}}}</p> | ||
<div style="display: {{#ifeq: {{{recommended|false}}} | true | inline| none }}; top:0; right:0; position: absolute;"><div position: relative;>[[File:Recommended icon backer.png| 64px|link={{{name|Abrams}}}]] | <div style="display: {{#ifeq: {{{recommended|false}}} | true | inline| none }}; top:0; right:0; position: absolute;"><div position: relative;>[[File:Recommended icon backer.png| 64px|link={{{name|Abrams}}}]] |
Revision as of 13:53, 6 October 2024
Usage
This template [if you know how this template works, please explain how to use it and what function it should serve].
Examples
{{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 |