Template:Hero card2: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
No edit summary
Lera (talk | contribs)
No edit summary
Line 1: Line 1:
<div class="HeroCard2" style="display:inline-block; border-radius: 2px; overflow:hidden; position: relative; background-image: linear-gradient(#A69885, #72695A); width: 132px; height: 179px; box-shadow: 0px 0px 20px #00000090; transition: 0.2 all ease-in-out;">
<div class="HeroCard2" style="display:inline-block; border-radius: 2px; overflow:hidden; position: relative; background-image: linear-gradient(#A69885, #72695A); width: 132px; height: 179px; box-shadow: 0px 0px 20px #00000090; transition: 0.1s all ease-in-out;">
<span>[[File:{{{Image|{{{1|Abrams}}}}}} card.png|132px|link={{{1|Abrams}}}]]</span>
<span>[[File:{{{Image|{{{name|Abrams}}}}}} card.png|132px|link={{{name|Abrams}}}]]</span>
 
<p style="position: absolute; bottom: 5px; text-align: center; width: 100%; font-family: serif; font-weight: bold; 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-family: 'Mineko'; font-weight: bold; color: white; text-shadow: 0px 0px 0px black, 2px 2px 0px Black; font-size: 28px; letter-spacing: 0.5px; margin: 0; text-transform: uppercase;   text-overflow: ellipsis;">{{{1|Abrams}}}</p>
<div style="display: {{#ifeq: {{{recommended|true}}} | true | inline| none }}; top:0; right:0; position: absolute;"><div position: relative;>[[File:Recommended icon backer.png| 64px|link={{{name|Abrams}}}]]
</div>
</div>
</div>
</div>


<noinclude>[[Category:Templates]]</noinclude>
<noinclude>[[Category:Templates]]<templatedata>
{
"params": {
"Image": {
"label": "Hero Portrait",
"description": "If not set. The hero portrait will default to \"Name card.png\"",
"type": "string"
},
"name": {
"label": "Hero Name",
"description": "Name of the hero. Also determines the wiki page",
"type": "string",
"suggestedvalues": [
"Abrams"
],
"default": "Abrams"
},
"text-size": {
"label": "Text Size",
"description": "Default is 24px. Change if the hero name doesnt fit.",
"type": "string",
"suggestedvalues": [
"24px"
]
},
"recommended": {
"label": "Recommended for new players",
"description": "Is this hero recommended for new players?",
"type": "boolean",
"default": "false"
}
}
}
</templatedata></noinclude>

Revision as of 20:27, 26 August 2024

Abrams

No description.

Template parameters[Edit template data]

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

Suggested values
Abrams
Default
Abrams
Stringoptional
Text Sizetext-size

Default is 24px. Change if the hero name doesnt fit.

Suggested values
24px
Stringoptional
Recommended for new playersrecommended

Is this hero recommended for new players?

Default
false
Booleanoptional