Template:Streetmap: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Try to fix it |
||
Line 1: | Line 1: | ||
{{#vardefine:hlong|{{#expr:({{#len:{{{1}}} }}-2)/2}} }}{{#vardefine:add|{{#switch:{{#sub:{{{1}}}|0|1}} | {{#vardefine:hlong|{{#expr:({{#len:{{{1}}} }}-2)/2}} }}{{#vardefine:pad|{{#switch:{{#var:hlong}} | ||
|0=50000 | |||
|1=0000 | |||
|2=000 | |||
|3=00 | |||
|4=0 | |||
|}}}}{{#vardefine:add|{{#switch:{{#sub:{{{1}}}|0|1}} | |||
|J | |J | ||
|O | |O | ||
|T=5 | |T=5 | ||
|0}} }}{{#vardefine:n1snip| | |0}} }}{{#vardefine:n1snip|{{#sub:{{{1}}}|2|{{#var:hlong}}}}{{#var:pad}}}}{{#vardefine:n2snip|{{#sub:{{{1}}}|{{#expr:{{#var:hlong}}+2}}|{{#var:hlong}}}}{{#var:pad}}}}{{#vardefine:zoom|{{#expr:150-{{#var:hlong}}*10}}}}http://streetmap.co.uk/grid/{{#switch:{{#sub:{{{1}}}|1|1}} | ||
|A | |A | ||
|F | |F |