Template:Streetmap: Difference between revisions

From Wikishire
Jump to navigation Jump to search
No edit summary
RB (talk | contribs)
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|{{#expr:{{#sub:{{{1}}}|2|{{#var:hlong}}}}*10^(5-{{#var:hlong}}) round0}}}}{{#vardefine:n2snip|{{#expr:{{#sub:{{{1}}}|{{#expr:{{#var:hlong}}+2}}|{{#var:hlong}}}}*10^(5-{{#var:hlong}}) round0}} }}{{#vardefine:zoom|{{#expr:150-{{#var:hlong}}*10}}}}http://streetmap.co.uk/grid/{{#switch:{{#sub:{{{1}}}|1|1}}
|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

Revision as of 22:40, 4 July 2014