YellowWarningTriangle.png 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 search
m
m
Line 9: Line 9:
 
<!-- Renders the line --></noinclude>
 
<!-- Renders the line --></noinclude>
 
<includeonly><div style="-webkit-transform-origin: 0 100%; width: {{#expr: (({{{1}}}-{{{3}}})^2+({{{2}}}*{{{4}}})^2)^0.5}}px; height: {{{5}}}px; background: #000;"></div> {{atan2|{{#expr:{{{4}}}-{{{2}}}}}|{{#expr: {{{3}}}-{{{1}}}}}</includeonly>
 
<includeonly><div style="-webkit-transform-origin: 0 100%; width: {{#expr: (({{{1}}}-{{{3}}})^2+({{{2}}}*{{{4}}})^2)^0.5}}px; height: {{{5}}}px; background: #000;"></div> {{atan2|{{#expr:{{{4}}}-{{{2}}}}}|{{#expr: {{{3}}}-{{{1}}}}}</includeonly>
<noinclude>{{atan2|{{#expr:{{{4}}}-{{{2}}}}}|{{{3}}}-{{{1}}}}}
+
<noinclude>{{atan2|{{#expr:{{{4}}}-{{{2}}}}}|{{{3}}}-{{{1}}}}}}}
  
 
Test: {{User:Space/Template:DrawLine|0|2|0|9|3}}</noinclude>
 
Test: {{User:Space/Template:DrawLine|0|2|0|9|3}}</noinclude>

Revision as of 12:41, 8 April 2013

{{User:Space/Template:DrawLine|x1|y1|x2|y2|width in px}}


Expression error: Unexpected ( operator.


Template:Error



Template:Error}}

Test:

{{atan2|7|0