Template:Streetmap: Difference between revisions
Jump to navigation
Jump to search
Created page with '{{#vardefine:hlong|{{#expr:({{#len:{{{1}}} }}-2)/2}} }}{{#vardefine:add|{{#switch:{{#sub:{{{1}}}|0|1}} |J |O |T=5 |0}} }}{{#vardefine:n1snip|{{#sub:{{{1}}}|2|{{#var:hlong}} }} }}…' |
No edit summary |
||
(20 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#vardefine:hlong|{{#expr:({{#len:{{{1}}} }}-2)/2}} }}{{#vardefine: | <includeonly>{{#if:{{{1|}}}|{{#vardefine:hlong|{{#expr:({{#len:{{{1}}} }}-2)/2}} }}{{#vardefine:pad|{{#switch:{{#var:hlong}} | ||
| | |-0.5 | ||
| | |0=50000 | ||
| | |0.5 | ||
|0}} }}{{# | |1=0000 | ||
|1.5 | |||
|2=000 | |||
| | |2.5 | ||
|3=00 | |||
|3.5 | |||
| | |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]] | |||
|E | |||
}}{{#var: | |||
}}&y={{ | |||
}}{{#var: | |||
}}&z=120 |