Template:Location map many: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Wikid77
changed latitude/longitude min-validation to check lat_deg+1 or lon_deg+1
meta>Wikid77
noted "1080+ lines"; Changed to skip a marker when mark#size=0; Fixed to omit 2nd "-->" after labels in captions 2-9
Line 2: Line 2:
-- Template for image with markers/labels (see bottom "NOTES")
-- Template for image with markers/labels (see bottom "NOTES")
--
--
--  Warning: Code multi-nested 18 levels across 1050+ lines.
--  Warning: Code multi-nested 18 levels across 1080+ lines.
--  Warning: {{Might}}{{{appear|become}}}{{unreadable}}?
--  Warning: {{Might}}{{{appear|become}}}{{unreadable}}?
--  Warning: This template might exceed wiki-template resources.
--  Warning: This template might exceed wiki-template resources.
Line 37: Line 37:
   --then latitude-1 exists --------------- Verify lat./longitude  
   --then latitude-1 exists --------------- Verify lat./longitude  
-->{{
-->{{
  #ifexpr:{{{lat|{{{lat_deg|}}}+1}}}<{{Location map {{{1}}}|bottom}}
  #ifexpr:{{{lat|{{{lat_deg|}}}}}}<{{Location map {{{1}}}|bottom}}
   |<!--then-->Latitude#1 ({{{lat|{{{lat_deg|}}}}}}) < map<!--
   |<!--then-->Latitude#1 ({{{lat|{{{lat_deg|}}}}}}) < map<!--
   --> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }}
   --> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }}
Line 43: Line 43:
   |<!--then-->Latitude#1 ({{{lat|{{{lat_deg|}}}}}}) > map<!--
   |<!--then-->Latitude#1 ({{{lat|{{{lat_deg|}}}}}}) > map<!--
       --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }}
       --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }}
{{#ifexpr:{{{long|{{{lon_deg|}}}+1}}} <{{Location map {{{1}}}|left}}
{{#ifexpr:{{{long|{{{lon_deg|}}}}}} <{{Location map {{{1}}}|left}}
   |<!--then-->Longitude#1({{{long|{{{lon_deg|}}}}}}) < map<!--
   |<!--then-->Longitude#1({{{long|{{{lon_deg|}}}}}}) < map<!--
       --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }}
       --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }}
Line 53: Line 53:
<div style="position: absolute; z-index: 2; top: {{#expr:  
<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) +  
     | {{#expr: {{#ifeq: {{{lat_dir|}}}|S|-1|1}} * ({{{lat_deg|0}}} + ({{{lat_min|0}}} / 60) + ({{{lat_sec|0}}} / 3600)) }}  
 
({{{lat_sec|0}}} / 3600)) }}  
     | {{{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  
   {{#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)) }}  
{{{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)) }}  
     | {{{long|0}}}  
     | {{{long|0}}}  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}})  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
 
round 1
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
------------------------------------------------ Marker#1 division
------------------------------------------------ Marker#1 division
Line 90: Line 82:
       |{{Location map {{{1}}}|marksize}}
       |{{Location map {{{1}}}|marksize}}
       |<!--else-->8}}px;
       |<!--else-->8}}px;
}}"><!-- specify marker#1 -->[[Image:{{#if: {{{mark|}}}  
}}"><!-- -------------------- show marker#1 -->{{
  | {{{mark}}}  
  #ifeq: {{{marksize|1}}}| 0|<!--then skip-->
  | {{#if: {{Location map {{{1}}}|mark}}|{{Location map {{{1}}}|mark}}|Red pog2.svg}}
  |<!--else-->[[Image:{{#if: {{{mark|}}}  
}}|{{#if: {{{marksize|}}}  
    | {{{mark}}}  
  | {{{marksize}}}  
    | {{#if: {{Location map {{{1}}}|mark}}|{{Location map {{{1}}}|mark}}|Red pog2.svg}}
  | <!--else-->{{#if: {{Location map {{{1}}}|marksize}}
  }}|{{#if: {{{marksize|}}}  
    |{{Location map {{{1}}}|marksize}}|<!--else-->8}}
    | {{{marksize}}}  
  }}<!--endif-->px|{{#if: {{{label|}}}  
    | <!--else-->{{#if: {{Location map {{{1}}}|marksize}}
    | {{{label}}} |<!--else-->{{PAGENAME}}
      |{{Location map {{{1}}}|marksize}}|<!--else-->8}}
  }}<!--endif label-->]]</div><!-- end-div marker1
    }}<!--endif-->px|{{#if: {{{label|}}}  
      | {{{label}}} |<!--else-->{{PAGENAME}}
    }}<!--endif label-->]]<!--
