Template:Iemap: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
No edit summary
RB (talk | contribs)
No edit summary
Line 1: Line 1:
{{#vardefine:zoom|{{#ifeq:{{part-BI|{{#var:shire}} }}|Northern Ireland|1|3}} }}{{#vardefine:halve|{{#expr:({{#len:{{{1}}}}}-1)/2}} }}{{#vardefine:N1|{{#sub:{{{1}}}|1|{{#var:halve}} }} }}{{#vardefine:N2|{{#sub:{{{1}}}|{{#expr:{{#var:halve}}+1}}|{{#var:halve}} }} }}[http://maps.osi.ie/publicviewer/#V1,{{iegridL1|{{{1}}}}}{{#var:N1}},{{iegridL2|{{{1}}}}}{{#var:N2}},{{#var:zoom}},1 {{{1}}}]<noinclude>[[Category:Map templates|Iemap]] [[Category:Irish map templates|Iemap]]
{{#vardefine:zoom|{{#ifeq:{{part-BI|{{#var:shire}} }}|Northern Ireland|1|3}} }}{{#vardefine:halve|{{#expr:({{#len:{{{1}}}}}-1)/2}} }}{{#vardefine:pack|{{#switch:{{#var:halve}}
|1=0000
|2=000
|3=00
|4=0
|}}{{#vardefine:N1|{{#sub:{{{1}}}|1|{{#var:halve}} }}{{#var:pack}} }}{{#vardefine:N2|{{#sub:{{{1}}}|{{#expr:{{#var:halve}}+1}}|{{#var:halve}} }}{{#var:pack}} }}http://maps.osi.ie/publicviewer/#V1,{{iegridL1|{{{1}}}}}{{#var:N1}},{{iegridL2|{{{1}}}}}{{#var:N2}},{{#var:zoom}},1<noinclude>[[Category:Map templates|Iemap]] [[Category:Irish map templates|Iemap]]

Revision as of 06:32, 25 October 2012

{{#vardefine:pack|00http://maps.osi.ie/publicviewer/#V1,{{1,}}},3,1