Template:Location map: Difference between revisions

Jump to navigation Jump to search
imported>J.smith
(Undid revision 158473940 by Wikid77 (talk) - problem with cache was fixed - rv fixes issues with wierd image rd on commons.)
imported>Chris G
(alt for the image, as suggested in the talk page)
Line 9: Line 9:
     | {{#if:{{{caption|}}}|#CCCCCC|none}}
     | {{#if:{{{caption|}}}|#CCCCCC|none}}
   }};
   }};
}} padding: 0px; width: {{{width|240}}}px">[[image:{{#if: {{{AlternativeMap|}}} | {{{AlternativeMap}}} | {{Location map {{{1}}}|image}} }}|{{{width|240}}}px|{{#if: {{{label|}}}  
}} padding: 0px; width: {{{width|240}}}px">[[image:{{#if: {{{AlternativeMap|}}} | {{{AlternativeMap}}} | {{Location map {{{1}}}|image}} }}|{{{width|240}}}px|{{#if:{{{alt|}}}|{{{alt}}}|{{#if:{{{label|}}}|{{{label}}}|{{PAGENAME}}}} is located in {{Location map {{{1}}}|name}}}}]]<br /><div style="position: absolute; z-index: 2; top: {{#expr:  
  | {{{label}}}  
  | {{PAGENAME}}  
}} ({{Location map {{{1}}}|name}})]]<br /><div style="position: absolute; z-index: 2; top: {{#expr:  
   100 * ({{Location map {{{1}}}|top}} - {{#if: {{{lat_deg|}}}  
   100 * ({{Location map {{{1}}}|top}} - {{#if: {{{lat_deg|}}}  
     | {{#expr: {{#ifeq: {{{lat_dir|}}}|S|-1|1}} * ({{{lat_deg|0}}} + ({{{lat_min|0}}} / 60) + {{#if:{{{lat_sec|}}}|({{{lat_sec|0}}} / 3600)|0}}) }}  
     | {{#expr: {{#ifeq: {{{lat_dir|}}}|S|-1|1}} * ({{{lat_deg|0}}} + ({{{lat_min|0}}} / 60) + {{#if:{{{lat_sec|}}}|({{{lat_sec|0}}} / 3600)|0}}) }}  

Revision as of 10:54, 7 January 2009