-->}}<!--endif marksize=0
--></div><!-- end-div marker1
---------------------------------------------- Label #1
---------------------------------------------- Label #1
-->{{#ifeq: {{{position|{{{pos|}}}}}} | none  
-->{{#ifeq: {{{position|{{{pos|}}}}}} | none  
Line 130: Line 126:
   --then latitude-2 exists --------------- Verify lat./longitude  
   --then latitude-2 exists --------------- Verify lat./longitude  
-->{{
-->{{
#ifexpr:{{{lat2|{{{lat2_deg|}}}+1}}}<{{Location map {{{1}}}|bottom}}
#ifexpr:{{{lat2|{{{lat2_deg|}}}}}}<{{Location map {{{1}}}|bottom}}
   |<!--then-->Latitude#2 ({{{lat2|{{{lat2_deg|}}}}}}) < map<!--
   |<!--then-->Latitude#2 ({{{lat2|{{{lat2_deg|}}}}}}) < map<!--
   --> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }}
   --> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }}
Line 136: Line 132:
   |<!--then-->Latitude#2 ({{{lat2|{{{lat2_deg|}}}}}}) > map<!--
   |<!--then-->Latitude#2 ({{{lat2|{{{lat2_deg|}}}}}}) > map<!--
       --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }}
       --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }}
{{#ifexpr:{{{long2|{{{lon2_deg|}}}+1}}}
{{#ifexpr:{{{long2|{{{lon2_deg|}}}}}} <{{Location map {{{1}}}|left}}
                <{{Location map {{{1}}}|left}}
   |<!--then-->Longitude#2({{{long2|{{{lon2_deg|}}}}}}) < map<!--
   |<!--then-->Longitude#2({{{long2|{{{lon2_deg|}}}}}}) < map<!--
       --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }}
       --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }}
Line 163: Line 158:
         + ({{{lon2_sec|0}}} / 3600)) }}  
         + ({{{lon2_sec|0}}} / 3600)) }}  
     | <!--else, decimal longitude-->{{{long2|0}}}  
     | <!--else, decimal longitude-->{{{long2|0}}}  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}})  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
 
round 1
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
------------------------------------------------ Marker#2 division
------------------------------------------------ Marker#2 division
--><div style="position: relative; text-align: center; {{#if: {{{mark2size|}}}  
--><div style="position: relative; text-align: center; {{#if: {{{mark2size|}}}  
   | left: -{{#expr: {{{mark2size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark2high|{{{mark2size|8}}} }}} / 2  
   | left: -{{#expr: {{{mark2size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark2high|{{{mark2size|8}}} }}} / 2 round 0 }}px; width: {{{mark2size}}}px; font-size: {{{mark2size}}}px;  
 
round 0 }}px; width: {{{mark2size}}}px; font-size: {{{mark2size}}}px;  
   | <!--else, hunt mark2size@template--> left: -{{#expr:
   | <!--else, hunt mark2size@template--> left: -{{#expr:
     {{#if: {{Location map {{{1}}}|mark2size}}
     {{#if: {{Location map {{{1}}}|mark2size}}
Line 183: Line 174:
     {{#if: {{Location map {{{1}}}|mark2size}}
     {{#if: {{Location map {{{1}}}|mark2size}}
       |{{Location map {{{1}}}|mark2size}}| 8}}px;  
       |{{Location map {{{1}}}|mark2size}}| 8}}px;  
}}"><!-- specify marker#2 --><!--
}}"><!-- -------------------- show marker#2 -->{{
-->[[Image:{{#if: {{{mark2|}}}  
  #ifeq: {{{mark2size|1}}}| 0|<!--then skip-->
  |{{{mark2}}}
  |<!--else-->[[Image:{{#if: {{{mark2|}}}
  |<!--else-->{{#if: {{Location map {{{1}}}|mark2}}
    |{{{mark2}}}
    |{{Location map {{{1}}}|mark2}}|<!--else-->Red pog.svg}}
    |<!--else-->{{#if: {{Location map {{{1}}}|mark2}}
  }}|<!--
      |{{Location map {{{1}}}|mark2}}|<!--else-->Red pog.svg}}
  }}|<!--
----- set image size as 'mark2size'x'mark2high' with defaults --
----- set image size as 'mark2size'x'mark2high' with defaults --
--    ("x" between values, defaults from named-map template or 8)
--    ("x" between values, defaults from named-map template or 8)
Line 202: Line 194:
     -->}}x{{#if: {{{mark2high|}}}<!--B
     -->}}x{{#if: {{{mark2high|}}}<!--B
       -->|{{{mark2high}}}  <!--
       -->|{{{mark2high}}}  <!--
       -->|{{#if: {{Location map {{{1}}}|mark2high}}   <!--
       -->|{{#if: {{Location map {{{1}}}|mark2high}}<!--
       -->  |{{Location map {{{1}}}|mark2high}}  <!--
       -->  |{{Location map {{{1}}}|mark2high}}  <!--
       -->  |<!--else-->{{#if: {{Location map {{{1}}}|mark2size}}<!--
       -->  |<!--else-->{{#if: {{Location map {{{1}}}|mark2size}}<!--
Line 208: Line 200:
       -->}}<!--eif-Loc..mark2high--
       -->}}<!--eif-Loc..mark2high--
     -->}}<!--eif-mark2high-B-->px<!--
     -->}}<!--eif-mark2high-B-->px<!--
-->}}<!--endif mark2size-SENT-->|{{#if: {{{label2|}}}<!--
--> }}<!--endif mark2size-SENT-->|{{#if: {{{label2|}}}<!--
  --> | {{{label2}}}<!--set mouseover alt-text-->
-->   | {{{label2}}}<!--set mouseover alt-text -
  --> | <!--else-->{{PAGENAME}}
-->   | <!--else-->{{PAGENAME}}
  }}<!--endif label2-->]]</div><!-- end-div marker2
    }}<!--endif label2-->]]<!--
-->}}<!--endif mark2size=0
--></div><!-- end-div marker2
---------------------------------------------- Label #2
---------------------------------------------- Label #2
-->{{#ifeq: {{{position2|{{{pos2|}}}}}} | none  
-->{{#ifeq: {{{position2|{{{pos2|}}}}}} | none  
Line 275: Line 269:
         + ({{{lon3_sec|0}}} / 3600)) }}  
         + ({{{lon3_sec|0}}} / 3600)) }}  
     | <!--else, decimal longitude-->{{{long3|0}}}  
     | <!--else, decimal longitude-->{{{long3|0}}}  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}})  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
 
