Template

LinesOverlay Test

From Dogcraft Wiki

No edit summary
No edit summary
 
(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>

Latest revision as of 17:29, 29 March 2024



Test

Click for full map

CSC
NTN
RHN
SRN
Hubs

|

|

|

|

z-2.png
z-2.png
z-2.png
z-1.png
z-1.png

z-1.png
z0.png
z0.png
z0.png