Jump to content

Template:CSS image crop: Difference between revisions

From Emps-World Wiki
Mary (talk | contribs)
No edit summary
Mary (talk | contribs)
m Reverted edits by Mary (talk) to last revision by Thomy
Line 1: Line 1:
usage: fill in the image id divided by 1000 (so just the first thousand number) and then the other 3 numbers at oTop. So if you fill in 1 and 111 it displays item 1111. <br>
<nowiki>{{CSS image crop|ImageID/1000 = 1 |oTop = 111 }}</nowiki>
<onlyinclude><div style="
<onlyinclude><div style="
width:32px;
width:32px;
Line 14: Line 10:
<div style="
<div style="
position:relative;
position:relative;
top:-{{#expr:(({{{oTop}}}-1)*32)}}px;
top:-{{ #expr:({{{oTop}}}-1)*32}}px;
">
">



Revision as of 14:52, 14 May 2016

<div style=" position:relative; top:-Expression error: Unrecognised punctuation character "{".px; ">

[[File:{{{ImageID/1000}}}.png|left|caption]]