round 1
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
------------------------------------------------ Marker#3 division
------------------------------------------------ Marker#3 division
--><div style="position: relative; text-align: center; {{#if: {{{mark3size|}}}  
--><div style="position: relative; text-align: center; {{#if: {{{mark3size|}}}  
   | left: -{{#expr: {{{mark3size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark3high|{{{mark3size|8}}} }}} / 2  
   | left: -{{#expr: {{{mark3size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark3high|{{{mark3size|8}}} }}} / 2 round 0 }}px; width: {{{mark3size}}}px; font-size: {{{mark3size}}}px;  
 
round 0 }}px; width: {{{mark3size}}}px; font-size: {{{mark3size}}}px;  
   | <!--else, hunt mark3size@template--> left: -{{#expr:
   | <!--else, hunt mark3size@template--> left: -{{#expr:
     {{#if: {{Location map {{{1}}}|mark3size}}
     {{#if: {{Location map {{{1}}}|mark3size}}
Line 297: Line 287:
       |{{Location map {{{1}}}|mark3size}}
       |{{Location map {{{1}}}|mark3size}}
       |<!--else-->8}}px;  
       |<!--else-->8}}px;  
}}"><!-- specify marker#3 --><!--
}}"><!-- -------------------- show marker#3 -->{{
-->[[Image:{{#if: {{{mark3|}}}  
  #ifeq: {{{mark3size|1}}}| 0|<!--then skip-->
  | {{{mark3}}}
  |<!--else-->[[Image:{{#if: {{{mark3|}}}
  | <!--else-->{{#if: {{Location map {{{1}}}|mark3}}
    | {{{mark3}}}
    |{{Location map {{{1}}}|mark3}}|<!--else-->Red pog.svg}}
    | <!--else-->{{#if: {{Location map {{{1}}}|mark3}}
}}|<!--
      |{{Location map {{{1}}}|mark3}}|<!--else-->Red pog.svg}}
  }}|<!--
----- set image size as 'mark3size'x'mark3high' with defaults --
----- set image size as 'mark3size'x'mark3high' with defaults --
--    ("x" between values, defaults from named-map template or 8)
--    ("x" between values, defaults from named-map template or 8)
Line 323: Line 314:
     -->}}<!--eif-mark3high-B-->px<!--
     -->}}<!--eif-mark3high-B-->px<!--
-->}}<!--endif mark3size-SENT-->|{{#if: {{{label3|}}}<!--
-->}}<!--endif mark3size-SENT-->|{{#if: {{{label3|}}}<!--
   --> | {{{label3}}}<!--set mouseover alt-text-->
   --> | {{{label3}}}<!--set mouseover alt-text -
   --> | <!--else-->{{PAGENAME}}
   --> | <!--else-->{{PAGENAME}}
  }}<!--endif label3-->]]</div><!-- end-div marker3
    }}<!--endif label3-->]]<!--
