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 (Need more test lines.) |
||
Line 41: | Line 41: | ||
− | {{User:Space/Template:DrawLine|200|200|300|100|3|purple}}{{User:Space/Template:DrawLine|0|100|100|0|3|yellow}}{{User:Space/Template:DrawLine|0|0|-100|100|3|green}}{{User:Space/Template:DrawLine|0|0|100|100|3|#00BFFF}}{{User:Space/Template:DrawLine|0|0|100|-100|3|orange}}{{User:Space/Template:DrawLine|0|0|-100|-100|3|black}}{{User:Space/Template:DrawLine|100|-100|400|1000|3|orange}}{{User:Space/Template:DrawLine|0|0|100|0|8|white}}{{User:Space/Template:DrawLine|100|0|100|100|8|white}}{{User:Space/Template:DrawLine|100|100|200|100|8|white}}{{User:Space/Template:DrawLine|200|100|200|0|8|white}} | + | {{User:Space/Template:DrawLine|200|200|300|100|3|purple}}{{User:Space/Template:DrawLine|0|100|100|0|3|yellow}}{{User:Space/Template:DrawLine|0|0|-100|100|3|green}}{{User:Space/Template:DrawLine|0|0|100|100|3|#00BFFF}}{{User:Space/Template:DrawLine|0|0|100|-100|3|orange}}{{User:Space/Template:DrawLine|0|0|-100|-100|3|black}}{{User:Space/Template:DrawLine|100|-100|400|1000|3|orange}}{{User:Space/Template:DrawLine|0|0|100|0|8|white}}{{User:Space/Template:DrawLine|100|0|100|100|8|white}}{{User:Space/Template:DrawLine|100|100|200|100|8|white}}{{User:Space/Template:DrawLine|200|100|200|0|8|white}}{{User:Space/Template:DrawLine|0|0|0|100|8|white}}{{User:Space/Template:DrawLine|0|0|-100|0|8|white}}{{User:Space/Template:DrawLine|0|0|100|100|8|white}} |
− | + | {{User:Space/Template:DrawLine|0|0|-100|100|8|white}}{{User:Space/Template:DrawLine|0|0|100|-100|8|white}}{{User:Space/Template:DrawLine|0|0|0|-100|8|white}}{{User:Space/Template:DrawLine|0|0|-100|-100|8|white}} | |
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 07:27, 13 April 2013
This page is currently being developed by one or more editors being led by Space. Please refer to the talk page to learn about and/or contribute to the completion of this page. You can also contact the leader on their discussion page. |
To-do
- Make a formula for generating a percentage for the transform-origin x value which always places the pivot point of the line at (width/2) in from the short side, i.e. (width/2) pixels in on the symmetry line of the div
{{User:Space/Template:DrawLine|0|0|-100|-100|3|black}}{{User:Space/Template:DrawLine|100|0|0|100|3|pink}}
Usage
{{User:Space/Template:DrawLine|x1|y1|x2|y2|width in px|valid css color code or name}}
Planned to be used for trade lanes in Template:System Map.
Result
{{User:Space/Template:DrawLine|200|200|300|100|3|purple}}{{User:Space/Template:DrawLine|100|0|0|100|3|pink}}{{User:Space/Template:DrawLine|0|100|100|0|3|yellow}}{{User:Space/Template:DrawLine|0|0|100|100|3|#00BFFF}}{{User:Space/Template:DrawLine|0|0|100|-100|3|orange}}{{User:Space/Template:DrawLine|100|-200|400|-1000|3|orange}}{{User:Space/Template:DrawLine|0|0|-100|100|3|green}}{{User:Space/Template:DrawLine|0|0|-100|-100|3|black}}{{User:Space/Template:DrawLine|7000|-10000|800|1300|40|red}} (and a bunch of newlines)