Template:Crop: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><div style="position: relative; width: {{{2}}}px; height: {{{3}}}px; overflow: hidden"><div style="position: relative; left: -{{{5}}}px; top: -{{{4}}}px;">[[File:...")
 
m (Protected "Template:Crop" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="position: relative; width: {{{2}}}px; height: {{{3}}}px; overflow: hidden"><div style="position: relative; left: -{{{5}}}px; top: -{{{4}}}px;">[[File:{{{1}}}|{{Imagezoom|{{{2}}}|{{{6|}}}}}px]]</div></div></includeonly><noinclude>Creates cropped images. Specify image file name, new width, height, vertical position adjustment*, horizontal position adjustment*, and zoom*
<includeonly><div style="position: relative; width: {{{2}}}px; height: {{{3}}}px; overflow: hidden"><div style="position: relative; left: -{{{5}}}px; top: -{{{4}}}px;">[[File:{{{1}}}|{{Imagezoom|{{{2}}}|{{{6|}}}}}px|link={{{link|}}}]]</div></div></includeonly><noinclude>Creates cropped images. Specify image file name, new width, height, vertical position adjustment*, horizontal position adjustment*, zoom*, and link=*


<nowiki>*</nowiki>Optional
<nowiki>*</nowiki>Optional


<pre>
<pre style="white-space:pre-wrap">
{{crop|image file name|new width|height|vertical position adjustment|horizontal position adjustment|zoom}}
{{crop|image file name|new width|height|vertical position adjustment|horizontal position adjustment|zoom|link=}}
</pre>
</pre>
==Example==
===Original File===
[[File:Csampi.jpg]]
===Using Crop Template===
<pre>{{Crop|Csampi.jpg|150|170}}</pre>
{{Crop|Csampi.jpg|150|170}}
<pre>{{Crop|Csampi.jpg|100|80|10|20|1.5|link=Charles Sampi}}</pre>
{{Crop|Csampi.jpg|100|80|50|5|1.2|link=Charles Sampi}}
[[Category:Wiki System Templates]]
[[Category:Wiki System Templates]]
[[Category:Templates]]
__NOTOC__
</noinclude>
</noinclude>

Latest revision as of 14:20, 1 May 2016

Creates cropped images. Specify image file name, new width, height, vertical position adjustment*, horizontal position adjustment*, zoom*, and link=*

*Optional

{{crop|image file name|new width|height|vertical position adjustment|horizontal position adjustment|zoom|link=}}

Example

Original File

Csampi.jpg

Using Crop Template

{{Crop|Csampi.jpg|150|170}}
Csampi.jpg
{{Crop|Csampi.jpg|100|80|10|20|1.5|link=Charles Sampi}}
Csampi.jpg