-->}}<!--endif mark3size=0
--></div><!-- end-div marker3
---------------------------------------------- Label #3
---------------------------------------------- Label #3
-->{{#ifeq: {{{position3|{{{pos3|}}}}}} | none  
-->{{#ifeq: {{{position3|{{{pos3|}}}}}} | none  
Line 389: Line 382:
         + ({{{lon4_sec|0}}} / 3600)) }}  
         + ({{{lon4_sec|0}}} / 3600)) }}  
     | <!--else, decimal longitude-->{{{long4|0}}}  
     | <!--else, decimal longitude-->{{{long4|0}}}  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}})  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
 
round 1
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
------------------------------------------------ Marker#4 division
------------------------------------------------ Marker#4 division
--><div style="position: relative; text-align: center; {{#if: {{{mark4size|}}}  
--><div style="position: relative; text-align: center; {{#if: {{{mark4size|}}}  
   | left: -{{#expr: {{{mark4size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark4high|{{{mark4size|8}}} }}} / 2  
   | left: -{{#expr: {{{mark4size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark4high|{{{mark4size|8}}} }}} / 2 round 0 }}px; width: {{{mark4size}}}px; font-size: {{{mark4size}}}px;  
 
round 0 }}px; width: {{{mark4size}}}px; font-size: {{{mark4size}}}px;  
   | <!--else, hunt mark4size@template--> left: -{{#expr:
   | <!--else, hunt mark4size@template--> left: -{{#expr:
     {{#if: {{Location map {{{1}}}|mark4size}}
     {{#if: {{Location map {{{1}}}|mark4size}}
Line 411: Line 400:
       |{{Location map {{{1}}}|mark4size}}
       |{{Location map {{{1}}}|mark4size}}
       |<!--else-->8}}px;  
       |<!--else-->8}}px;  
}}"><!-- specify marker#4 --><!--
}}"><!-- -------------------- show marker#4 -->{{
-->[[Image:{{#if: {{{mark4|}}}  
  #ifeq: {{{mark4size|1}}}| 0|<!--then skip-->
  | {{{mark4}}}
  |<!--else-->[[Image:{{#if: {{{mark4|}}}
  | <!--else-->{{#if: {{Location map {{{1}}}|mark4}}
    | {{{mark4}}}
    |{{Location map {{{1}}}|mark4}}|<!--else-->Red pog.svg}}
    | <!--else-->{{#if: {{Location map {{{1}}}|mark4}}
}}|<!--
      |{{Location map {{{1}}}|mark4}}|<!--else-->Red pog.svg}}
  }}|<!--
----- set image size as 'mark4size'x'mark4high' with defaults --
----- set image size as 'mark4size'x'mark4high' with defaults --
--    ("x" between values, defaults from named-map template or 8)
--    ("x" between values, defaults from named-map template or 8)
Line 437: Line 427:
     -->}}<!--eif-mark4high-B-->px<!--
     -->}}<!--eif-mark4high-B-->px<!--
-->}}<!--endif mark4size-SENT-->|{{#if: {{{label4|}}}<!--
-->}}<!--endif mark4size-SENT-->|{{#if: {{{label4|}}}<!--
   --> | {{{label4}}}<!--set mouseover alt-text-->
   --> | {{{label4}}}<!--set mouseover alt-text -
   --> | <!--else-->{{PAGENAME}}
   --> | <!--else-->{{PAGENAME}}
  }}<!--endif label4-->]]</div><!-- end-div marker4
    }}<!--endif label4-->]]<!--
-->}}<!--endif mark4size=0
--></div><!-- end-div marker4
---------------------------------------------- Label #4
---------------------------------------------- Label #4
-->{{#ifeq: {{{position4|{{{pos4|}}}}}} | none  
-->{{#ifeq: {{{position4|{{{pos4|}}}}}} | none  
Line 503: Line 495:
         + ({{{lon5_sec|0}}} / 3600)) }}  
         + ({{{lon5_sec|0}}} / 3600)) }}  
     | <!--else, decimal longitude-->{{{long5|0}}}  
     | <!--else, decimal longitude-->{{{long5|0}}}  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}})  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
 
