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

From CWCki
Jump to navigation Jump to search
(usage notes)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="float: right; width: {{{ScaleWidth|200px}}};">
<div style="float: {{{Location|right}}}; width: {{{ScaleWidth|}}};">
{{CSS image crop
{{CSS image crop
|Image        = {{{Image|}}}
|Image        = {{{Image|}}}
|bSize        = 100
|bSize        = 100px
|oLeft        = <MATH>{{{x1|0}}} / 100</MATH>
|oLeft        = {{{x1|0.0}}}
|oTop          = <MATH>{{{y1|100}}} / 100</MATH>
|oTop          = {{{y1|0.0}}}
|cWidth        = <MATH>({{{x2|100}}} - {{{x1|0}}}) / 100</MATH>
|cWidth        = {{#expr: {{{x2|50.0}}} - {{{x1|0.0}}} }}
|cHeight      = <MATH>({{{y2|100}}} - {{{y1|0}}}) / 100</MATH>
|cHeight      = {{#expr: {{{y2|}}} - {{{y1|0.0}}} }}
|Location      = {{{Location|right}}}
|Description  = {{{Description|}}}
|Description  = {{{Description}}}
}}
}}
</div>
</div>
<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:
{{User:4CentUser/QuickCrop
|Image=SonicVsSonichu.jpg
|x1=0
|y1=0
|x2=100
|y2=60
|Location=left
|Description=Test
|ScaleWidth = 500
}}
</noinclude>

Latest revision as of 12: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