Template:Iemap: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
mNo 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:pack|{{#switch:{{#var:halve}}
<!--{{#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
|1=0000
|2=000
|2=000
|3=00
|3=00
|4=0
|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}},3<noinclude>[[Category:Map templates|Iemap]] [[Category:Irish map templates|Iemap]]
|}}}}{{#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}},3--><noinclude>[[Category:Map templates|Iemap]] [[Category:Irish map templates|Iemap]]

Latest revision as of 11:29, 8 January 2020