Template:Icon: Difference between revisions

From Love and Deepspace Wiki
Content added Content deleted
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:


--><templatestyles src="Template:Icon/styles.css" /><!--
--><templatestyles src="Template:Icon/styles.css" /><!--
--><div class="icon-img" style="height: {{{size|100px}}}; width: {{{size|100px}}};">
--><div class="icon-img" style="height: {{{size|100px}}}; width: {{{size|100px}}}; {{#ifeq:{{{noBackground|}}} | 1 | background: none; | background: linear-gradient(0deg, {{#var:itemColor}}50, #eee 33%); }}{{#ifeq:{{{noBorder|}}} | 1 | border: none; | border: 1px solid white; }}{{#ifeq:{{{noBoxShadow|}}} | 1 | | box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.2);}}"">
[[File:{{{image|{{#invoke:String|replace|{{{name|}}}|:|}} icon.png}}}|{{{size|100px}}}|alt={{{name|}}}|link=]]
[[File:{{{image|{{#invoke:String|replace|{{{name|}}}|:|}} icon.png}}}|{{{size|100px}}}|alt={{{name|}}}|link=]]
<div class="icon-decoration" style="{{#if:{{{rarity|}}} | box-shadow: inset -1px -4px 0px {{#var:itemColor}}; }} height: {{{size|100px}}}; width: {{{size|100px}}}; {{#ifeq:{{{noBackground|}}} | 1 | background: none; | background: #eee; }}{{#ifeq:{{{noBorder|}}} | 1 | border: none; | border: 1px solid white; }}{{#ifeq:{{{noBoxShadow|}}} | 1 | | box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.2);}}"></div>
<div class="icon-decoration" style="{{#if:{{{rarity|}}} | box-shadow: inset -1px -4px 0px {{#var:itemColor}}; }} height: {{{size|100px}}}; width: {{{size|100px}}};></div>
</div></includeonly>
</div></includeonly>

Latest revision as of 03:12, 11 February 2024