Difference between revisions of "User:4CentUser/QuickCrop"

From CWCki
Jump to navigation Jump to search
(work)
(usage notes)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="float: {{Location|}}; width: {{{ScaleWidth|200px}}};">
<div style="float: {{{Location|right}}}; width: {{{ScaleWidth|}}};">
{{CSS image crop
{{CSS image crop
|Image        = {{{Image|}}}
|Image        = {{{Image|}}}
|bSize        = 100.0
|bSize        = 100px
|oLeft        = {{{x1|0.0}}}
|oLeft        = {{{x1|0.0}}}
|oTop          = {{{y1|0}}}
|oTop          = {{{y1|0.0}}}
|cWidth        = {{#expr:+{{{x2|100.0}}} - {{{x1|0}}}}}
|cWidth        = {{#expr: {{{x2|50.0}}} - {{{x1|0.0}}} }}
|cHeight      = {{#expr:{{{y2|100.0}}} - {{{y1|0}}}}}
|cHeight      = {{#expr: {{{y2|}}} - {{{y1|0.0}}} }}
|Description  =  {{{Description|}}}
|Description  =  {{{Description|}}}
}}
}}
Line 12: Line 12:


<noinclude>
<noinclude>
Usage:<br>
<code>
<nowiki>
{{QuickCrop</nowiki>
|Image= Name of image file<br>
|x1= leftmost edge<br>
|y1= top edge<br>
|x2= rightmost edge<br>
|y2= bottom edge<br>
|Location= location on screen<br>
|Description= Description<br>
|ScaleWidth= End size of image.<br>
}}
</code>
Example:
Example:


{{User:4CentUser/QuickCrop
{{User:4CentUser/QuickCrop
|Image=SonicVsSonichu.jpg
|Image=SonicVsSonichu.jpg
|x1=0.0
|x1=0
|y1=0.0
|y1=0
|x2=100.0
|x2=100
|y2=90.0
|y2=60
|Location=left
|Location=left
|Description=Test
|Description=Test
|ScaleWidth=300.0
|ScaleWidth = 500
}}
}}
</noinclude>
</noinclude>

Latest revision as of 13:03, 26 September 2021


Usage:
{{QuickCrop |Image= Name of image file
|x1= leftmost edge
|y1= top edge
|x2= rightmost edge
|y2= bottom edge
|Location= location on screen
|Description= Description
|ScaleWidth= End size of image.
}}


Example:

Test
Test