round 1
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
------------------------------------------------ Marker#5 division
------------------------------------------------ Marker#5 division
--><div style="position: relative; text-align: center; {{#if: {{{mark5size|}}}  
--><div style="position: relative; text-align: center; {{#if: {{{mark5size|}}}  
   | left: -{{#expr: {{{mark5size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark5high|{{{mark5size|8}}} }}} / 2  
   | left: -{{#expr: {{{mark5size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark5high|{{{mark5size|8}}} }}} / 2 round 0 }}px; width: {{{mark5size}}}px; font-size: {{{mark5size}}}px;  
 
round 0 }}px; width: {{{mark5size}}}px; font-size: {{{mark5size}}}px;  
   | <!--else, hunt mark5size@template--> left: -{{#expr:
   | <!--else, hunt mark5size@template--> left: -{{#expr:
     {{#if: {{Location map {{{1}}}|mark5size}}
     {{#if: {{Location map {{{1}}}|mark5size}}
Line 525: Line 513:
       |{{Location map {{{1}}}|mark5size}}
       |{{Location map {{{1}}}|mark5size}}
       |<!--else-->8}}px;  
       |<!--else-->8}}px;  
}}"><!-- specify marker#5 --><!--
}}"><!-- -------------------- show marker#5 -->{{
-->[[Image:{{#if: {{{mark5|}}}  
  #ifeq: {{{mark5size|1}}}| 0|<!--then skip-->
  | {{{mark5}}}
  |<!--else-->[[Image:{{#if: {{{mark5|}}}
  | <!--else-->{{#if: {{Location map {{{1}}}|mark5}}
    | {{{mark5}}}
    |{{Location map {{{1}}}|mark5}}|<!--else-->Red pog.svg}}
    | <!--else-->{{#if: {{Location map {{{1}}}|mark5}}
}}|<!--
      |{{Location map {{{1}}}|mark5}}|<!--else-->Red pog.svg}}
  }}|<!--
----- set image size as 'mark5size'x'mark5high' with defaults --
----- set image size as 'mark5size'x'mark5high' with defaults --
--    ("x" between values, defaults from named-map template or 8)
--    ("x" between values, defaults from named-map template or 8)
Line 551: Line 540:
     -->}}<!--eif-mark5high-B-->px<!--
     -->}}<!--eif-mark5high-B-->px<!--
-->}}<!--endif mark5size-SENT-->|{{#if: {{{label5|}}}<!--
-->}}<!--endif mark5size-SENT-->|{{#if: {{{label5|}}}<!--
   --> | {{{label5}}}<!--set mouseover alt-text-->
   --> | {{{label5}}}<!--set mouseover alt-text -
   --> | <!--else-->{{PAGENAME}}
   --> | <!--else-->{{PAGENAME}}
  }}<!--endif label5-->]]</div><!-- end-div marker5
    }}<!--endif label5-->]]<!--
-->}}<!--endif mark5size=0
--></div><!-- end-div marker5
---------------------------------------------- Label #5
---------------------------------------------- Label #5
-->{{#ifeq: {{{position5|{{{pos5|}}}}}} | none  
-->{{#ifeq: {{{position5|{{{pos5|}}}}}} | none  
Line 617: Line 608:
         + ({{{lon6_sec|0}}} / 3600)) }}  
         + ({{{lon6_sec|0}}} / 3600)) }}  
     | <!--else, decimal longitude-->{{{long6|0}}}  
     | <!--else, decimal longitude-->{{{long6|0}}}  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}})  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
 
