Difference between revisions of "User:4CentUser/QuickCrop"
Jump to navigation
Jump to search
(moving template to sandbox since its taking longer than i thought) |
(usage notes) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style="float: right; width: {{{ScaleWidth| | <div style="float: {{{Location|right}}}; width: {{{ScaleWidth|}}};"> | ||
{{CSS image crop | {{CSS image crop | ||
|Image = {{{Image|}}} | |Image = {{{Image|}}} | ||
|bSize = | |bSize = 100px | ||
|oLeft = | |oLeft = {{{x1|0.0}}} | ||
|oTop = | |oTop = {{{y1|0.0}}} | ||
|cWidth = | |cWidth = {{#expr: {{{x2|50.0}}} - {{{x1|0.0}}} }} | ||
|cHeight = | |cHeight = {{#expr: {{{y2|}}} - {{{y1|0.0}}} }} | ||
|Description = {{{Description|}}} | |||
|Description = {{{Description}}} | |||
}} | }} | ||
</div> | </div> | ||
<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: | |||
{{User:4CentUser/QuickCrop | |||
|Image=SonicVsSonichu.jpg | |||
|x1=0 | |||
|y1=0 | |||
|x2=100 | |||
|y2=60 | |||
|Location=left | |||
|Description=Test | |||
|ScaleWidth = 500 | |||
}} | |||
</noinclude> | </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: