Editing Template:Hero card2

Jump to navigation Jump to search
Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
<templatestyles src="Template:Hero card2/styles.css" /><includeonly><!--
<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;">
<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|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>


vars:
<noinclude>[[Category:Templates]]<templatedata>
  heroName (1) / default Abrams
{
  cardSize
"params": {
  textSize
"Image": {
  isHeroLabs
"label": "Hero Portrait",
  overrideDisplayName
"description": "If not set. The hero portrait will default to \"Name card.png\"",
  overrideLinkTooltip
"type": "string"
  overrideLinkImage
},
  overrideLinkClick
"name": {
 
"label": "Hero Name",
-->{{#vardefine:heroName|{{{heroName|{{{1|Abrams}}}|}}}}}<!--
"description": "Name of the hero. Also determines the wiki page",
 
"type": "string",
-->{{#vardefine:cardSize|{{{cardSize|130}}}}}<!--
"suggestedvalues": [
-->{{#vardefine:imageSize|{{#expr: ({{#var:cardSize}} * 0.923) round 0 }}}}<!--
"Abrams"
 
],
-->{{#vardefine:textSize|{{{textSize|24}}}}}<!--
"default": "Abrams"
 
},
-->{{#vardefine:isHeroLabs|{{#ifeq:{{{isHeroLabs|false}}}|true|HeroLabs}}}}<!--
"text-size": {
 
"label": "Text Size",
-->{{#vardefine:displayName|{{#invoke:Lang|get_string|{{#invoke:HeroData|get_hero_key|{{#var:heroName}}}}}}}}<!--
"description": "Default is 24px. Change if the hero name doesnt fit.",
-->{{#vardefine:displayName|{{#if:{{#var:displayName}}|{{#var:displayName}}|{{#var:heroName}}}}}}<!--
"type": "string",
-->{{#vardefine:displayName|{{{overrideDisplayName|{{#var:displayName}}}}}}}<!--
"suggestedvalues": [
 
"24px"
-->{{#vardefine:linkTooltip|{{{overrideLinkTooltip|{{#var:heroName}}}}}}}<!--
]
-->{{#vardefine:linkImage|{{{overrideLinkImage|{{#var:heroName}}}}}}}<!--
},
-->{{#vardefine:linkClick|{{{overrideLinkClick|{{#var:heroName}}{{If lang}}}}}}}<!--
"recommended": {
-->
"label": "Recommended for new players",
<div class="HeroCard {{#var:isHeroLabs}}" style="width:{{#var:cardSize}}px;">
"description": "Is this hero recommended for new players?",
  <div class="CardBacker"></div>
"type": "boolean",
  <div class="HeroImage">[[File:{{#var:linkImage}}_vertical.png|{{#var:imageSize}}px|link=]]</div>
"default": "false"
  <div class="HeroLabsSticker"></div>
}
  <div class="CardShape"></div>
}
  <div class="GradiantOverlay"></div>
}
  <p class="HeroLabsText">{{#invoke:Lang|get_string|MyRosterHeroLabsHero|fallback_str=en}}</p>
</templatedata></noinclude>
  <p class="HeroName" style="--text-size:{{#var:textSize}}px;">{{#var:displayName}}</p>
  <div class="hero-link-wrapper" data-hero-name="{{#var:linkTooltip}}">[[{{#var:linkClick}}|<span></span>]]</div>
</div></includeonly><noinclude>{{Documentation}}</noinclude>
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Deadlock:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template