round 1
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
------------------------------------------------ Marker#6 division
------------------------------------------------ Marker#6 division
--><div style="position: relative; text-align: center; {{#if: {{{mark6size|}}}  
--><div style="position: relative; text-align: center; {{#if: {{{mark6size|}}}  
   | left: -{{#expr: {{{mark6size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark6high|{{{mark6size|8}}} }}} / 2  
   | left: -{{#expr: {{{mark6size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark6high|{{{mark6size|8}}} }}} / 2 round 0 }}px; width: {{{mark6size}}}px; font-size: {{{mark6size}}}px;  
 
round 0 }}px; width: {{{mark6size}}}px; font-size: {{{mark6size}}}px;  
   | <!--else, hunt mark6size@template--> left: -{{#expr:
   | <!--else, hunt mark6size@template--> left: -{{#expr:
     {{#if: {{Location map {{{1}}}|mark6size}}
     {{#if: {{Location map {{{1}}}|mark6size}}
Line 639: Line 626:
       |{{Location map {{{1}}}|mark6size}}
       |{{Location map {{{1}}}|mark6size}}
       |<!--else-->8}}px;  
       |<!--else-->8}}px;  
}}"><!-- specify marker#6 --><!--
}}"><!-- -------------------- show marker#6 -->{{
-->[[Image:{{#if: {{{mark6|}}}  
  #ifeq: {{{mark6size|1}}}| 0|<!--then skip-->
  | {{{mark6}}}
  |<!--else-->[[Image:{{#if: {{{mark6|}}}
  | <!--else-->{{#if: {{Location map {{{1}}}|mark6}}
    | {{{mark6}}}
    |{{Location map {{{1}}}|mark6}}|<!--else-->Red pog.svg}}
    | <!--else-->{{#if: {{Location map {{{1}}}|mark6}}
}}|<!--
      |{{Location map {{{1}}}|mark6}}|<!--else-->Red pog.svg}}
  }}|<!--
----- set image size as 'mark6size'x'mark6high' with defaults --
----- set image size as 'mark6size'x'mark6high' with defaults --
--    ("x" between values, defaults from named-map template or 8)
--    ("x" between values, defaults from named-map template or 8)
Line 665: Line 653:
     -->}}<!--eif-mark6high-B-->px<!--
     -->}}<!--eif-mark6high-B-->px<!--
-->}}<!--endif mark6size-SENT-->|{{#if: {{{label6|}}}<!--
-->}}<!--endif mark6size-SENT-->|{{#if: {{{label6|}}}<!--
   --> | {{{label6}}}<!--set mouseover alt-text-->
   --> | {{{label6}}}<!--set mouseover alt-text -
   --> | <!--else-->{{PAGENAME}}
   --> | <!--else-->{{PAGENAME}}
  }}<!--endif label6-->]]</div><!-- end-div marker6
    }}<!--endif label6-->]]<!--
-->}}<!--endif mark6size=0
--></div><!-- end-div marker6
---------------------------------------------- Label #6
---------------------------------------------- Label #6
-->{{#ifeq: {{{position6|{{{pos6|}}}}}} | none  
-->{{#ifeq: {{{position6|{{{pos6|}}}}}} | none  
Line 731: Line 721:
         + ({{{lon7_sec|0}}} / 3600)) }}  
         + ({{{lon7_sec|0}}} / 3600)) }}  
     | <!--else, decimal longitude-->{{{long7|0}}}  
     | <!--else, decimal longitude-->{{{long7|0}}}  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}})  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
 
round 1
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
------------------------------------------------ Marker#7 division
------------------------------------------------ Marker#7 division
--><div style="position: relative; text-align: center; {{#if: {{{mark7size|}}}  
--><div style="position: relative; text-align: center; {{#if: {{{mark7size|}}}  
   | left: -{{#expr: {{{mark7size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark7high|{{{mark7size|8}}} }}} / 2  
   | left: -{{#expr: {{{mark7size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark7high|{{{mark7size|8}}} }}} / 2 round 0 }}px; width: {{{mark7size}}}px; font-size: {{{mark7size}}}px;  
 
round 0 }}px; width: {{{mark7size}}}px; font-size: {{{mark7size}}}px;  
   | <!--else, hunt mark7size@template--> left: -{{#expr:
   | <!--else, hunt mark7size@template--> left: -{{#expr:
     {{#if: {{Location map {{{1}}}|mark7size}}
     {{#if: {{Location map {{{1}}}|mark7size}}
Line 753: Line 739:
       |{{Location map {{{1}}}|mark7size}}
       |{{Location map {{{1}}}|mark7size}}
       |<!--else-->8}}px;  
       |<!--else-->8}}px;  
}}"><!-- specify marker#7 --><!--
}}"><!-- -------------------- show marker#7 -->{{
-->[[Image:{{#if: {{{mark7|}}}  
  #ifeq: {{{mark7size|1}}}| 0|<!--then skip-->
  | {{{mark7}}}
  |<!--else-->[[Image:{{#if: {{{mark7|}}}
  | <!--else-->{{#if: {{Location map {{{1}}}|mark7}}
    | {{{mark7}}}
    |{{Location map {{{1}}}|mark7}}|<!--else-->Red pog.svg}}
    | <!--else-->{{#if: {{Location map {{{1}}}|mark7}}
}}|<!--
      |{{Location map {{{1}}}|mark7}}|<!--else-->Red pog.svg}}
  }}|<!--
----- set image size as 'mark7size'x'mark7high' with defaults --
----- set image size as 'mark7size'x'mark7high' with defaults --
--    ("x" between values, defaults from named-map template or 8)
--    ("x" between values, defaults from named-map template or 8)
Line 779: Line 766:
     -->}}<!--eif-mark7high-B-->px<!--
     -->}}<!--eif-mark7high-B-->px<!--
-->}}<!--endif mark7size-SENT-->|{{#if: {{{label7|}}}<!--
-->}}<!--endif mark7size-SENT-->|{{#if: {{{label7|}}}<!--
   --> | {{{label7}}}<!--set mouseover alt-text-->
   --> | {{{label7}}}<!--set mouseover alt-text -
   --> | <!--else-->{{PAGENAME}}
   --> | <!--else-->{{PAGENAME}}
  }}<!--endif label7-->]]</div><!-- end-div marker7
    }}<!--endif label7-->]]<!--
