Difference between revisions of "User:4CentUser/QuickCrop"
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| | <div style="float: {{{Location|right}}}; width: {{{ScaleWidth|}}};"> | ||
{{CSS image crop | {{CSS image crop | ||
|Image = {{{Image|}}} | |Image = {{{Image|}}} | ||
|bSize = | |bSize = 100px | ||
|oLeft = {{{x1|0.0}}} | |oLeft = {{{x1|0.0}}} | ||
|oTop = {{{y1|0}}} | |oTop = {{{y1|0.0}}} | ||
|cWidth = {{#expr: | |cWidth = {{#expr: {{{x2|50.0}}} - {{{x1|0.0}}} }} | ||
|cHeight = {{#expr:{{{y2| | |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= | |x1=0 | ||
|y1= | |y1=0 | ||
|x2=100 | |x2=100 | ||
|y2= | |y2=60 | ||
|Location=left | |Location=left | ||
|Description=Test | |Description=Test | ||
|ScaleWidth= | |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: