Template:Hero Card Nav: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
QuinnBinn (talk | contribs)
Created for the Hero navbox
 
QuinnBinn (talk | contribs)
m Changed defaults
Line 1: Line 1:
<onlyinclude><div style="display:inline-block; position:relative">
<onlyinclude><div style="display:inline-block; position:relative">
[[File:{{{Hero|Abrams}}} card.png|{{{size|100}}}px|link={{{Hero|Abrams}}}]]
[[File:{{{Hero|Abrams}}} card.png|{{{size|50}}}px|link={{{Hero|Abrams}}}]]
<p style="position: absolute; bottom: 4px; text-align: center; background-color:rgba(255, 243, 206, 0.5); border-radius: 2px; width: 100%; font-weight: bold; color:#FFEFD7; text-shadow: 0px 0px 4px black, 0px 0px 4px black, 0px 0px 4px black; font-size: {{{font size|20}}}px; letter-spacing: 0.5px; margin: 0; text-transform: uppercase; pointer-events: none;">{{{Hero|Abrams}}}</p>
<p style="position: absolute; bottom: 4px; text-align: center; background-color:rgba(255, 243, 206, 0.5); border-radius: 2px; width: 100%; font-weight: bold; color:#FFEFD7; text-shadow: 0px 0px 4px black, 0px 0px 4px black, 0px 0px 4px black; font-size: {{{font size|10}}}px; letter-spacing: 0.5px; margin: 0; text-transform: uppercase; pointer-events: none;">{{{Hero|Abrams}}}</p>
</div></onlyinclude>
</div></onlyinclude>
<noinclude>
<noinclude>

Revision as of 07:03, 5 September 2024

Abrams


A smaller type of hero card for use primarily in navboxes

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
HeroHero

Which Hero this is for

Example
Abrams
Unknownoptional
sizesize

Image size, adjust if using elsewhere

Default
50
Example
50
Numberoptional
font sizefont size

Font size, defaults to 10

Default
10
Numberoptional