Template:Streetmap: Difference between revisions
Jump to navigation
Jump to search
Try to fix it |
No edit summary |
||
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#vardefine:hlong|{{#expr:({{#len:{{{1}}} }}-2)/2}} }}{{#vardefine:pad|{{#switch:{{#var:hlong}} | <includeonly>{{#if:{{{1|}}}|{{#vardefine:hlong|{{#expr:({{#len:{{{1}}} }}-2)/2}} }}{{#vardefine:pad|{{#switch:{{#var:hlong}} | ||
|-0.5 | |||
|0=50000 | |0=50000 | ||
|0.5 | |||
|1=0000 | |1=0000 | ||
|1.5 | |||
|2=000 | |2=000 | ||
|2.5 | |||
|3=00 | |3=00 | ||
|3.5 | |||
|4=0 | |4=0 | ||
|}}}}{{# | |}}}}{{#ifeq:{{iseven|{{{1}}}|l}}|n|https://www.streetmap.co.uk/map.srf?x={{GBfromIEgrid|{{{1}}}|E}}&y={{GBfromIEgrid|{{{1}}}|N}}&z=120|https://www.streetmap.co.uk/map.srf?x={{GBgridNum|{{{1}}}|E}}{{#var:pad}}&y={{GBgridNum|{{{1}}}|N}}{{#var:pad}}&z=120 | ||
| | }}}}</includeonly><noinclude>[[Category:Map templates|Streetmap]] | ||
| | |||
|N | |||
}}{{#var: | |||
}} |