Template:Sandbox/VeryGoodDog/GridCell: Difference between revisions
From Vintage Story Wiki
VeryGoodDog (talk | contribs) mNo edit summary |
VeryGoodDog (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>[[File:{{ #if:{{{ | <includeonly><div style="width:40px; height:40px;"> | ||
[[File:{{{Image| {{{1}}}.png }}} | |||
|link={{{Link| {{{1}}} }}} | |||
|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> | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Sandbox/VeryGoodDog/GridCell | {{Sandbox/VeryGoodDog/GridCell | ||
| | |Bronze armlet | ||
}} | }} | ||
</noinclude> | </noinclude> |
Revision as of 15:40, 16 August 2020
[[File: Bronze armlet .png |link= Bronze armlet
|40px]]