-->}}<!--endif mark7size=0
--></div><!-- end-div marker7
---------------------------------------------- Label #7
---------------------------------------------- Label #7
-->{{#ifeq: {{{position7|{{{pos7|}}}}}} | none  
-->{{#ifeq: {{{position7|{{{pos7|}}}}}} | none  
Line 845: Line 834:
         + ({{{lon8_sec|0}}} / 3600)) }}  
         + ({{{lon8_sec|0}}} / 3600)) }}  
     | <!--else, decimal longitude-->{{{long8|0}}}  
     | <!--else, decimal longitude-->{{{long8|0}}}  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}})  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
 
round 1
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
------------------------------------------------ Marker#8 division
------------------------------------------------ Marker#8 division
--><div style="position: relative; text-align: center; {{#if: {{{mark8size|}}}  
--><div style="position: relative; text-align: center; {{#if: {{{mark8size|}}}  
   | left: -{{#expr: {{{mark8size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark8high|{{{mark8size|8}}} }}} / 2  
   | left: -{{#expr: {{{mark8size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark8high|{{{mark8size|8}}} }}} / 2 round 0 }}px; width: {{{mark8size}}}px; font-size: {{{mark8size}}}px;  
 
round 0 }}px; width: {{{mark8size}}}px; font-size: {{{mark8size}}}px;  
   | <!--else, hunt mark8size@template--> left: -{{#expr:
   | <!--else, hunt mark8size@template--> left: -{{#expr:
     {{#if: {{Location map {{{1}}}|mark8size}}
     {{#if: {{Location map {{{1}}}|mark8size}}
Line 867: Line 852:
       |{{Location map {{{1}}}|mark8size}}
       |{{Location map {{{1}}}|mark8size}}
       |<!--else-->8}}px;  
       |<!--else-->8}}px;  
}}"><!-- specify marker#8 --><!--
}}"><!-- -------------------- show marker#8 -->{{
-->[[Image:{{#if: {{{mark8|}}}  
  #ifeq: {{{mark8size|1}}}| 0|<!--then skip-->
  | {{{mark8}}}
  |<!--else-->[[Image:{{#if: {{{mark8|}}}
  | <!--else-->{{#if: {{Location map {{{1}}}|mark8}}
    | {{{mark8}}}
    |{{Location map {{{1}}}|mark8}}|<!--else-->Red pog.svg}}
    | <!--else-->{{#if: {{Location map {{{1}}}|mark8}}
}}|<!--
      |{{Location map {{{1}}}|mark8}}|<!--else-->Red pog.svg}}
  }}|<!--endif mark8
----- set image size as 'mark8size'x'mark8high' with defaults --
----- set image size as 'mark8size'x'mark8high' with defaults --
--    ("x" between values, defaults from named-map template or 8)
--    ("x" between values, defaults from named-map template or 8)
Line 893: Line 879:
     -->}}<!--eif-mark8high-B-->px<!--
     -->}}<!--eif-mark8high-B-->px<!--
-->}}<!--endif mark8size-SENT-->|{{#if: {{{label8|}}}<!--
-->}}<!--endif mark8size-SENT-->|{{#if: {{{label8|}}}<!--
   --> | {{{label8}}}<!--set mouseover alt-text-->
   --> | {{{label8}}}<!--set mouseover alt-text -
   --> | <!--else-->{{PAGENAME}}
   --> | <!--else-->{{PAGENAME}}
  }}<!--endif label8-->]]</div><!-- end-div marker8
    }}<!--endif label8-->]]<!--
