Toggle menu
517
2.5K
889
23.2K
Deadlock Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Hero card2: Difference between revisions

Template page
Lera (talk | contribs)
No edit summary
m Reverted edit by 149.28.42.29 (talk) to last revision by Sur
Tag: Rollback
 
(22 intermediate revisions by 9 users not shown)
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.1s transform ease-in-out;">
<includeonly><div class="HeroCard2" style="display:inline-block; border-radius: 8px; overflow:hidden; position: relative; background-image: {{#ifeq: {{{herolabs|false}}} | true | linear-gradient(#ce9b54, #674915)| linear-gradient(#A69885, #72695A) }}; max-width: {{{card_size|132}}}px; width: 30%; height: auto; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); transition: 0.1s transform ease-in-out;"><span>[[File:{{{Image|{{{link|{{{name|Abrams}}}}}}}}} card.png|{{{card_size|132}}}px|link={{{link|{{{name|Abrams}}}}}}{{{subpage|}}}]]</span><p style="display: {{#ifeq: {{{herolabs|false}}} | true | block| none }}; position: absolute; bottom: 35px; left: 50%; transform: translateX(-50%); text-align: center; width: fit-content; font-size: {{{herolabs_text_size|6}}}px; margin: 0; pointer-events: none; border-radius: 2px; background-color: #d36c16ee; padding: 1px 4px 0px 4px; font-family: Tahoma, sans-serif; color: white; font-weight: bold; max-height: 15px;">{{#invoke:Lang|get_string|MyRosterHeroLabsHero|fallback_str=en}}</p><p style="position: absolute; bottom: 0px; text-align: center; width: 100%; font-weight: bold; font-family: 'Forevs Demo', 'PT Serif','Palatino','Georgia',serif; color: #FFEFD7; text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5), 0px 0px 8px rgba(0, 0, 0, 0.5), 0px 0px 8px rgba(0, 0, 0, 0.5); font-size: min(5vw, {{{text_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| {{{sticker_size|56}}}px |link={{{link|{{{name|Abrams}}}}}}{{{subpage|}}}]]</div></div><div style="display: {{#ifeq: {{{herolabs|false}}} | true | inline| none }}; top:0; right:0; position: absolute;"><div position: relative;>[[File:Herolabs_icon_backer.png | {{{sticker_size|56}}}px |link={{{link|{{{name|Abrams}}}}}}{{{subpage|}}}]]</div></div></div></includeonly><noinclude>{{Documentation}}</noinclude>
<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>
<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>
</div>
</div>
 
<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>