Template:Location map: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>MZMcBride
moved cats, +protection tag
meta>MJCdetroit
Made lat_sec and lon_sec conditional with the #expr---see talk
Line 14: Line 14:
}} ({{Location map {{{1}}}|name}})]]<br /><div style="position: absolute; z-index: 2; top: {{#expr:  
}} ({{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) + ({{{lat_sec|0}}} / 3600)) }}  
     | {{#expr: {{#ifeq: {{{lat_dir|}}}|S|-1|1}} * ({{{lat_deg|0}}} + ({{{lat_min|0}}} / 60) + {{#if:{{{lat_sec|}}}|({{{lat_sec|0}}} / 3600)|0}}) }}  
     | {{{lat|0}}}  
     | {{{lat|0}}}  
   }}) / ({{Location map {{{1}}}|top}} - {{Location map {{{1}}}|bottom}}) round 1
   }}) / ({{Location map {{{1}}}|top}} - {{Location map {{{1}}}|bottom}}) round 1
}}%; left: {{#expr:  
}}%; left: {{#expr:  
   {{#expr:{{#if:{{Location map {{{1}}}|crosses180}}|{{#ifeq: {{{lon_dir|}}}|W|-36000/({{Location map {{{1}}}|left}}-{{Location map {{{1}}}|right}})|}}|}}}} + 100 * ({{#if: {{{lon_deg|}}}  
   {{#expr:{{#if:{{Location map {{{1}}}|crosses180}}|{{#ifeq: {{{lon_dir|}}}|W|-36000/({{Location map {{{1}}}|left}}-{{Location map {{{1}}}|right}})|}}|}}}} + 100 * ({{#if: {{{lon_deg|}}}  
     | {{#expr: {{#ifeq: {{{lon_dir|}}}|W|-1|1}} * ({{{lon_deg|0}}} + ({{{lon_min|0}}} / 60) + ({{{lon_sec|0}}} / 3600)) }}  
     | {{#expr: {{#ifeq: {{{lon_dir|}}}|W|-1|1}} * ({{{lon_deg|0}}} + ({{{lon_min|0}}} / 60) + {{#if:{{{lon_sec|}}}|({{{lon_sec|0}}} / 3600)|0}}) }}  
     | {{{long|0}}}  
     | {{{long|0}}}  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1

Revision as of 19:49, 27 October 2007