|
|
(18 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <includeonly> | | <includeonly> |
|
| |
| <templatestyles src="Template:LinesOverlay_Test/styles.css" />
| |
| <div data-num="{{#invoke:String|count|{{{line1|}}}|,}}"></div>
| |
| <div id="outerLinesContainer">
| |
| {{#invoke: String
| |
| |rep
| |
| |<div class{{=}}"line" style{{=}}"
| |
| 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;
| |
| 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|}}}|,}}
| |
| }}
| |
| </div>
| |
|
| |
| </includeonly> | | </includeonly> |
|
| |
|
| <noinclude> | | <noinclude> |
| {{LinesOverlay_Test | | {{Collapsible Map |
| |line1=0,0 10,10 60,20 130,50 140,120 130,100 | | |name=Test |
| | |world=sheltie |
| | |xCoord=250 |
| | |zCoord=-200 |
| | |scale=1 |
| | |width=100% |
| | |overlay={{LinesOverlay Transport (Sur6) |
| | |overlayCSC = {{LinesOverlay CSC (Sheltie)|originCoords=-500,-1000|size=1500,1500}} |
| | |overlayNTN = {{LinesOverlay NTN (Sheltie)|originCoords=-500,-1000|size=1500,1500}} |
| | |overlayRHN = {{LinesOverlay RHN (Sheltie)|originCoords=-500,-1000|size=1500,1500}} |
| | |overlaySRN = {{LinesOverlay SRN (Sheltie)|originCoords=-500,-1000|size=1500,1500}} |
| | |overlayHUB = {{LinesOverlay HUB (Sheltie)|originCoords=-500,-1000|size=1500,1500}} |
| | }} |
| }} | | }} |
| </noinclude> | | </noinclude> |