Difference between revisions of "Template:TileSheet"

From Fallen Sword Wiki
Jump to: navigation, search
Line 1: Line 1:
<div style="display: inline-block; width: 40px; height: 40px; position: relative; overflow: hidden; vertical-align: middle;"><div style="position: absolute; top: 0px; left: -{{#expr: ({{{2|0}}}mod13) * 40}}px;">https://cdn2.fallensword.com/{{{1}}}_sheet.png</div></div>
+
<div style="display: inline-block; width: 40px; height: 40px; position: relative; overflow: hidden; vertical-align: middle;"><div style="position: absolute; top: 0px; left: -{{#expr: ({{{2|0}}}mod13) * 40}}px; top: -{{#expr floor({{{2|0}}} /  13}}px;">https://cdn2.fallensword.com/{{{1}}}_sheet.png</div></div>

Revision as of 21:06, 31 January 2022