Template:Sandbox/VeryGoodDog/GridCell: Difference between revisions

From Vintage Story Wiki
mNo edit summary
mNo edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="width:40px; height:40px;">
<includeonly><div style="width:40px; height:40px; background-color:#9C958B; outline: 2px solid #1D1B19; outline-offset: -1px;">
[[File:{{{Image| {{{1}}}.png }}}
[[File:{{{1}}}.png|link={{{3|}}}|40px]]{{ #if:{{{2|}}}|
|link={{{Link| {{{1}}} }}}
<div style="bottom:22px; right: 2px; position:relative; text-align:right; color:white; font-size: large; font-weight: bold;">{{{2}}}</div>
|40px]]
{{ #if:{{{Count|{{{2|}}} }}} |
<div style="width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{Count|{{{2}}} }}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link=]]
</div>
<div style="left:{{#expr:-16 * (({{{Count|{{{2}}} }}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link=]]
</div>
</div>
}}
}}
</div>
</div>
</includeonly><noinclude>
</includeonly><noinclude>
{{Sandbox/VeryGoodDog/GridCell
{{Sandbox/VeryGoodDog/GridCell
|Bronze armlet
|Bronze armlet|10|Clothes}}
}}
{{Sandbox/VeryGoodDog/GridCell|||}}
</noinclude>
</noinclude>

Latest revision as of 17:49, 16 August 2020