-->}}<!--endif mark8size=0
--></div><!-- end-div marker8
---------------------------------------------- Label #8
---------------------------------------------- Label #8
-->{{#ifeq: {{{position8|{{{pos8|}}}}}} | none  
-->{{#ifeq: {{{position8|{{{pos8|}}}}}} | none  
Line 959: Line 947:
         + ({{{lon9_sec|0}}} / 3600)) }}  
         + ({{{lon9_sec|0}}} / 3600)) }}  
     | <!--else, decimal longitude-->{{{long9|0}}}  
     | <!--else, decimal longitude-->{{{long9|0}}}  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}})  
   }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
 
round 1
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
------------------------------------------------ Marker#9 division
------------------------------------------------ Marker#9 division
--><div style="position: relative; text-align: center; {{#if: {{{mark9size|}}}  
--><div style="position: relative; text-align: center; {{#if: {{{mark9size|}}}  
   | left: -{{#expr: {{{mark9size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark9high|{{{mark9size|8}}} }}} / 2  
   | left: -{{#expr: {{{mark9size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark9high|{{{mark9size|8}}} }}} / 2 round 0 }}px; width: {{{mark9size}}}px; font-size: {{{mark9size}}}px;  
 
round 0 }}px; width: {{{mark9size}}}px; font-size: {{{mark9size}}}px;  
   | <!--else, hunt mark9size@template--> left: -{{#expr:
   | <!--else, hunt mark9size@template--> left: -{{#expr:
     {{#if: {{Location map {{{1}}}|mark9size}}
     {{#if: {{Location map {{{1}}}|mark9size}}
Line 981: Line 965:
       |{{Location map {{{1}}}|mark9size}}
       |{{Location map {{{1}}}|mark9size}}
       |<!--else-->8}}px;  
       |<!--else-->8}}px;  
}}"><!-- specify marker#9 --><!--
}}"><!-- -------------------- show marker#9 -->{{
-->[[Image:{{#if: {{{mark9|}}}  
  #ifeq: {{{mark9size|1}}}| 0|<!--then skip-->
  | {{{mark9}}}
  |<!--else-->[[Image:{{#if: {{{mark9|}}}
  | <!--else-->{{#if: {{Location map {{{1}}}|mark9}}
    | {{{mark9}}}
    |{{Location map {{{1}}}|mark9}}|<!--else-->Red pog.svg}}
    | <!--else-->{{#if: {{Location map {{{1}}}|mark9}}
}}|<!--
      |{{Location map {{{1}}}|mark9}}|<!--else-->Red pog.svg}}
  }}|<!--endif mark9
----- set image size as 'mark9size'x'mark9high' with defaults --
----- set image size as 'mark9size'x'mark9high' with defaults --
--    ("x" between values, defaults from named-map template or 8)
--    ("x" between values, defaults from named-map template or 8)
Line 1,007: Line 992:
     -->}}<!--eif-mark9high-B-->px<!--
     -->}}<!--eif-mark9high-B-->px<!--
-->}}<!--endif mark9size-SENT-->|{{#if: {{{label9|}}}<!--
-->}}<!--endif mark9size-SENT-->|{{#if: {{{label9|}}}<!--
   --> | {{{label9}}}<!--set mouseover alt-text-->
   --> | {{{label9}}}<!--set mouseover alt-text -
   --> | <!--else-->{{PAGENAME}}
   --> | <!--else-->{{PAGENAME}}
  }}<!--endif label9-->]]</div><!-- end-div marker9
    }}<!--endif label9-->]]<!--
-->}}<!--endif mark9size=0
--></div><!-- end-div marker9
---------------------------------------------- Label #9
---------------------------------------------- Label #9
-->{{#ifeq: {{{position9|{{{pos9|}}}}}} | none  
-->{{#ifeq: {{{position9|{{{pos9|}}}}}} | none  
Line 1,072: Line 1,059:
-- 07Oct07 Set label bottom position = -mark*.50 - label*.02 + 4.9
-- 07Oct07 Set label bottom position = -mark*.50 - label*.02 + 4.9
-- 08Oct07 Set label bottom position = -mark*.45 - label*.01 + 1.9
-- 08Oct07 Set label bottom position = -mark*.45 - label*.01 + 1.9
-- 20Dec07 Changed to skip a marker when mark#size=0.
-- 20Dec07 Fixed to omit 2nd "-->" after labels in captions 2-9.
-->
-->
{{/doc}}
{{/doc}}

Revision as of 19:32, 20 December 2007

" after labels in captions 2-9. --> Template:Location map many/doc