Template:Streetmap: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision 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.5 | ||
|0=50000 | |0=50000 | ||
Line 11: | Line 11: | ||
|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 | |}}}}{{#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]] | ||