|
|
(21 intermediate revisions by 9 users not shown) |
Line 1: |
Line 1: |
| <includeonly><!-- | | <includeonly>{{#invoke:Location map/multi|many}}</includeonly><noinclude> |
| -- Template for image with markers/labels (see bottom "NOTES")
| |
| --
| |
| -- This template overlays 9 specified markers/labels on a given
| |
| -- map (in the manner of "Template:Location_map") but also
| |
| -- checks each latitude/longitude against border limits.
| |
| --
| |
| -- Warning: Code multi-nested 18 levels across 1080+ lines.
| |
| -- Warning: {{Might}}{{{appear|become}}}{{unreadable}}?
| |
| -- Warning: This template might exceed wiki-template resources.
| |
| -- Warning: Adding spaces can kill results.
| |
| ----------------------------------------------- Begin box division
| |
| --><div style="width: {{#expr: {{{width|240}}} + 2 }}px; {{#if: {{{caption|}}}
| |
| | padding: 3px; border: 1px solid {{#if: {{{border|}}}
| |
| | {{{border|none}}}
| |
| | #CCCCCC
| |
| }}; margin: 3px;
| |
| }} float:{{#switch:{{{float|}}}
| |
| | "center"=none | center=none | "left"=left | left=left
| |
| | "right"=right | right=right | "none"=none | none=none
| |
| |right}}; clear:{{#switch:{{{float|}}}
| |
| | "center"=both | center=both | "left"=left | left=left
| |
| | "right"=right | right=right | "none"=none | none=none
| |
| |right}}; {{#if: {{{caption|}}}
| |
| | ;background:#F9F9F9"|"
| |
| }}><!--
| |
| ---------------------------------------------- Begin Map division
| |
| --><div style="position: relative;{{#ifeq: {{{border|}}} | none |
| |
| |border: 1px solid {{#if: {{{border|}}}
| |
| | {{{border}}}
| |
| | {{#if:{{{caption|}}}|#CCCCCC|none}}
| |
| }};
| |
| }} padding: 0px; width: {{{width|240}}}px">[[image:{{#if: {{{AlternativeMap|}}}
| |
| | {{{AlternativeMap}}}
| |
| | {{Location map {{{1}}}|image}} }}|{{{width|240}}}px|{{#if: {{{label|}}}
| |
| | {{{label}}}
| |
| | {{PAGENAME}}
| |
| }}<!-- endif label--> ({{Location map {{{1}}}|name}})]]<br /><!--
| |
| ================================================= Marker/Label #1
| |
| -->{{#if: {{{lat|{{{lat_deg|}}} }}} | <!--
| |
| --then latitude-1 exists --------------- Verify lat./longitude
| |
| -->{{
| |
| #ifexpr:{{{lat|{{{lat_deg|}}}}}}<{{Location map {{{1}}}|bottom}}
| |
| |<!--then-->Latitude#1 ({{{lat|{{{lat_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }}
| |
| {{#ifexpr: {{{lat|{{{lat_deg|}}}}}} > {{Location map {{{1}}}|top}}
| |
| |<!--then-->Latitude#1 ({{{lat|{{{lat_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }}
| |
| {{#ifexpr:{{{long|{{{lon_deg|}}}}}} <{{Location map {{{1}}}|left}}
| |
| |<!--then-->Longitude#1({{{long|{{{lon_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }}
| |
| {{#ifexpr: {{{long|{{{lon_deg|}}}}}}
| |
| > {{Location map {{{1}}}|right}}
| |
| |<!--then-->Longitude#1({{{long|{{{lon_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}}
| |
| <!-- --------------------------------- Begin point division #1 -->
| |
| <div style="position: absolute; z-index: 2; top: {{#expr:
| |
| 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)) }}
| |
| | {{{lat|0}}}
| |
| }}) / ({{Location map {{{1}}}|top}} - {{Location map {{{1}}}|bottom}}) round 1
| |
| }}%; 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: {{#ifeq: {{{lon_dir|}}}|W|-1|1}} * ({{{lon_deg|0}}} + ({{{lon_min|0}}} / 60) + ({{{lon_sec|0}}} / 3600)) }}
| |
| | {{{long|0}}}
| |
| }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
| |
| }}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
| |
| ------------------------------------------------ Marker#1 division
| |
| --><div style="position: relative; text-align: center; {{
| |
| #if: {{{marksize|}}}
| |
| | left: -{{#expr: {{{marksize}}} / 2 round 0 }}px; <!--
| |
| --> top: -{{#expr:{{{markhigh|{{{marksize}}}}}}/2 round 0}}px;<!--
| |
| --> width: {{{marksize}}}px; font-size: {{{marksize}}}px;
| |
| | left: -{{#expr: {{#if: {{Location map {{{1}}}|marksize}}
| |
| |{{Location map {{{1}}}|marksize}}
| |
| |<!--else-->8}} / 2 round 0 }}px; top: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|markhigh}}
| |
| |{{Location map {{{1}}}|markhigh}}
| |
| |<!--else-->{{#if: {{Location map {{{1}}}|marksize}}
| |
| |{{Location map {{{1}}}|marksize}} |<!--else-->8}}
| |
| }} / 2 round 0 }}px; width: {{
| |
| #if: {{Location map {{{1}}}|marksize}}
| |
| |{{Location map {{{1}}}|marksize}}
| |
| |<!--else-->8}}px; font-size: {{
| |
| #if: {{Location map {{{1}}}|marksize}}
| |
| |{{Location map {{{1}}}|marksize}}
| |
| |<!--else-->8}}px;
| |
| }}"><!-- -------------------- show marker#1 -->{{
| |
| #ifeq: {{{marksize|1}}}| 0|<!--then skip-->
| |
| |<!--else-->[[Image:{{#if: {{{mark|}}}
| |
| | {{{mark}}}
| |
| | {{#if: {{Location map {{{1}}}|mark}}|{{Location map {{{1}}}|mark}}|Red pog.svg}}
| |
| }}|{{#if: {{{marksize|}}}
| |
| | {{{marksize}}}
| |
| | <!--else-->{{#if: {{Location map {{{1}}}|marksize}}
| |
| |{{Location map {{{1}}}|marksize}}|<!--else-->8}}
| |
| }}<!--endif-->px|{{#if: {{{label|}}}
| |
| | {{{label}}} |<!--else-->{{PAGENAME}}
| |
| }}<!--endif label-->]]<!--
| |
| -->}}<!--endif marksize=0
| |
| --></div><!-- end-div marker1
| |
| ---------------------------------------------- Label #1
| |
| -->{{#ifeq: {{{position|{{{pos|}}}}}} | none
| |
| |
| |
| |<div style="font-size: {{{label_size|90}}}%; line-height: 110%;
| |
| position: relative; top: -1.5em; width: 6em;
| |
| {{#switch: {{{position|{{{pos|right}}}}}}
| |
| |left = top:-{{#expr: {{{markhigh|{{{marksize|8}}}}}}*0.76
| |
| + {{{label_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: -{{#expr: 6.05 + {{{marksize|8}}}/21
| |
| + {{{label_size|90}}}/1855 }}em; text-align: right;
| |
| |right = top: -{{#expr: {{{markhigh|{{{marksize|8}}}}}}*0.76
| |
| + {{{label_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: {{#expr: 0.37 + {{{marksize|8}}}/165
| |
| + {{{label_size|90}}}/505 }}em; text-align: left;
| |
| |top = top:-{{#expr: {{{markhigh|{{{marksize|8}}}}}}*1.78
| |
| + {{{label_size|90}}}*.15 + 1.5 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |bottom = top: {{#expr: -{{{markhigh|{{{marksize|8}}}}}}*.45
| |
| - {{{label_size|90}}}*.01 + 1.9 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |<!--out-->}}"><span style="padding: 1px;
| |
| {{#if: {{{background|{{{bg|}}}}}}
| |
| | background-color: {{{background|{{{bg}}}}}};
| |
| }}">{{{label|}}}</span></div><!-- end-div label1 -->
| |
| }}</div><!--end-div point#1-->
| |
| |<!--else, no latitude1 -->}}<!--endif lat* --
| |
| ================================================= Marker/Label #2
| |
| -->{{#if: {{{lat2|{{{lat2_deg|}}} }}} | <!--
| |
| --then latitude-2 exists --------------- Verify lat./longitude
| |
| -->{{
| |
| #ifexpr:{{{lat2|{{{lat2_deg|}}}}}}<{{Location map {{{1}}}|bottom}}
| |
| |<!--then-->Latitude#2 ({{{lat2|{{{lat2_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }}
| |
| {{#ifexpr: {{{lat2|{{{lat2_deg|}}}}}} > {{Location map {{{1}}}|top}}
| |
| |<!--then-->Latitude#2 ({{{lat2|{{{lat2_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }}
| |
| {{#ifexpr:{{{long2|{{{lon2_deg|}}}}}} <{{Location map {{{1}}}|left}}
| |
| |<!--then-->Longitude#2({{{long2|{{{lon2_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }}
| |
| {{#ifexpr: {{{long2|{{{lon2_deg|}}}}}}
| |
| > {{Location map {{{1}}}|right}}
| |
| |<!--then-->Longitude#2({{{long2|{{{lon2_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}}
| |
| <!-- --------------------------------- Begin point division #2 -->
| |
| <div style="position: absolute; z-index: 2;
| |
| top: {{#expr: <!--To DEBUG, add ">" above to show calc below-->
| |
| 100 * ({{Location map {{{1}}}|top}} - {{#if: {{{lat2_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lat2_dir|}}}|S|-1|1}}
| |
| * ( {{{lat2_deg|0}}} + ({{{lat2_min|0}}} / 60)
| |
| + ( {{{lat2_sec|0}}} / 3600) ) }}
| |
| | <!--else, decimal form-->{{{lat2|0}}}
| |
| }}) / ( {{Location map {{{1}}}|top}}
| |
| - {{Location map {{{1}}}|bottom}} ) round 1
| |
| }}%; left: {{#expr:
| |
| {{#expr:{{#if:{{Location map {{{1}}}|crosses180}}
| |
| |{{#ifeq: {{{lon2_dir|}}}|W|-36000/({{Location map {{{1}}}|left}}-{{Location map {{{1}}}|right}})|}}|}}
| |
| }} + 100 * (
| |
| {{#if: {{{lon2_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lon2_dir|}}}|W|-1|1}}
| |
| * ( {{{lon2_deg|0}}} + ({{{lon2_min|0}}} / 60)
| |
| + ({{{lon2_sec|0}}} / 3600)) }}
| |
| | <!--else, decimal longitude-->{{{long2|0}}}
| |
| }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
| |
| }}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
| |
| ------------------------------------------------ Marker#2 division
| |
| --><div style="position: relative; text-align: center; {{#if: {{{mark2size|}}}
| |
| | left: -{{#expr: {{{mark2size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark2high|{{{mark2size|8}}} }}} / 2 round 0 }}px; width: {{{mark2size}}}px; font-size: {{{mark2size}}}px;
| |
| | <!--else, hunt mark2size@template--> left: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark2size}}
| |
| |{{Location map {{{1}}}|mark2size}}
| |
| |8}} / 2 round 0 }}px; top: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark2high}}
| |
| |{{Location map {{{1}}}|mark2high}}
| |
| |<!--else-->{{{mark2size|8}}} }} / 2 round 0 }}px; width:
| |
| {{#if: {{Location map {{{1}}}|mark2size}}
| |
| |{{Location map {{{1}}}|mark2size}}| 8}}px; font-size:
| |
| {{#if: {{Location map {{{1}}}|mark2size}}
| |
| |{{Location map {{{1}}}|mark2size}}| 8}}px;
| |
| }}"><!-- -------------------- show marker#2 -->{{
| |
| #ifeq: {{{mark2size|1}}}| 0|<!--then skip-->
| |
| |<!--else-->[[Image:{{#if: {{{mark2|}}}
| |
| |{{{mark2}}}
| |
| |<!--else-->{{#if: {{Location map {{{1}}}|mark2}}
| |
| |{{Location map {{{1}}}|mark2}}|<!--else-->Red pog.svg}}
| |
| }}|<!--
| |
| ----- set image size as 'mark2size'x'mark2high' with defaults --
| |
| -- ("x" between values, defaults from named-map template or 8)
| |
| -->{{#if: {{{mark2size|}}} <!--SENT--><!--
| |
| --> |{{{mark2size}}}x{{#if: {{{mark2high|}}} <!--
| |
| --> |{{{mark2high}}} <!--
| |
| --> |{{#if: {{Location map {{{1}}}|mark2high}} <!--
| |
| --> |{{Location map {{{1}}}|mark2high}} <!--
| |
| --> |<!--else-->{{{mark2size|8}}}}}<!--eif-1/mark2high--> <!--
| |
| --> }}<!--eif-mark2high-A-->px <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark2size}} <!--
| |
| -->|{{Location map {{{1}}}|mark2size}}|<!--else-->8<!--
| |
| -->}}x{{#if: {{{mark2high|}}}<!--B
| |
| -->|{{{mark2high}}} <!--
| |
| -->|{{#if: {{Location map {{{1}}}|mark2high}}<!--
| |
| --> |{{Location map {{{1}}}|mark2high}} <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark2size}}<!--
| |
| --> |{{Location map {{{1}}}|mark2size}}|<!--else-->8}}<!--
| |
| -->}}<!--eif-Loc..mark2high--
| |
| -->}}<!--eif-mark2high-B-->px<!--
| |
| --> }}<!--endif mark2size-SENT-->|{{#if: {{{label2|}}}<!--
| |
| --> | {{{label2}}}<!--set mouseover alt-text -
| |
| --> | <!--else-->{{PAGENAME}}
| |
| }}<!--endif label2-->]]<!--
| |
| -->}}<!--endif mark2size=0
| |
| --></div><!-- end-div marker2
| |
| ---------------------------------------------- Label #2
| |
| -->{{#ifeq: {{{position2|{{{pos2|}}}}}} | none
| |
| |
| |
| |<div style="font-size: {{{label2_size|90}}}%; line-height: 110%;
| |
| position: relative; top: -1.5em; width: 6em;
| |
| {{#switch: {{{position2|{{{pos2|right}}}}}}
| |
| |left = top:-{{#expr: {{{mark2high|{{{mark2size|8}}}}}}*0.76
| |
| + {{{label2_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: -{{#expr: 6.05 + {{{mark2size|8}}}/21
| |
| + {{{label2_size|90}}}/1855 }}em; text-align: right;
| |
| |right = top: -{{#expr: {{{mark2high|{{{mark2size|8}}}}}}*0.76
| |
| + {{{label2_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: {{#expr: 0.37 + {{{mark2size|8}}}/165
| |
| + {{{label2_size|90}}}/505 }}em; text-align: left;
| |
| |top = top:-{{#expr: {{{mark2high|{{{mark2size|8}}}}}}*1.78
| |
| + {{{label2_size|90}}}*.16 + 1.5 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |bottom = top: {{#expr: -{{{mark2high|{{{mark2size|8}}}}}}*.45
| |
| - {{{label2_size|90}}}*.01 + 1.9 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |<!--otherwise-->}}"><span style="padding: 1px;
| |
| {{#if: {{{background2|{{{bg2|}}}}}}
| |
| | background-color: {{{background2|{{{bg2}}}}}};
| |
| }}">{{{label2|}}}</span><!--
| |
| --></div><!-- end-div label2 -->
| |
| }}</div><!--end-div point#2-->
| |
| |<!--else, no latitude2 -->}}<!--endif lat2* --
| |
| ================================================= Marker/Label #3
| |
| -->{{#if: {{{lat3|{{{lat3_deg|}}} }}} | <!--
| |
| --then latitude-3 exists --------------- Verify lat./longitude
| |
| -->{{
| |
| #ifexpr:{{{lat3|{{{lat3_deg|}}}}}}<{{Location map {{{1}}}|bottom}}
| |
| |<!--then-->Latitude#3 ({{{lat3|{{{lat3_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }}
| |
| {{#ifexpr: {{{lat3|{{{lat3_deg|}}}}}} > {{Location map {{{1}}}|top}}
| |
| |<!--then-->Latitude#3 ({{{lat3|{{{lat3_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }}
| |
| {{#ifexpr:{{{long3|{{{lon3_deg|}}}}}} <{{Location map {{{1}}}|left}}
| |
| |<!--then-->Longitude#3({{{long3|{{{lon3_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }}
| |
| {{#ifexpr: {{{long3|{{{lon3_deg|}}}}}}
| |
| > {{Location map {{{1}}}|right}}
| |
| |<!--then-->Longitude#3({{{long3|{{{lon3_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}}
| |
| <!-- --------------------------------- Begin point division #3 -->
| |
| <div style="position: absolute; z-index: 2;
| |
| top: {{#expr: <!--To DEBUG, add ">" above to show calc below-->
| |
| 100 * ({{Location map {{{1}}}|top}} - {{#if: {{{lat3_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lat3_dir|}}}|S|-1|1}}
| |
| * ( {{{lat3_deg|0}}} + ({{{lat3_min|0}}} / 60)
| |
| + ( {{{lat3_sec|0}}} / 3600) ) }}
| |
| | <!--else, decimal form-->{{{lat3|0}}}
| |
| }}) / ( {{Location map {{{1}}}|top}}
| |
| - {{Location map {{{1}}}|bottom}} ) round 1
| |
| }}%; left: {{#expr:
| |
| {{#expr:{{#if:{{Location map {{{1}}}|crosses180}}
| |
| |{{#ifeq: {{{lon3_dir|}}}|W|-36000/({{Location map {{{1}}}|left}}-{{Location map {{{1}}}|right}})|}}|}}
| |
| }} + 100 * (
| |
| {{#if: {{{lon3_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lon3_dir|}}}|W|-1|1}}
| |
| * ( {{{lon3_deg|0}}} + ({{{lon3_min|0}}} / 60)
| |
| + ({{{lon3_sec|0}}} / 3600)) }}
| |
| | <!--else, decimal longitude-->{{{long3|0}}}
| |
| }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
| |
| }}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
| |
| ------------------------------------------------ Marker#3 division
| |
| --><div style="position: relative; text-align: center; {{#if: {{{mark3size|}}}
| |
| | left: -{{#expr: {{{mark3size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark3high|{{{mark3size|8}}} }}} / 2 round 0 }}px; width: {{{mark3size}}}px; font-size: {{{mark3size}}}px;
| |
| | <!--else, hunt mark3size@template--> left: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark3size}}
| |
| |{{Location map {{{1}}}|mark3size}}
| |
| |8}} / 2 round 0 }}px; top: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark3high}}
| |
| |{{Location map {{{1}}}|mark3high}}
| |
| |<!--else-->{{{mark3size|8}}} }} / 2 round 0 }}px; width:
| |
| {{#if: {{Location map {{{1}}}|mark3size}}
| |
| |{{Location map {{{1}}}|mark3size}}
| |
| |<!--else-->8}}px; font-size:
| |
| {{#if: {{Location map {{{1}}}|mark3size}}
| |
| |{{Location map {{{1}}}|mark3size}}
| |
| |<!--else-->8}}px;
| |
| }}"><!-- -------------------- show marker#3 -->{{
| |
| #ifeq: {{{mark3size|1}}}| 0|<!--then skip-->
| |
| |<!--else-->[[Image:{{#if: {{{mark3|}}}
| |
| | {{{mark3}}}
| |
| | <!--else-->{{#if: {{Location map {{{1}}}|mark3}}
| |
| |{{Location map {{{1}}}|mark3}}|<!--else-->Red pog.svg}}
| |
| }}|<!--
| |
| ----- set image size as 'mark3size'x'mark3high' with defaults --
| |
| -- ("x" between values, defaults from named-map template or 8)
| |
| -->{{#if: {{{mark3size|}}} <!--SENT--><!--
| |
| --> |{{{mark3size}}}x{{#if: {{{mark3high|}}} <!--
| |
| --> |{{{mark3high}}} <!--
| |
| --> |{{#if: {{Location map {{{1}}}|mark3high}} <!--
| |
| --> |{{Location map {{{1}}}|mark3high}} <!--
| |
| --> |<!--else-->{{{mark3size|8}}}}}<!--eif-1/mark3high--> <!--
| |
| --> }}<!--eif-mark3high-A-->px <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark3size}} <!--
| |
| -->|{{Location map {{{1}}}|mark3size}}|<!--else-->8<!--
| |
| -->}}x{{#if: {{{mark3high|}}}<!--B
| |
| -->|{{{mark3high}}} <!--
| |
| -->|{{#if: {{Location map {{{1}}}|mark3high}} <!--
| |
| --> |{{Location map {{{1}}}|mark3high}} <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark3size}}<!--
| |
| --> |{{Location map {{{1}}}|mark3size}}|<!--else-->8}}<!--
| |
| -->}}<!--eif-Loc..mark3high--
| |
| -->}}<!--eif-mark3high-B-->px<!--
| |
| -->}}<!--endif mark3size-SENT-->|{{#if: {{{label3|}}}<!--
| |
| --> | {{{label3}}}<!--set mouseover alt-text -
| |
| --> | <!--else-->{{PAGENAME}}
| |
| }}<!--endif label3-->]]<!--
| |
| -->}}<!--endif mark3size=0
| |
| --></div><!-- end-div marker3
| |
| ---------------------------------------------- Label #3
| |
| -->{{#ifeq: {{{position3|{{{pos3|}}}}}} | none
| |
| |
| |
| |<div style="font-size: {{{label3_size|90}}}%; line-height: 110%;
| |
| position: relative; top: -1.5em; width: 6em;
| |
| {{#switch: {{{position3|{{{pos3|right}}}}}}
| |
| |left = top:-{{#expr: {{{mark3high|{{{mark3size|8}}}}}}*0.76
| |
| + {{{label3_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: -{{#expr: 6.05 + {{{mark3size|8}}}/21
| |
| + {{{label3_size|90}}}/1855 }}em; text-align: right;
| |
| |right = top: -{{#expr: {{{mark3high|{{{mark3size|8}}}}}}*0.76
| |
| + {{{label3_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: {{#expr: 0.37 + {{{mark3size|8}}}/165
| |
| + {{{label3_size|90}}}/505 }}em; text-align: left;
| |
| |top = top:-{{#expr: {{{mark3high|{{{mark3size|8}}}}}}*1.78
| |
| + {{{label3_size|90}}}*.14 + 1.5 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |bottom = top: {{#expr: -{{{mark3high|{{{mark3size|8}}}}}}*.45
| |
| - {{{label3_size|90}}}*.01 + 1.9 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |<!--otherwise-->}}"><span style="padding: 1px;
| |
| {{#if: {{{background3|{{{bg3|}}}}}}
| |
| | background-color: {{{background3|{{{bg3}}}}}};
| |
| }}">{{{label3|}}}</span><!--
| |
| --></div><!-- end-div label3 -->
| |
| }}</div><!--end-div point#3-->
| |
| |<!--else, no latitude3 -->}}<!--endif lat3* --
| |
| ================================================= Marker/Label #4
| |
| -->{{#if: {{{lat4|{{{lat4_deg|}}} }}} | <!--
| |
| --then latitude-4 exists --------------- Verify lat./longitude
| |
| -->{{
| |
| #ifexpr:{{{lat4|{{{lat4_deg|}}}}}}<{{Location map {{{1}}}|bottom}}
| |
| |<!--then-->Latitude#4 ({{{lat4|{{{lat4_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }}
| |
| {{#ifexpr: {{{lat4|{{{lat4_deg|}}}}}} > {{Location map {{{1}}}|top}}
| |
| |<!--then-->Latitude#4 ({{{lat4|{{{lat4_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }}
| |
| {{#ifexpr:{{{long4|{{{lon4_deg|}}}}}} <{{Location map {{{1}}}|left}}
| |
| |<!--then-->Longitude#4({{{long4|{{{lon4_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }}
| |
| {{#ifexpr: {{{long4|{{{lon4_deg|}}}}}}
| |
| > {{Location map {{{1}}}|right}}
| |
| |<!--then-->Longitude#4({{{long4|{{{lon4_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}}
| |
| <!-- --------------------------------- Begin point division #4 -->
| |
| <div style="position: absolute; z-index: 2;
| |
| top: {{#expr: <!--To DEBUG, add ">" above to show calc below-->
| |
| 100 * ({{Location map {{{1}}}|top}} - {{#if: {{{lat4_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lat4_dir|}}}|S|-1|1}}
| |
| * ( {{{lat4_deg|0}}} + ({{{lat4_min|0}}} / 60)
| |
| + ( {{{lat4_sec|0}}} / 3600) ) }}
| |
| | <!--else, decimal form-->{{{lat4|0}}}
| |
| }}) / ( {{Location map {{{1}}}|top}}
| |
| - {{Location map {{{1}}}|bottom}} ) round 1
| |
| }}%; left: {{#expr:
| |
| {{#expr:{{#if:{{Location map {{{1}}}|crosses180}}
| |
| |{{#ifeq: {{{lon4_dir|}}}|W|-36000/({{Location map {{{1}}}|left}}-{{Location map {{{1}}}|right}})|}}|}}
| |
| }} + 100 * (
| |
| {{#if: {{{lon4_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lon4_dir|}}}|W|-1|1}}
| |
| * ( {{{lon4_deg|0}}} + ({{{lon4_min|0}}} / 60)
| |
| + ({{{lon4_sec|0}}} / 3600)) }}
| |
| | <!--else, decimal longitude-->{{{long4|0}}}
| |
| }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
| |
| }}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
| |
| ------------------------------------------------ Marker#4 division
| |
| --><div style="position: relative; text-align: center; {{#if: {{{mark4size|}}}
| |
| | left: -{{#expr: {{{mark4size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark4high|{{{mark4size|8}}} }}} / 2 round 0 }}px; width: {{{mark4size}}}px; font-size: {{{mark4size}}}px;
| |
| | <!--else, hunt mark4size@template--> left: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark4size}}
| |
| |{{Location map {{{1}}}|mark4size}}
| |
| |8}} / 2 round 0 }}px; top: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark4high}}
| |
| |{{Location map {{{1}}}|mark4high}}
| |
| |<!--else-->{{{mark4size|8}}} }} / 2 round 0 }}px; width:
| |
| {{#if: {{Location map {{{1}}}|mark4size}}
| |
| |{{Location map {{{1}}}|mark4size}}
| |
| |<!--else-->8}}px; font-size:
| |
| {{#if: {{Location map {{{1}}}|mark4size}}
| |
| |{{Location map {{{1}}}|mark4size}}
| |
| |<!--else-->8}}px;
| |
| }}"><!-- -------------------- show marker#4 -->{{
| |
| #ifeq: {{{mark4size|1}}}| 0|<!--then skip-->
| |
| |<!--else-->[[Image:{{#if: {{{mark4|}}}
| |
| | {{{mark4}}}
| |
| | <!--else-->{{#if: {{Location map {{{1}}}|mark4}}
| |
| |{{Location map {{{1}}}|mark4}}|<!--else-->Red pog.svg}}
| |
| }}|<!--
| |
| ----- set image size as 'mark4size'x'mark4high' with defaults --
| |
| -- ("x" between values, defaults from named-map template or 8)
| |
| -->{{#if: {{{mark4size|}}} <!--SENT--><!--
| |
| --> |{{{mark4size}}}x{{#if: {{{mark4high|}}} <!--
| |
| --> |{{{mark4high}}} <!--
| |
| --> |{{#if: {{Location map {{{1}}}|mark4high}} <!--
| |
| --> |{{Location map {{{1}}}|mark4high}} <!--
| |
| --> |<!--else-->{{{mark4size|8}}}}}<!--eif-1/mark4high--> <!--
| |
| --> }}<!--eif-mark4high-A-->px <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark4size}} <!--
| |
| -->|{{Location map {{{1}}}|mark4size}}|<!--else-->8<!--
| |
| -->}}x{{#if: {{{mark4high|}}}<!--B
| |
| -->|{{{mark4high}}} <!--
| |
| -->|{{#if: {{Location map {{{1}}}|mark4high}} <!--
| |
| --> |{{Location map {{{1}}}|mark4high}} <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark4size}}<!--
| |
| --> |{{Location map {{{1}}}|mark4size}}|<!--else-->8}}<!--
| |
| -->}}<!--eif-Loc..mark4high--
| |
| -->}}<!--eif-mark4high-B-->px<!--
| |
| -->}}<!--endif mark4size-SENT-->|{{#if: {{{label4|}}}<!--
| |
| --> | {{{label4}}}<!--set mouseover alt-text -
| |
| --> | <!--else-->{{PAGENAME}}
| |
| }}<!--endif label4-->]]<!--
| |
| -->}}<!--endif mark4size=0
| |
| --></div><!-- end-div marker4
| |
| ---------------------------------------------- Label #4
| |
| -->{{#ifeq: {{{position4|{{{pos4|}}}}}} | none
| |
| |
| |
| |<div style="font-size: {{{label4_size|90}}}%; line-height: 110%;
| |
| position: relative; top: -1.5em; width: 6em;
| |
| {{#switch: {{{position4|{{{pos4|right}}}}}}
| |
| |left = top:-{{#expr: {{{mark4high|{{{mark4size|8}}}}}}*0.76
| |
| + {{{label4_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: -{{#expr: 6.05 + {{{mark4size|8}}}/21
| |
| + {{{label4_size|90}}}/1855 }}em; text-align: right;
| |
| |right = top: -{{#expr: {{{mark4high|{{{mark4size|8}}}}}}*0.76
| |
| + {{{label4_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: {{#expr: 0.37 + {{{mark4size|8}}}/165
| |
| + {{{label4_size|90}}}/505 }}em; text-align: left;
| |
| |top = top:-{{#expr: {{{mark4high|{{{mark4size|8}}}}}}*1.62
| |
| + {{{label4_size|90}}}*.13 + 2.5 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |bottom = top: -{{#expr:{{{mark4high|{{{mark4size|8}}}}}}*.45
| |
| - {{{label4_size|90}}}*.01 + 1.9 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |<!--otherwise-->}}"><span style="padding: 1px;
| |
| {{#if: {{{background4|{{{bg4|}}}}}}
| |
| | background-color: {{{background4|{{{bg4}}}}}};
| |
| }}">{{{label4|}}}</span><!--
| |
| --></div><!-- end-div label4 -->
| |
| }}</div><!--end-div point#4-->
| |
| |<!--else, no latitude4 -->}}<!--endif lat4* --
| |
| ================================================= Marker/Label #5
| |
| -->{{#if: {{{lat5|{{{lat5_deg|}}} }}} | <!--
| |
| --then latitude-5 exists --------------- Verify lat./longitude
| |
| -->{{
| |
| #ifexpr:{{{lat5|{{{lat5_deg|}}}}}}<{{Location map {{{1}}}|bottom}}
| |
| |<!--then-->Latitude#5 ({{{lat5|{{{lat5_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }}
| |
| {{#ifexpr: {{{lat5|{{{lat5_deg|}}}}}} > {{Location map {{{1}}}|top}}
| |
| |<!--then-->Latitude#5 ({{{lat5|{{{lat5_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }}
| |
| {{#ifexpr:{{{long5|{{{lon5_deg|}}}}}} <{{Location map {{{1}}}|left}}
| |
| |<!--then-->Longitude#5({{{long5|{{{lon5_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }}
| |
| {{#ifexpr: {{{long5|{{{lon5_deg|}}}}}}
| |
| > {{Location map {{{1}}}|right}}
| |
| |<!--then-->Longitude#5({{{long5|{{{lon5_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}}
| |
| <!-- --------------------------------- Begin point division #5 -->
| |
| <div style="position: absolute; z-index: 2;
| |
| top: {{#expr: <!--To DEBUG, add ">" above to show calc below-->
| |
| 100 * ({{Location map {{{1}}}|top}} - {{#if: {{{lat5_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lat5_dir|}}}|S|-1|1}}
| |
| * ( {{{lat5_deg|0}}} + ({{{lat5_min|0}}} / 60)
| |
| + ( {{{lat5_sec|0}}} / 3600) ) }}
| |
| | <!--else, decimal form-->{{{lat5|0}}}
| |
| }}) / ( {{Location map {{{1}}}|top}}
| |
| - {{Location map {{{1}}}|bottom}} ) round 1
| |
| }}%; left: {{#expr:
| |
| {{#expr:{{#if:{{Location map {{{1}}}|crosses180}}
| |
| |{{#ifeq: {{{lon5_dir|}}}|W|-36000/({{Location map {{{1}}}|left}}-{{Location map {{{1}}}|right}})|}}|}}
| |
| }} + 100 * (
| |
| {{#if: {{{lon5_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lon5_dir|}}}|W|-1|1}}
| |
| * ( {{{lon5_deg|0}}} + ({{{lon5_min|0}}} / 60)
| |
| + ({{{lon5_sec|0}}} / 3600)) }}
| |
| | <!--else, decimal longitude-->{{{long5|0}}}
| |
| }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
| |
| }}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
| |
| ------------------------------------------------ Marker#5 division
| |
| --><div style="position: relative; text-align: center; {{#if: {{{mark5size|}}}
| |
| | left: -{{#expr: {{{mark5size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark5high|{{{mark5size|8}}} }}} / 2 round 0 }}px; width: {{{mark5size}}}px; font-size: {{{mark5size}}}px;
| |
| | <!--else, hunt mark5size@template--> left: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark5size}}
| |
| |{{Location map {{{1}}}|mark5size}}
| |
| |8}} / 2 round 0 }}px; top: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark5high}}
| |
| |{{Location map {{{1}}}|mark5high}}
| |
| |<!--else-->{{{mark5size|8}}} }} / 2 round 0 }}px; width:
| |
| {{#if: {{Location map {{{1}}}|mark5size}}
| |
| |{{Location map {{{1}}}|mark5size}}
| |
| |<!--else-->8}}px; font-size:
| |
| {{#if: {{Location map {{{1}}}|mark5size}}
| |
| |{{Location map {{{1}}}|mark5size}}
| |
| |<!--else-->8}}px;
| |
| }}"><!-- -------------------- show marker#5 -->{{
| |
| #ifeq: {{{mark5size|1}}}| 0|<!--then skip-->
| |
| |<!--else-->[[Image:{{#if: {{{mark5|}}}
| |
| | {{{mark5}}}
| |
| | <!--else-->{{#if: {{Location map {{{1}}}|mark5}}
| |
| |{{Location map {{{1}}}|mark5}}|<!--else-->Red pog.svg}}
| |
| }}|<!--
| |
| ----- set image size as 'mark5size'x'mark5high' with defaults --
| |
| -- ("x" between values, defaults from named-map template or 8)
| |
| -->{{#if: {{{mark5size|}}} <!--SENT--><!--
| |
| --> |{{{mark5size}}}x{{#if: {{{mark5high|}}} <!--
| |
| --> |{{{mark5high}}} <!--
| |
| --> |{{#if: {{Location map {{{1}}}|mark5high}} <!--
| |
| --> |{{Location map {{{1}}}|mark5high}} <!--
| |
| --> |<!--else-->{{{mark5size|8}}}}}<!--eif-1/mark5high--> <!--
| |
| --> }}<!--eif-mark5high-A-->px <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark5size}} <!--
| |
| -->|{{Location map {{{1}}}|mark5size}}|<!--else-->8<!--
| |
| -->}}x{{#if: {{{mark5high|}}}<!--B
| |
| -->|{{{mark5high}}} <!--
| |
| -->|{{#if: {{Location map {{{1}}}|mark5high}} <!--
| |
| --> |{{Location map {{{1}}}|mark5high}} <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark5size}}<!--
| |
| --> |{{Location map {{{1}}}|mark5size}}|<!--else-->8}}<!--
| |
| -->}}<!--eif-Loc..mark5high--
| |
| -->}}<!--eif-mark5high-B-->px<!--
| |
| -->}}<!--endif mark5size-SENT-->|{{#if: {{{label5|}}}<!--
| |
| --> | {{{label5}}}<!--set mouseover alt-text -
| |
| --> | <!--else-->{{PAGENAME}}
| |
| }}<!--endif label5-->]]<!--
| |
| -->}}<!--endif mark5size=0
| |
| --></div><!-- end-div marker5
| |
| ---------------------------------------------- Label #5
| |
| -->{{#ifeq: {{{position5|{{{pos5|}}}}}} | none
| |
| |
| |
| |<div style="font-size: {{{label5_size|90}}}%; line-height: 110%;
| |
| position: relative; top: -1.5em; width: 6em;
| |
| {{#switch: {{{position5|{{{pos5|right}}}}}}
| |
| |left = top:-{{#expr: {{{mark5high|{{{mark5size|8}}}}}}*0.76
| |
| + {{{label5_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: -{{#expr: 6.05 + {{{mark5size|8}}}/21
| |
| + {{{label5_size|90}}}/1855 }}em; text-align: right;
| |
| |right = top: -{{#expr: {{{mark5high|{{{mark5size|8}}}}}}*0.76
| |
| + {{{label5_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: {{#expr: 0.37 + {{{mark5size|8}}}/165
| |
| + {{{label5_size|90}}}/505 }}em; text-align: left;
| |
| |top = top:-{{#expr: {{{mark5high|{{{mark5size|8}}}}}}*1.62
| |
| + {{{label5_size|90}}}*.13 + 2.5 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |bottom = top: -{{#expr:{{{mark5high|{{{mark5size|8}}}}}}*.45
| |
| - {{{label5_size|90}}}*.01 + 1.9 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |<!--otherwise-->}}"><span style="padding: 1px;
| |
| {{#if: {{{background5|{{{bg5|}}}}}}
| |
| | background-color: {{{background5|{{{bg5}}}}}};
| |
| }}">{{{label5|}}}</span><!--
| |
| --></div><!-- end-div label5 -->
| |
| }}</div><!--end-div point#5-->
| |
| |<!--else, no latitude5 -->}}<!--endif lat5* --
| |
| ================================================= Marker/Label #6
| |
| -->{{#if: {{{lat6|{{{lat6_deg|}}} }}} | <!--
| |
| --then latitude-6 exists --------------- Verify lat./longitude
| |
| -->{{
| |
| #ifexpr:{{{lat6|{{{lat6_deg|}}}}}}<{{Location map {{{1}}}|bottom}}
| |
| |<!--then-->Latitude#6 ({{{lat6|{{{lat6_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }}
| |
| {{#ifexpr: {{{lat6|{{{lat6_deg|}}}}}} > {{Location map {{{1}}}|top}}
| |
| |<!--then-->Latitude#6 ({{{lat6|{{{lat6_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }}
| |
| {{#ifexpr:{{{long6|{{{lon6_deg|}}}}}} <{{Location map {{{1}}}|left}}
| |
| |<!--then-->Longitude#6({{{long6|{{{lon6_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }}
| |
| {{#ifexpr: {{{long6|{{{lon6_deg|}}}}}}
| |
| > {{Location map {{{1}}}|right}}
| |
| |<!--then-->Longitude#6({{{long6|{{{lon6_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}}
| |
| <!-- --------------------------------- Begin point division #6 -->
| |
| <div style="position: absolute; z-index: 2;
| |
| top: {{#expr: <!--To DEBUG, add ">" above to show calc below-->
| |
| 100 * ({{Location map {{{1}}}|top}} - {{#if: {{{lat6_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lat6_dir|}}}|S|-1|1}}
| |
| * ( {{{lat6_deg|0}}} + ({{{lat6_min|0}}} / 60)
| |
| + ( {{{lat6_sec|0}}} / 3600) ) }}
| |
| | <!--else, decimal form-->{{{lat6|0}}}
| |
| }}) / ( {{Location map {{{1}}}|top}}
| |
| - {{Location map {{{1}}}|bottom}} ) round 1
| |
| }}%; left: {{#expr:
| |
| {{#expr:{{#if:{{Location map {{{1}}}|crosses180}}
| |
| |{{#ifeq: {{{lon6_dir|}}}|W|-36000/({{Location map {{{1}}}|left}}-{{Location map {{{1}}}|right}})|}}|}}
| |
| }} + 100 * (
| |
| {{#if: {{{lon6_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lon6_dir|}}}|W|-1|1}}
| |
| * ( {{{lon6_deg|0}}} + ({{{lon6_min|0}}} / 60)
| |
| + ({{{lon6_sec|0}}} / 3600)) }}
| |
| | <!--else, decimal longitude-->{{{long6|0}}}
| |
| }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
| |
| }}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
| |
| ------------------------------------------------ Marker#6 division
| |
| --><div style="position: relative; text-align: center; {{#if: {{{mark6size|}}}
| |
| | left: -{{#expr: {{{mark6size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark6high|{{{mark6size|8}}} }}} / 2 round 0 }}px; width: {{{mark6size}}}px; font-size: {{{mark6size}}}px;
| |
| | <!--else, hunt mark6size@template--> left: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark6size}}
| |
| |{{Location map {{{1}}}|mark6size}}
| |
| |8}} / 2 round 0 }}px; top: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark6high}}
| |
| |{{Location map {{{1}}}|mark6high}}
| |
| |<!--else-->{{{mark6size|8}}} }} / 2 round 0 }}px; width:
| |
| {{#if: {{Location map {{{1}}}|mark6size}}
| |
| |{{Location map {{{1}}}|mark6size}}
| |
| |<!--else-->8}}px; font-size:
| |
| {{#if: {{Location map {{{1}}}|mark6size}}
| |
| |{{Location map {{{1}}}|mark6size}}
| |
| |<!--else-->8}}px;
| |
| }}"><!-- -------------------- show marker#6 -->{{
| |
| #ifeq: {{{mark6size|1}}}| 0|<!--then skip-->
| |
| |<!--else-->[[Image:{{#if: {{{mark6|}}}
| |
| | {{{mark6}}}
| |
| | <!--else-->{{#if: {{Location map {{{1}}}|mark6}}
| |
| |{{Location map {{{1}}}|mark6}}|<!--else-->Red pog.svg}}
| |
| }}|<!--
| |
| ----- set image size as 'mark6size'x'mark6high' with defaults --
| |
| -- ("x" between values, defaults from named-map template or 8)
| |
| -->{{#if: {{{mark6size|}}} <!--SENT--><!--
| |
| --> |{{{mark6size}}}x{{#if: {{{mark6high|}}} <!--
| |
| --> |{{{mark6high}}} <!--
| |
| --> |{{#if: {{Location map {{{1}}}|mark6high}} <!--
| |
| --> |{{Location map {{{1}}}|mark6high}} <!--
| |
| --> |<!--else-->{{{mark6size|8}}}}}<!--eif-1/mark6high--> <!--
| |
| --> }}<!--eif-mark6high-A-->px <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark6size}} <!--
| |
| -->|{{Location map {{{1}}}|mark6size}}|<!--else-->8<!--
| |
| -->}}x{{#if: {{{mark6high|}}}<!--B
| |
| -->|{{{mark6high}}} <!--
| |
| -->|{{#if: {{Location map {{{1}}}|mark6high}} <!--
| |
| --> |{{Location map {{{1}}}|mark6high}} <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark6size}}<!--
| |
| --> |{{Location map {{{1}}}|mark6size}}|<!--else-->8}}<!--
| |
| -->}}<!--eif-Loc..mark6high--
| |
| -->}}<!--eif-mark6high-B-->px<!--
| |
| -->}}<!--endif mark6size-SENT-->|{{#if: {{{label6|}}}<!--
| |
| --> | {{{label6}}}<!--set mouseover alt-text -
| |
| --> | <!--else-->{{PAGENAME}}
| |
| }}<!--endif label6-->]]<!--
| |
| -->}}<!--endif mark6size=0
| |
| --></div><!-- end-div marker6
| |
| ---------------------------------------------- Label #6
| |
| -->{{#ifeq: {{{position6|{{{pos6|}}}}}} | none
| |
| |
| |
| |<div style="font-size: {{{label6_size|90}}}%; line-height: 110%;
| |
| position: relative; top: -1.5em; width: 6em;
| |
| {{#switch: {{{position6|{{{pos6|right}}}}}}
| |
| |left = top:-{{#expr: {{{mark6high|{{{mark6size|8}}}}}}*0.76
| |
| + {{{label6_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: -{{#expr: 6.05 + {{{mark6size|8}}}/21
| |
| + {{{label6_size|90}}}/1855 }}em; text-align: right;
| |
| |right = top: -{{#expr: {{{mark6high|{{{mark6size|8}}}}}}*0.76
| |
| + {{{label6_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: {{#expr: 0.37 + {{{mark6size|8}}}/165
| |
| + {{{label6_size|90}}}/505 }}em; text-align: left;
| |
| |top = top:-{{#expr: {{{mark6high|{{{mark6size|8}}}}}}*1.62
| |
| + {{{label6_size|90}}}*.13 + 2.5 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |bottom = top: -{{#expr:{{{mark6high|{{{mark6size|8}}}}}}*.45
| |
| - {{{label6_size|90}}}*.01 + 1.9 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |<!--otherwise-->}}"><span style="padding: 1px;
| |
| {{#if: {{{background6|{{{bg6|}}}}}}
| |
| | background-color: {{{background6|{{{bg6}}}}}};
| |
| }}">{{{label6|}}}</span><!--
| |
| --></div><!-- end-div label6 -->
| |
| }}</div><!--end-div point#6-->
| |
| |<!--else, no latitude6 -->}}<!--endif lat6* --
| |
| ================================================= Marker/Label #7
| |
| -->{{#if: {{{lat7|{{{lat7_deg|}}} }}} | <!--
| |
| --then latitude-7 exists --------------- Verify lat./longitude
| |
| -->{{
| |
| #ifexpr:{{{lat7|{{{lat7_deg|}}}}}}<{{Location map {{{1}}}|bottom}}
| |
| |<!--then-->Latitude#7 ({{{lat7|{{{lat7_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }}
| |
| {{#ifexpr: {{{lat7|{{{lat7_deg|}}}}}} > {{Location map {{{1}}}|top}}
| |
| |<!--then-->Latitude#7 ({{{lat7|{{{lat7_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }}
| |
| {{#ifexpr:{{{long7|{{{lon7_deg|}}}}}} <{{Location map {{{1}}}|left}}
| |
| |<!--then-->Longitude#7({{{long7|{{{lon7_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }}
| |
| {{#ifexpr: {{{long7|{{{lon7_deg|}}}}}}
| |
| > {{Location map {{{1}}}|right}}
| |
| |<!--then-->Longitude#7({{{long7|{{{lon7_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}}
| |
| <!-- --------------------------------- Begin point division #7 -->
| |
| <div style="position: absolute; z-index: 2;
| |
| top: {{#expr: <!--To DEBUG, add ">" above to show calc below-->
| |
| 100 * ({{Location map {{{1}}}|top}} - {{#if: {{{lat7_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lat7_dir|}}}|S|-1|1}}
| |
| * ( {{{lat7_deg|0}}} + ({{{lat7_min|0}}} / 60)
| |
| + ( {{{lat7_sec|0}}} / 3600) ) }}
| |
| | <!--else, decimal form-->{{{lat7|0}}}
| |
| }}) / ( {{Location map {{{1}}}|top}}
| |
| - {{Location map {{{1}}}|bottom}} ) round 1
| |
| }}%; left: {{#expr:
| |
| {{#expr:{{#if:{{Location map {{{1}}}|crosses180}}
| |
| |{{#ifeq: {{{lon7_dir|}}}|W|-36000/({{Location map {{{1}}}|left}}-{{Location map {{{1}}}|right}})|}}|}}
| |
| }} + 100 * (
| |
| {{#if: {{{lon7_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lon7_dir|}}}|W|-1|1}}
| |
| * ( {{{lon7_deg|0}}} + ({{{lon7_min|0}}} / 60)
| |
| + ({{{lon7_sec|0}}} / 3600)) }}
| |
| | <!--else, decimal longitude-->{{{long7|0}}}
| |
| }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
| |
| }}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
| |
| ------------------------------------------------ Marker#7 division
| |
| --><div style="position: relative; text-align: center; {{#if: {{{mark7size|}}}
| |
| | left: -{{#expr: {{{mark7size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark7high|{{{mark7size|8}}} }}} / 2 round 0 }}px; width: {{{mark7size}}}px; font-size: {{{mark7size}}}px;
| |
| | <!--else, hunt mark7size@template--> left: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark7size}}
| |
| |{{Location map {{{1}}}|mark7size}}
| |
| |8}} / 2 round 0 }}px; top: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark7high}}
| |
| |{{Location map {{{1}}}|mark7high}}
| |
| |<!--else-->{{{mark7size|8}}} }} / 2 round 0 }}px; width:
| |
| {{#if: {{Location map {{{1}}}|mark7size}}
| |
| |{{Location map {{{1}}}|mark7size}}
| |
| |<!--else-->8}}px; font-size:
| |
| {{#if: {{Location map {{{1}}}|mark7size}}
| |
| |{{Location map {{{1}}}|mark7size}}
| |
| |<!--else-->8}}px;
| |
| }}"><!-- -------------------- show marker#7 -->{{
| |
| #ifeq: {{{mark7size|1}}}| 0|<!--then skip-->
| |
| |<!--else-->[[Image:{{#if: {{{mark7|}}}
| |
| | {{{mark7}}}
| |
| | <!--else-->{{#if: {{Location map {{{1}}}|mark7}}
| |
| |{{Location map {{{1}}}|mark7}}|<!--else-->Red pog.svg}}
| |
| }}|<!--
| |
| ----- set image size as 'mark7size'x'mark7high' with defaults --
| |
| -- ("x" between values, defaults from named-map template or 8)
| |
| -->{{#if: {{{mark7size|}}} <!--SENT--><!--
| |
| --> |{{{mark7size}}}x{{#if: {{{mark7high|}}} <!--
| |
| --> |{{{mark7high}}} <!--
| |
| --> |{{#if: {{Location map {{{1}}}|mark7high}} <!--
| |
| --> |{{Location map {{{1}}}|mark7high}} <!--
| |
| --> |<!--else-->{{{mark7size|8}}}}}<!--eif-1/mark7high--> <!--
| |
| --> }}<!--eif-mark7high-A-->px <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark7size}} <!--
| |
| -->|{{Location map {{{1}}}|mark7size}}|<!--else-->8<!--
| |
| -->}}x{{#if: {{{mark7high|}}}<!--B
| |
| -->|{{{mark7high}}} <!--
| |
| -->|{{#if: {{Location map {{{1}}}|mark7high}} <!--
| |
| --> |{{Location map {{{1}}}|mark7high}} <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark7size}}<!--
| |
| --> |{{Location map {{{1}}}|mark7size}}|<!--else-->8}}<!--
| |
| -->}}<!--eif-Loc..mark7high--
| |
| -->}}<!--eif-mark7high-B-->px<!--
| |
| -->}}<!--endif mark7size-SENT-->|{{#if: {{{label7|}}}<!--
| |
| --> | {{{label7}}}<!--set mouseover alt-text -
| |
| --> | <!--else-->{{PAGENAME}}
| |
| }}<!--endif label7-->]]<!--
| |
| -->}}<!--endif mark7size=0
| |
| --></div><!-- end-div marker7
| |
| ---------------------------------------------- Label #7
| |
| -->{{#ifeq: {{{position7|{{{pos7|}}}}}} | none
| |
| |
| |
| |<div style="font-size: {{{label7_size|90}}}%; line-height: 110%;
| |
| position: relative; top: -1.5em; width: 6em;
| |
| {{#switch: {{{position7|{{{pos7|right}}}}}}
| |
| |left = top:-{{#expr: {{{mark7high|{{{mark7size|8}}}}}}*0.76
| |
| + {{{label7_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: -{{#expr: 6.05 + {{{mark7size|8}}}/21
| |
| + {{{label7_size|90}}}/1855 }}em; text-align: right;
| |
| |right = top: -{{#expr: {{{mark7high|{{{mark7size|8}}}}}}*0.76
| |
| + {{{label7_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: {{#expr: 0.37 + {{{mark7size|8}}}/165
| |
| + {{{label7_size|90}}}/505 }}em; text-align: left;
| |
| |top = top:-{{#expr: {{{mark7high|{{{mark7size|8}}}}}}*1.62
| |
| + {{{label7_size|90}}}*.13 + 2.5 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |bottom = top: -{{#expr:{{{mark7high|{{{mark7size|8}}}}}}*.45
| |
| - {{{label7_size|90}}}*.01 + 1.9 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |<!--otherwise-->}}"><span style="padding: 1px;
| |
| {{#if: {{{background7|{{{bg7|}}}}}}
| |
| | background-color: {{{background7|{{{bg7}}}}}};
| |
| }}">{{{label7|}}}</span><!--
| |
| --></div><!-- end-div label7 -->
| |
| }}</div><!--end-div point#7-->
| |
| |<!--else, no latitude7 -->}}<!--endif lat7* --
| |
| ================================================= Marker/Label #8
| |
| -->{{#if: {{{lat8|{{{lat8_deg|}}} }}} | <!--
| |
| --then latitude-8 exists --------------- Verify lat./longitude
| |
| -->{{
| |
| #ifexpr:{{{lat8|{{{lat8_deg|}}}}}}<{{Location map {{{1}}}|bottom}}
| |
| |<!--then-->Latitude#8 ({{{lat8|{{{lat8_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }}
| |
| {{#ifexpr: {{{lat8|{{{lat8_deg|}}}}}} > {{Location map {{{1}}}|top}}
| |
| |<!--then-->Latitude#8 ({{{lat8|{{{lat8_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }}
| |
| {{#ifexpr:{{{long8|{{{lon8_deg|}}}}}} <{{Location map {{{1}}}|left}}
| |
| |<!--then-->Longitude#8({{{long8|{{{lon8_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }}
| |
| {{#ifexpr: {{{long8|{{{lon8_deg|}}}}}}
| |
| > {{Location map {{{1}}}|right}}
| |
| |<!--then-->Longitude#8({{{long8|{{{lon8_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}}
| |
| <!-- --------------------------------- Begin point division #8 -->
| |
| <div style="position: absolute; z-index: 2;
| |
| top: {{#expr: <!--To DEBUG, add ">" above to show calc below-->
| |
| 100 * ({{Location map {{{1}}}|top}} - {{#if: {{{lat8_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lat8_dir|}}}|S|-1|1}}
| |
| * ( {{{lat8_deg|0}}} + ({{{lat8_min|0}}} / 60)
| |
| + ( {{{lat8_sec|0}}} / 3600) ) }}
| |
| | <!--else, decimal form-->{{{lat8|0}}}
| |
| }}) / ( {{Location map {{{1}}}|top}}
| |
| - {{Location map {{{1}}}|bottom}} ) round 1
| |
| }}%; left: {{#expr:
| |
| {{#expr:{{#if:{{Location map {{{1}}}|crosses180}}
| |
| |{{#ifeq: {{{lon8_dir|}}}|W|-36000/({{Location map {{{1}}}|left}}-{{Location map {{{1}}}|right}})|}}|}}
| |
| }} + 100 * (
| |
| {{#if: {{{lon8_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lon8_dir|}}}|W|-1|1}}
| |
| * ( {{{lon8_deg|0}}} + ({{{lon8_min|0}}} / 60)
| |
| + ({{{lon8_sec|0}}} / 3600)) }}
| |
| | <!--else, decimal longitude-->{{{long8|0}}}
| |
| }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
| |
| }}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
| |
| ------------------------------------------------ Marker#8 division
| |
| --><div style="position: relative; text-align: center; {{#if: {{{mark8size|}}}
| |
| | left: -{{#expr: {{{mark8size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark8high|{{{mark8size|8}}} }}} / 2 round 0 }}px; width: {{{mark8size}}}px; font-size: {{{mark8size}}}px;
| |
| | <!--else, hunt mark8size@template--> left: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark8size}}
| |
| |{{Location map {{{1}}}|mark8size}}
| |
| |8}} / 2 round 0 }}px; top: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark8high}}
| |
| |{{Location map {{{1}}}|mark8high}}
| |
| |<!--else-->{{{mark8size|8}}} }} / 2 round 0 }}px; width:
| |
| {{#if: {{Location map {{{1}}}|mark8size}}
| |
| |{{Location map {{{1}}}|mark8size}}
| |
| |<!--else-->8}}px; font-size:
| |
| {{#if: {{Location map {{{1}}}|mark8size}}
| |
| |{{Location map {{{1}}}|mark8size}}
| |
| |<!--else-->8}}px;
| |
| }}"><!-- -------------------- show marker#8 -->{{
| |
| #ifeq: {{{mark8size|1}}}| 0|<!--then skip-->
| |
| |<!--else-->[[Image:{{#if: {{{mark8|}}}
| |
| | {{{mark8}}}
| |
| | <!--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 --
| |
| -- ("x" between values, defaults from named-map template or 8)
| |
| -->{{#if: {{{mark8size|}}} <!--SENT--><!--
| |
| --> |{{{mark8size}}}x{{#if: {{{mark8high|}}} <!--
| |
| --> |{{{mark8high}}} <!--
| |
| --> |{{#if: {{Location map {{{1}}}|mark8high}} <!--
| |
| --> |{{Location map {{{1}}}|mark8high}} <!--
| |
| --> |<!--else-->{{{mark8size|8}}}}}<!--eif-1/mark8high--> <!--
| |
| --> }}<!--eif-mark8high-A-->px <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark8size}} <!--
| |
| -->|{{Location map {{{1}}}|mark8size}}|<!--else-->8<!--
| |
| -->}}x{{#if: {{{mark8high|}}}<!--B
| |
| -->|{{{mark8high}}} <!--
| |
| -->|{{#if: {{Location map {{{1}}}|mark8high}} <!--
| |
| --> |{{Location map {{{1}}}|mark8high}} <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark8size}}<!--
| |
| --> |{{Location map {{{1}}}|mark8size}}|<!--else-->8}}<!--
| |
| -->}}<!--eif-Loc..mark8high--
| |
| -->}}<!--eif-mark8high-B-->px<!--
| |
| -->}}<!--endif mark8size-SENT-->|{{#if: {{{label8|}}}<!--
| |
| --> | {{{label8}}}<!--set mouseover alt-text -
| |
| --> | <!--else-->{{PAGENAME}}
| |
| }}<!--endif label8-->]]<!--
| |
| -->}}<!--endif mark8size=0
| |
| --></div><!-- end-div marker8
| |
| ---------------------------------------------- Label #8
| |
| -->{{#ifeq: {{{position8|{{{pos8|}}}}}} | none
| |
| |
| |
| |<div style="font-size: {{{label8_size|90}}}%; line-height: 110%;
| |
| position: relative; top: -1.5em; width: 6em;
| |
| {{#switch: {{{position8|{{{pos8|right}}}}}}
| |
| |left = top:-{{#expr: {{{mark8high|{{{mark8size|8}}}}}}*0.76
| |
| + {{{label8_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: -{{#expr: 6.05 + {{{mark8size|8}}}/21
| |
| + {{{label8_size|90}}}/1855 }}em; text-align: right;
| |
| |right = top: -{{#expr: {{{mark8high|{{{mark8size|8}}}}}}*0.76
| |
| + {{{label8_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: {{#expr: 0.37 + {{{mark8size|8}}}/165
| |
| + {{{label8_size|90}}}/505 }}em; text-align: left;
| |
| |top = top:-{{#expr: {{{mark8high|{{{mark8size|8}}}}}}*1.62
| |
| + {{{label8_size|90}}}*.13 + 2.5 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |bottom = top: -{{#expr:{{{mark8high|{{{mark8size|8}}}}}}*.45
| |
| - {{{label8_size|90}}}*.01 + 1.9 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |<!--otherwise-->}}"><span style="padding: 1px;
| |
| {{#if: {{{background8|{{{bg8|}}}}}}
| |
| | background-color: {{{background8|{{{bg8}}}}}};
| |
| }}">{{{label8|}}}</span><!--
| |
| --></div><!-- end-div label8 -->
| |
| }}</div><!--end-div point#8-->
| |
| |<!--else, no latitude8 -->}}<!--endif lat8* --
| |
| ================================================= Marker/Label #9
| |
| -->{{#if: {{{lat9|{{{lat9_deg|}}} }}} | <!--
| |
| --then latitude-9 exists --------------- Verify lat./longitude
| |
| -->{{
| |
| #ifexpr:{{{lat9|{{{lat9_deg|}}}}}}<{{Location map {{{1}}}|bottom}}
| |
| |<!--then-->Latitude#9 ({{{lat9|{{{lat9_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }}
| |
| {{#ifexpr: {{{lat9|{{{lat9_deg|}}}}}} > {{Location map {{{1}}}|top}}
| |
| |<!--then-->Latitude#9 ({{{lat9|{{{lat9_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }}
| |
| {{#ifexpr:{{{long9|{{{lon9_deg|}}}}}} <{{Location map {{{1}}}|left}}
| |
| |<!--then-->Longitude#9({{{long9|{{{lon9_deg|}}}}}}) < map<!--
| |
| --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }}
| |
| {{#ifexpr: {{{long9|{{{lon9_deg|}}}}}}
| |
| > {{Location map {{{1}}}|right}}
| |
| |<!--then-->Longitude#9({{{long9|{{{lon9_deg|}}}}}}) > map<!--
| |
| --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}}
| |
| <!-- --------------------------------- Begin point division #9 -->
| |
| <div style="position: absolute; z-index: 2;
| |
| top: {{#expr: <!--To DEBUG, add ">" above to show calc below-->
| |
| 100 * ({{Location map {{{1}}}|top}} - {{#if: {{{lat9_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lat9_dir|}}}|S|-1|1}}
| |
| * ( {{{lat9_deg|0}}} + ({{{lat9_min|0}}} / 60)
| |
| + ( {{{lat9_sec|0}}} / 3600) ) }}
| |
| | <!--else, decimal form-->{{{lat9|0}}}
| |
| }}) / ( {{Location map {{{1}}}|top}}
| |
| - {{Location map {{{1}}}|bottom}} ) round 1
| |
| }}%; left: {{#expr:
| |
| {{#expr:{{#if:{{Location map {{{1}}}|crosses180}}
| |
| |{{#ifeq: {{{lon9_dir|}}}|W|-36000/({{Location map {{{1}}}|left}}-{{Location map {{{1}}}|right}})|}}|}}
| |
| }} + 100 * (
| |
| {{#if: {{{lon9_deg|}}}
| |
| | {{#expr: {{#ifeq: {{{lon9_dir|}}}|W|-1|1}}
| |
| * ( {{{lon9_deg|0}}} + ({{{lon9_min|0}}} / 60)
| |
| + ({{{lon9_sec|0}}} / 3600)) }}
| |
| | <!--else, decimal longitude-->{{{long9|0}}}
| |
| }} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
| |
| }}%; height: 0; width: 0; margin: 0; padding: 0;"><!--
| |
| ------------------------------------------------ Marker#9 division
| |
| --><div style="position: relative; text-align: center; {{#if: {{{mark9size|}}}
| |
| | left: -{{#expr: {{{mark9size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark9high|{{{mark9size|8}}} }}} / 2 round 0 }}px; width: {{{mark9size}}}px; font-size: {{{mark9size}}}px;
| |
| | <!--else, hunt mark9size@template--> left: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark9size}}
| |
| |{{Location map {{{1}}}|mark9size}}
| |
| |8}} / 2 round 0 }}px; top: -{{#expr:
| |
| {{#if: {{Location map {{{1}}}|mark9high}}
| |
| |{{Location map {{{1}}}|mark9high}}
| |
| |<!--else-->{{{mark9size|8}}} }} / 2 round 0 }}px; width:
| |
| {{#if: {{Location map {{{1}}}|mark9size}}
| |
| |{{Location map {{{1}}}|mark9size}}
| |
| |<!--else-->8}}px; font-size:
| |
| {{#if: {{Location map {{{1}}}|mark9size}}
| |
| |{{Location map {{{1}}}|mark9size}}
| |
| |<!--else-->8}}px;
| |
| }}"><!-- -------------------- show marker#9 -->{{
| |
| #ifeq: {{{mark9size|1}}}| 0|<!--then skip-->
| |
| |<!--else-->[[Image:{{#if: {{{mark9|}}}
| |
| | {{{mark9}}}
| |
| | <!--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 --
| |
| -- ("x" between values, defaults from named-map template or 8)
| |
| -->{{#if: {{{mark9size|}}} <!--SENT--><!--
| |
| --> |{{{mark9size}}}x{{#if: {{{mark9high|}}} <!--
| |
| --> |{{{mark9high}}} <!--
| |
| --> |{{#if: {{Location map {{{1}}}|mark9high}} <!--
| |
| --> |{{Location map {{{1}}}|mark9high}} <!--
| |
| --> |<!--else-->{{{mark9size|8}}}}}<!--eif-1/mark9high--> <!--
| |
| --> }}<!--eif-mark9high-A-->px <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark9size}} <!--
| |
| -->|{{Location map {{{1}}}|mark9size}}|<!--else-->8<!--
| |
| -->}}x{{#if: {{{mark9high|}}}<!--B
| |
| -->|{{{mark9high}}} <!--
| |
| -->|{{#if: {{Location map {{{1}}}|mark9high}} <!--
| |
| --> |{{Location map {{{1}}}|mark9high}} <!--
| |
| --> |<!--else-->{{#if: {{Location map {{{1}}}|mark9size}}<!--
| |
| --> |{{Location map {{{1}}}|mark9size}}|<!--else-->8}}<!--
| |
| -->}}<!--eif-Loc..mark9high--
| |
| -->}}<!--eif-mark9high-B-->px<!--
| |
| -->}}<!--endif mark9size-SENT-->|{{#if: {{{label9|}}}<!--
| |
| --> | {{{label9}}}<!--set mouseover alt-text -
| |
| --> | <!--else-->{{PAGENAME}}
| |
| }}<!--endif label9-->]]<!--
| |
| -->}}<!--endif mark9size=0
| |
| --></div><!-- end-div marker9
| |
| ---------------------------------------------- Label #9
| |
| -->{{#ifeq: {{{position9|{{{pos9|}}}}}} | none
| |
| |
| |
| |<div style="font-size: {{{label9_size|90}}}%; line-height: 110%;
| |
| position: relative; top: -1.5em; width: 6em;
| |
| {{#switch: {{{position9|{{{pos9|right}}}}}}
| |
| |left = top:-{{#expr: {{{mark9high|{{{mark9size|8}}}}}}*0.76
| |
| + {{{label9_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: -{{#expr: 6.05 + {{{mark9size|8}}}/21
| |
| + {{{label9_size|90}}}/1855 }}em; text-align: right;
| |
| |right = top: -{{#expr: {{{mark9high|{{{mark9size|8}}}}}}*0.76
| |
| + {{{label9_size|90}}}*.15 - 2.5 round 0}}px;
| |
| left: {{#expr: 0.37 + {{{mark9size|8}}}/165
| |
| + {{{label9_size|90}}}/505 }}em; text-align: left;
| |
| |top = top:-{{#expr: {{{mark9high|{{{mark9size|8}}}}}}*1.62
| |
| + {{{label9_size|90}}}*.13 + 2.5 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |bottom = top: -{{#expr:{{{mark9high|{{{mark9size|8}}}}}}*.45
| |
| - {{{label9_size|90}}}*.01 + 1.9 round 0}}px;
| |
| left: -3em; text-align: center;
| |
| |<!--otherwise-->}}"><span style="padding: 1px;
| |
| {{#if: {{{background9|{{{bg9|}}}}}}
| |
| | background-color: {{{background9|{{{bg9}}}}}};
| |
| }}">{{{label9|}}}</span><!--
| |
| --></div><!-- end-div label9 -->
| |
| }}</div><!--end-div point#9-->
| |
| |<!--else, no latitude9 -->}}<!--endif lat9* --
| |
| ================================================ End All Markers
| |
| --></div><div style="font-size: 90%">{{{caption|{{#if: {{{label|}}}
| |
| | {{{label}}}
| |
| | {{PAGENAME}}
| |
| }} ({{Location map {{{1}}}|name}})}}}</div><!-- end-div caption --
| |
| --></div><!-- end-div overall box -->
| |
| <!-- </div></div> <!--force any divisions closed -->
| |
| </includeonly><noinclude><!-- | |
| --
| |
| -- NOTES:
| |
| -- This code generates nested HTML divisions for a box-division
| |
| -- containing a map-division with nested point-divisions, each
| |
| -- having a nested marker-image division & label division (for
| |
| -- each marker/label point), following by a caption-division.
| |
| --
| |
| -- The "map image" can be any image, allowing markers/labels to
| |
| -- annotate any picture. Set each markXsize=1 to show labels only.
| |
| --
| |
| -- [ These comments take < 1 second per 5,000 comment lines. ]
| |
| -- [ Be sure to close comments: primitive editors don't check. ]
| |
| --
| |
| --HISTORY:
| |
| -- 06Sep07 Created/debugged to allow 3 markers.
| |
| -- 08Sep07 Expanded with 6 more markers #4-#9 (of eventual 20).
| |
| -- 08Sep07 Debugged marker #9 for extraneous marker in caption.
| |
| -- 09Sep07 Rewrote to auto-position markers by marksize/markhigh.
| |
| -- 10Sep07 Rewrote to require latitudes, avoid oversized pages.
| |
| -- 11Sep07 Verified latitudes/longitudes (expanded template 16%).
| |
| -- 15Sep07 Shortened latitude/longitude advisory messages.
| |
| -- 15Sep07 Calculated 72 label positions by marker + label sizes.
| |
| -- 15Sep07 Wikibug: Mark image:Red_pog.svg sometimes disappears.
| |
| -- 15Sep07 Wikibug: (but image:Green/Blue_pog.svg work ok.)
| |
| -- 15Sep07 Defaulted mark#high to mark#size if no template value.
| |
| -- 07Oct07 Set label bottom position = -mark*.50 - label*.02 + 4.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.
| |
| -- 14Feb08 More top comments; cut extra blank line above doc-page.
| |
| --
| |
| -->
| |
| | |
| {{Documentation}} | | {{Documentation}} |
| <!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> | | <!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> |
| </noinclude> | | </noinclude> |