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

From CWCki
Jump to navigation Jump to search
(experimenting)
(work)
Line 1: Line 1:
<div style="float: right; width: {{{ScaleWidth|200px}}};">
<div style="float: {{Location|}}; width: {{{ScaleWidth|200px}}};">
{{CSS image crop
{{CSS image crop
|Image        = {{{Image}}}
|Image        = {{{Image|}}}
|bSize        = 100
|bSize        = 100.0
|oLeft        = {{{x1|0}}} / 100
|oLeft        = {{{x1|0.0}}}
|oTop          = {{{y1|100}}} / 100
|oTop          = {{{y1|0}}}
|cWidth        = ({{{x2|100}}} - {{{x1|0}}}) / 100.0
|cWidth        = {{#expr:+{{{x2|100.0}}} - {{{x1|0}}}}}
|cHeight      = ({{{y2|100}}} - {{{y1|0}}}) / 100.0
|cHeight      = {{#expr:{{{y2|100.0}}} - {{{y1|0}}}}}
|Location      = {{{Location|right}}}
|Description  = {{{Description|}}}
|Description  = {{{Description|Description.}}}
}}
}}
</div>
</div>
Line 15: Line 14:
Example:
Example:


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

Revision as of 11:47, 26 September 2021


Example:

Test
Test