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 1: Line 1:
<includeonly> <div style="position:relative; right:{{{1}}}px; bottom:{{{2}}}px; -webkit-transform-origin: 0 100%; -webkit-transform:rotate(-{{#expr:{{atan2|y={{#expr:{{{4}}}-{{{2}}}}}|x={{#expr: {{{3}}}-{{{1}}}}}}}*180/pi}}deg); width: {{#expr: (({{{3}}}-{{{1}}})^2+({{{4}}}-{{{2}}})^2)^0.5}}px; height: {{{5}}}px; background: {{{6}}};"></div></includeonly>
+
<includeonly> <div style="position:relative; left:{{{1}}}px; bottom:{{{2}}}px; -webkit-transform-origin: 0 100%; -webkit-transform:rotate(-{{#expr:{{atan2|y={{#expr:{{{4}}}-{{{2}}}}}|x={{#expr: {{{3}}}-{{{1}}}}}}}*180/pi}}deg); width: {{#expr: (({{{3}}}-{{{1}}})^2+({{{4}}}-{{{2}}})^2)^0.5}}px; height: {{{5}}}px; background: {{{6}}};"></div></includeonly>
  
 
<noinclude>==Usage==
 
<noinclude>==Usage==
Line 6: Line 6:
 
<pre>{{User:Space/Template:DrawLine|0|0|0|-100|3|#00BFFF}}
 
<pre>{{User:Space/Template:DrawLine|0|0|0|-100|3|#00BFFF}}
 
{{User:Space/Template:DrawLine|0|100|300|15|3|#00BFFF}}</pre>
 
{{User:Space/Template:DrawLine|0|100|300|15|3|#00BFFF}}</pre>
{{User:Space/Template:DrawLine|0|0|0|-100|3|#00BFFF}}
+
{{User:Space/Template:DrawLine|0|-100|0|0|3|#00BFFF}}
{{User:Space/Template:DrawLine|0|100|300|15|3|#00BFFF}}
+
{{User:Space/Template:DrawLine|0|-68|300|15|3|#00BFFF}}
 +
{{User:Space/Template:DrawLine|30|-15|600|200|3|#00BFFF}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 14:43, 8 April 2013


Usage

{{User:Space/Template:DrawLine|x1|y1|x2|y2|width in px|valid css color code or name}}

Result

{{User:Space/Template:DrawLine|0|0|0|-100|3|#00BFFF}}
{{User:Space/Template:DrawLine|0|100|300|15|3|#00BFFF}}