Template:Sandbox/VeryGoodDog/GridCell: Difference between revisions

From Vintage Story Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><div style="width:40px; height:40px;">
<includeonly><div style="width:40px; height:40px;">
[[File:{{{Image| {{{1}}}.png }}}|link={{{Link| {{{1}}} }}}|40px]]
[[File:{{{Image|{{{1}}}.png}}}|link={{{Link|{{{1}}}}}}|40px]]
{{ #if:{{{Count|{{{2|}}} }}} |
{{ #if:{{{Count|{{{2|}}} }}} |
<div style="width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="top: -11px;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;">
{{{Count|{{{2|}}} }}}
[[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>
}}
}}
Line 14: Line 9:
</includeonly><noinclude>
</includeonly><noinclude>
{{Sandbox/VeryGoodDog/GridCell
{{Sandbox/VeryGoodDog/GridCell
|Bronze armlet
|Bronze armlet|10}}
}}
</noinclude>
</noinclude>

Revision as of 15:44, 16 August 2020

Bronze armlet.png

10