Template
LinesOverlay Test
From Dogcraft Wiki
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
--z2: {{#explode:{{#explode:{{{line1|}}}| |1}}|,|1}}; | --z2: {{#explode:{{#explode:{{{line1|}}}| |1}}|,|1}}; | ||
transform: rotate( calc( {{#expr: (atan (({{#explode:{{#explode:{{{line1|}}}| |0}}|,|0}} - {{#explode:{{#explode:{{{line1|}}}| |1}}|,|0}}) / ({{#explode:{{#explode:{{{line1|}}}| |1}}|,|1}} - {{#explode:{{#explode:{{{line1|}}}| |0}}|,|1}} + 0.00000001) )) }}rad {{#ifexpr: ({{#explode:{{#explode:{{{line1|}}}| |1}}|,|1}} - {{#explode:{{#explode:{{{line1|}}}| |0}}|,|1}}) < 0 | + 180deg }} )); | transform: rotate( calc( {{#expr: (atan (({{#explode:{{#explode:{{{line1|}}}| |0}}|,|0}} - {{#explode:{{#explode:{{{line1|}}}| |1}}|,|0}}) / ({{#explode:{{#explode:{{{line1|}}}| |1}}|,|1}} - {{#explode:{{#explode:{{{line1|}}}| |0}}|,|1}} + 0.00000001) )) }}rad {{#ifexpr: ({{#explode:{{#explode:{{{line1|}}}| |1}}|,|1}} - {{#explode:{{#explode:{{{line1|}}}| |0}}|,|1}}) < 0 | + 180deg }} )); | ||
height: {{#expr: sqrt ((({{#explode:{{#explode:{{{line1|}}}| |1}}|,|0}} - {{#explode:{{#explode:{{{line1|}}}| |0}}|,|0}}) ^ 2) + (({{#explode:{{#explode:{{{line1|}}}| |1}}|,|1}} - {{#explode:{{#explode:{{{line1|}}}| |0}}|,|1}}) ^ 2 ) ) }}px;"></div> | height: {{#expr: sqrt ((({{#explode:{{#explode:{{{line1|}}}| |1}}|,|0}} - {{#explode:{{#explode:{{{line1|}}}| |0}}|,|0}}) ^ 2) + (({{#explode:{{#explode:{{{line1|}}}| |1}}|,|1}} - {{#explode:{{#explode:{{{line1|}}}| |0}}|,|1}}) ^ 2 ) ) }}px; | ||
width: {{{lineWidth|5}}}px; | |||
left: {{#expr: {{#explode:{{#explode:{{{line1|}}}| |0}}|,|0}} - {{{startX|0}}} }}px; | |||
top: {{#expr: {{#explode:{{#explode:{{{line1|}}}| |0}}|,|1}} - {{{startZ|0}}} }}px; | |||
"></div> | |||
|{{#invoke:String|count|{{{line1|}}}|,}} | |{{#invoke:String|count|{{{line1|}}}|,}} | ||
}} | }} |
Revision as of 18:16, 17 March 2024
This page was last modified on 17 March 2024, at 18:16. (7 months ago)