This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date. |
Difference between revisions of "User:Space/Template:DrawLine"
From Discovery Wiki
Jump to navigationJump to searchm |
m (That was perhaps a bit too long.) |
||
Line 3: | Line 3: | ||
<includeonly> <div style="-webkit-transform-origin: 0 100%; -webkit-transform:rotate({{atan2|y={{#expr:{{{4}}}-{{{2}}}}}|x={{#expr: {{{3}}}-{{{1}}}}}}}deg); width: {{#expr: (({{{1}}}-{{{3}}})^2+({{{2}}}*{{{4}}})^2)^0.5}}px; height: {{{5}}}px; background: #000;"></div></includeonly> | <includeonly> <div style="-webkit-transform-origin: 0 100%; -webkit-transform:rotate({{atan2|y={{#expr:{{{4}}}-{{{2}}}}}|x={{#expr: {{{3}}}-{{{1}}}}}}}deg); width: {{#expr: (({{{1}}}-{{{3}}})^2+({{{2}}}*{{{4}}})^2)^0.5}}px; height: {{{5}}}px; background: #000;"></div></includeonly> | ||
− | <noinclude>Test: {{User:Space/Template:DrawLine| | + | <noinclude>Test: {{User:Space/Template:DrawLine|0|0|-6|-9|3}}</noinclude> |
Revision as of 12:56, 8 April 2013
{{User:Space/Template:DrawLine|x1|y1|x2|y2|width in px}}
Test: