Template:Streetmap: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#switch:{{Part-BI|{{#var:shire}}}} | {{#vardefine:hlong|{{#expr:({{#len:{{{1}}} }}-{{#ifeq:{{#expr:{{#len:{{{1}}} }}/2 round 0}}}}|{{#expr:{{#len:{{{1}}} }}/2}}|2|1}})/2}} }}{{#vardefine:pad|{{#switch:{{#var:hlong}} | ||
|Northern Ireland=https://www.streetmap.co.uk/map.srf?x={{GBfromIEgrid|{{{1}}}|E}}&y={{GBfromIEgrid|{{{1}}}|N}}&z=120 | |0=50000 | ||
|1=0000 | |||
|2=000 | |||
|3=00 | |||
|4=0 | |||
|}}}}{{#switch:{{Part-BI|{{#var:shire}}}} | |||
|Northern Ireland=https://www.streetmap.co.uk/map.srf?x={{GBfromIEgrid|{{{1}}}|E}}{{#var:pad}}&y={{GBfromIEgrid|{{{1}}}|N}}{{#var:pad}}&z=120 | |||
|England | |England | ||
|Scotland | |Scotland | ||
|Wales=https://www.streetmap.co.uk/map.srf?x={{GBgridNum|{{{1}}}|E}}&y={{GBgridNum|{{{1}}}|N}}&z=120 | |Wales=https://www.streetmap.co.uk/map.srf?x={{GBgridNum|{{{1}}}|E}}{{#var:pad}}&y={{GBgridNum|{{{1}}}|N}}{{#var:pad}}&z=120 | ||
| | | | ||
}}<!--Old material | }}<!--Old material |
Revision as of 23:07, 23 February 2020
}}