Template:Location map many: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Wikid77 verified latitudes/longitudes within map: expanded template 16% with parameter checking |
meta>Wikid77 Calculated 72 label positions by marker + label sizes. Shortened latitude/longitude messages; Defaulted mark#high to mark#size if no template value. |
||
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 9 levels across | -- Warning: Code multi-nested 9 levels across 990+ lines. | ||
-- Warning: {{Might}}{{{appear|become}}}{{unreadable}}? | -- Warning: {{Might}}{{{appear|become}}}{{unreadable}}? | ||
-- Warning: This template might exceed wiki-template resources. | |||
-- Warning: Adding spaces can kill results. | -- Warning: Adding spaces can kill results. | ||
----------------------------------------------- Begin box division | ----------------------------------------------- Begin box division | ||
Line 26: | Line 27: | ||
| {{#if:{{{caption|}}}|#CCCCCC|none}} | | {{#if:{{{caption|}}}|#CCCCCC|none}} | ||
}}; | }}; | ||
}} padding: 0px; width: {{{width|240}}}px">[[image:{{#if: {{{AlternativeMap|}}} | {{{AlternativeMap}}} | {{Location map {{{1}}}|image}} }}|{{{width|240}}}px|{{#if: {{{label|}}} | }} padding: 0px; width: {{{width|240}}}px">[[image:{{#if: {{{AlternativeMap|}}} | ||
| {{{AlternativeMap}}} | |||
| {{Location map {{{1}}}|image}} }}|{{{width|240}}}px|{{#if: {{{label|}}} | |||
}}<!-- endif label--> ({{Location map {{{1}}}|name}})]]<br /><!-- | | {{{label}}} | ||
| {{PAGENAME}} | |||
}}<!-- endif label--> ({{Location map {{{1}}}|name}})]]<br /><!-- | |||
================================================= Marker/Label #1 | |||
-->{{#if: {{{lat|{{{lat_deg|}}} }}} | <!-- | -->{{#if: {{{lat|{{{lat_deg|}}} }}} | <!-- | ||
--then latitude-1 exists --------------- Verify lat./longitude | --then latitude-1 exists --------------- Verify lat./longitude | ||
-->{{#ifexpr:{{{lat|{{{lat_deg|}}}}}}<{{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}}).| }} | |||
{{#ifexpr: {{{lat|{{{lat_deg|}}}}}} > {{Location map {{{1}}}|top}} | {{#ifexpr: {{{lat|{{{lat_deg|}}}}}} > {{Location map {{{1}}}|top}} | ||
|<!--then-->Latitude#1 ({{{lat|{{{lat_deg|}}}}}}) > map<!-- | |<!--then-->Latitude#1 ({{{lat|{{{lat_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|top}}).| | --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }} | ||
{{#ifexpr: {{{long|{{{lon_deg|}}}}}} < {{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({{Location map {{{1}}}|left}}).| | --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }} | ||
{{#ifexpr: {{{long|{{{lon_deg|}}}}}} >{{Location map {{{1}}}|right}} | {{#ifexpr: {{{long|{{{lon_deg|}}}}}} | ||
|<!--then-->Longitude#1 ({{{long|{{{lon_deg|}}}}}}) > map<!-- | > {{Location map {{{1}}}|right}} | ||
--> max({{Location map {{{1}}}|right}}).| | |<!--then-->Longitude#1({{{long|{{{lon_deg|}}}}}}) > map<!-- | ||
--> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}} | |||
<!-- --------------------------------- Begin point division #1 --> | <!-- --------------------------------- Begin point division #1 --> | ||
<div style="position: absolute; z-index: 2; top: {{#expr: | <div style="position: absolute; z-index: 2; top: {{#expr: | ||
Line 58: | Line 63: | ||
}}%; height: 0; width: 0; margin: 0; padding: 0;"><!-- | }}%; height: 0; width: 0; margin: 0; padding: 0;"><!-- | ||
------------------------------------------------ Marker#1 division | ------------------------------------------------ Marker#1 division | ||
--><div style="position: relative; text-align: center; {{#if: {{{marksize|}}} | --><div style="position: relative; text-align: center; {{ | ||
| left: -{{#expr: {{{marksize}}} / 2 round 0 }}px; top: -{{#expr: {{{markhigh| | #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}} | | left: -{{#expr: {{#if: {{Location map {{{1}}}|marksize}} | ||
|{{Location map {{{1}}}|marksize}} | |{{Location map {{{1}}}|marksize}} | ||
Line 65: | Line 73: | ||
{{#if: {{Location map {{{1}}}|markhigh}} | {{#if: {{Location map {{{1}}}|markhigh}} | ||
|{{Location map {{{1}}}|markhigh}} | |{{Location map {{{1}}}|markhigh}} | ||
|<!--else-->8}} / 2 round 0 }}px; width: {{ | |<!--else-->{{#if: {{Location map {{{1}}}|marksize}} | ||
|{{Location map {{{1}}}|marksize}} |<!--else-->8}} | |||
}} / 2 round 0 }}px; width: {{ | |||
#if: {{Location map {{{1}}}|marksize}} | #if: {{Location map {{{1}}}|marksize}} | ||
|{{Location map {{{1}}}|marksize}} | |{{Location map {{{1}}}|marksize}} | ||
Line 74: | Line 84: | ||
}}"><!-- specify marker#1 -->[[Image:{{#if: {{{mark|}}} | }}"><!-- specify marker#1 -->[[Image:{{#if: {{{mark|}}} | ||
| {{{mark}}} | | {{{mark}}} | ||
| {{#if: {{Location map {{{1}}}|mark}}|{{Location map {{{1}}}|mark}}| | | {{#if: {{Location map {{{1}}}|mark}}|{{Location map {{{1}}}|mark}}|Locator Dot.gif}} | ||
}}|{{#if: {{{marksize|}}} | }}|{{#if: {{{marksize|}}} | ||
| {{{marksize}}} | | {{{marksize}}} | ||
Line 80: | Line 90: | ||
|{{Location map {{{1}}}|marksize}}|<!--else-->8}} | |{{Location map {{{1}}}|marksize}}|<!--else-->8}} | ||
}}<!--endif-->px|{{#if: {{{label|}}} | }}<!--endif-->px|{{#if: {{{label|}}} | ||
| {{{label}}} |<!--else-->{{PAGENAME}} | |||
}}<!--endif label-->]]</div><!-- end-div marker1 | |||
}}<!--endif label-->]]</div><!-- end-div marker1 | |||
---------------------------------------------- Label #1 | ---------------------------------------------- Label #1 | ||
-->{{#ifeq: {{{position|{{{pos|}}}}}} | none | -->{{#ifeq: {{{position|{{{pos|}}}}}} | none | ||
| | | | ||
|<div style="font-size: {{{label_size|90}}}%; line-height: 110%; position: relative; top: -1.5em; width: 6em; | |<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}}}}}}*.62 | |||
+ {{{label_size|90}}}*.08 - 11.5 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 --> | }}">{{{label|}}}</span></div><!-- end-div label1 --> | ||
}}</div><!--end-div point#1--> | }}</div><!--end-div point#1--> | ||
Line 104: | Line 122: | ||
--then latitude-2 exists --------------- Verify lat./longitude | --then latitude-2 exists --------------- Verify lat./longitude | ||
-->{{ | -->{{ | ||
#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}}).| }} | |||
{{#ifexpr: {{{lat2|{{{lat2_deg|}}}}}} > {{Location map {{{1}}}|top}} | {{#ifexpr: {{{lat2|{{{lat2_deg|}}}}}} > {{Location map {{{1}}}|top}} | ||
|<!--then-->Latitude#2 ({{{lat2|{{{lat2_deg|}}}}}}) > map<!-- | |<!--then-->Latitude#2 ({{{lat2|{{{lat2_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|top}}).| | --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }} | ||
{{#ifexpr:{{{long2|{{{lon2_deg|}}}}}} <{{Location map {{{1}}}|left}} | {{#ifexpr:{{{long2|{{{lon2_deg|}}}}}} <{{Location map {{{1}}}|left}} | ||
|<!--then-->Longitude#2({{{long2|{{{lon2_deg|}}}}}}) < map<!-- | |<!--then-->Longitude#2({{{long2|{{{lon2_deg|}}}}}}) < map<!-- | ||
--> min({{Location map {{{1}}}|left}}).| | --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }} | ||
{{#ifexpr: {{{long2|{{{lon2_deg|}}}}}}>{{Location map {{{1}}}|right}} | {{#ifexpr: {{{long2|{{{lon2_deg|}}}}}} | ||
> {{Location map {{{1}}}|right}} | |||
|<!--then-->Longitude#2({{{long2|{{{lon2_deg|}}}}}}) > map<!-- | |<!--then-->Longitude#2({{{long2|{{{lon2_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|right}}).| | --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}} | ||
<!-- --------------------------------- Begin point division #2 --> | <!-- --------------------------------- Begin point division #2 --> | ||
<div style="position: absolute; z-index: 2; | <div style="position: absolute; z-index: 2; | ||
Line 148: | Line 167: | ||
|<!--else-->{{{mark2size|8}}} }} / 2 round 0 }}px; width: | |<!--else-->{{{mark2size|8}}} }} / 2 round 0 }}px; width: | ||
{{#if: {{Location map {{{1}}}|mark2size}} | {{#if: {{Location map {{{1}}}|mark2size}} | ||
|{{Location map {{{1}}}|mark2size}} | |{{Location map {{{1}}}|mark2size}}| 8}}px; font-size: | ||
{{#if: {{Location map {{{1}}}|mark2size}} | {{#if: {{Location map {{{1}}}|mark2size}} | ||
|{{Location map {{{1}}}|mark2size}} | |{{Location map {{{1}}}|mark2size}}| 8}}px; | ||
}}"><!-- specify marker#2 --><!-- | }}"><!-- specify marker#2 --><!-- | ||
-->[[Image:{{#if: {{{mark2|}}} | -->[[Image:{{#if: {{{mark2|}}} | ||
| {{{mark2}}} | |{{{mark2}}} | ||
| <!--else-->{{#if: {{Location map {{{1}}}|mark2}} | |<!--else-->{{#if: {{Location map {{{1}}}|mark2}} | ||
|{{Location map {{{1}}}|mark2}}|<!--else-->Red pog.svg}} | |{{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) | ||
-->{{#if: {{{mark2size|}}} | -->{{#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 <!-- | |||
|{{Location map {{{1}}}|mark2size}} | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark2size}} <!-- | ||
-->|{{Location map {{{1}}}|mark2size}}|<!--else-->8<!-- | |||
|{{{mark2high}}} | -->}}x{{#if: {{{mark2high|}}}<!--B | ||
|{{#if: {{Location map {{{1}}}|mark2high}} | -->|{{{mark2high}}} <!-- | ||
-->|{{#if: {{Location map {{{1}}}|mark2high}} <!-- | |||
}} | --> |{{Location map {{{1}}}|mark2high}} <!-- | ||
| {{{label2}}}<!--set mouseover alt-text--> | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark2size}}<!-- | ||
| <!--else-->{{PAGENAME}} | --> |{{Location map {{{1}}}|mark2size}}|<!--else-->8}}<!-- | ||
}}<!--endif label2-->]]</div><!-- end-div marker2 | -->}}<!--eif-Loc..mark2high-- | ||
-->}}<!--eif-mark2high-B-->px<!-- | |||
-->}}<!--endif mark2size-SENT-->|{{#if: {{{label2|}}}<!-- | |||
--> | {{{label2}}}<!--set mouseover alt-text--> | |||
--> | <!--else-->{{PAGENAME}} | |||
}}<!--endif label2-->]]</div><!-- end-div marker2 | |||
---------------------------------------------- Label #2 | ---------------------------------------------- Label #2 | ||
-->{{#ifeq: {{{position2|{{{pos2|}}}}}} | none | -->{{#ifeq: {{{position2|{{{pos2|}}}}}} | none | ||
Line 182: | Line 204: | ||
|<div style="font-size: {{{label2_size|90}}}%; line-height: 110%; | |<div style="font-size: {{{label2_size|90}}}%; line-height: 110%; | ||
position: relative; top: -1.5em; width: 6em; | position: relative; top: -1.5em; width: 6em; | ||
{{#switch: {{{position2|{{{pos2}}}}}} | {{#switch: {{{position2|{{{pos2|right}}}}}} | ||
|left = left: -6. | |left = top:-{{#expr: {{{mark2high|{{{mark2size|8}}}}}}*0.76 | ||
|right = left: 0. | + {{{label2_size|90}}}*.15 - 2.5 round 0}}px; | ||
|top = top:-{{#expr: {{{mark2high|8}}}*1. | left: -{{#expr: 6.05 + {{{mark2size|8}}}/21 | ||
+ {{{label2_size|90}}}*. | + {{{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; | left: -3em; text-align: center; | ||
|bottom = top:-0 | |bottom = top: -{{#expr:{{{mark2high|{{{mark2size|8}}}}}}*.62 | ||
+ {{{label2_size|90}}}*.08 - 11.5 round 0}}px; | |||
left: -3em; text-align: center; | |||
|<!--otherwise-->}}"><span style="padding: 1px; | |||
{{#if: {{{background2|{{{bg2|}}}}}} | {{#if: {{{background2|{{{bg2|}}}}}} | ||
| background-color: {{{background2|{{{bg2}}}}}}; | | background-color: {{{background2|{{{bg2}}}}}}; | ||
Line 201: | Line 230: | ||
--then latitude-3 exists --------------- Verify lat./longitude | --then latitude-3 exists --------------- Verify lat./longitude | ||
-->{{ | -->{{ | ||
#ifexpr:{{{lat3|{{{lat3_deg|}}}}}}<{{Location map {{{1}}}|bottom}} | |||
|<!--then-->Latitude#3 ({{{lat3|{{{lat3_deg|}}}}}}) < map<!-- | |<!--then-->Latitude#3 ({{{lat3|{{{lat3_deg|}}}}}}) < map<!-- | ||
--> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }} | |||
{{#ifexpr: {{{lat3|{{{lat3_deg|}}}}}} > {{Location map {{{1}}}|top}} | {{#ifexpr: {{{lat3|{{{lat3_deg|}}}}}} > {{Location map {{{1}}}|top}} | ||
|<!--then-->Latitude#3 ({{{lat3|{{{lat3_deg|}}}}}}) > map<!-- | |<!--then-->Latitude#3 ({{{lat3|{{{lat3_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|top}}).| | --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }} | ||
{{#ifexpr:{{{long3|{{{lon3_deg|}}}}}} <{{Location map {{{1}}}|left}} | {{#ifexpr:{{{long3|{{{lon3_deg|}}}}}} <{{Location map {{{1}}}|left}} | ||
|<!--then-->Longitude#3({{{long3|{{{lon3_deg|}}}}}}) < map<!-- | |<!--then-->Longitude#3({{{long3|{{{lon3_deg|}}}}}}) < map<!-- | ||
--> min({{Location map {{{1}}}|left}}).| | --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }} | ||
{{#ifexpr: {{{long3|{{{lon3_deg|}}}}}}>{{Location map {{{1}}}|right}} | {{#ifexpr: {{{long3|{{{lon3_deg|}}}}}} | ||
> {{Location map {{{1}}}|right}} | |||
|<!--then-->Longitude#3({{{long3|{{{lon3_deg|}}}}}}) > map<!-- | |<!--then-->Longitude#3({{{long3|{{{lon3_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|right}}).| | --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}} | ||
<!-- --------------------------------- Begin point division #3 --> | <!-- --------------------------------- Begin point division #3 --> | ||
<div style="position: absolute; z-index: 2; | <div style="position: absolute; z-index: 2; | ||
Line 258: | Line 288: | ||
----- 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) | ||
-->{{#if: {{{mark3size|}}} | -->{{#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 <!-- | |||
|{{Location map {{{1}}}|mark3size}} | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark3size}} <!-- | ||
-->|{{Location map {{{1}}}|mark3size}}|<!--else-->8<!-- | |||
|{{{mark3high}}} | -->}}x{{#if: {{{mark3high|}}}<!--B | ||
|{{#if: {{Location map {{{1}}}|mark3high}} | -->|{{{mark3high}}} <!-- | ||
-->|{{#if: {{Location map {{{1}}}|mark3high}} <!-- | |||
}} | --> |{{Location map {{{1}}}|mark3high}} <!-- | ||
| {{{label3}}}<!--set mouseover alt-text--> | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark3size}}<!-- | ||
| <!--else-->{{PAGENAME}} | --> |{{Location map {{{1}}}|mark3size}}|<!--else-->8}}<!-- | ||
}}<!--endif label3-->]]</div><!-- end-div marker3 | -->}}<!--eif-Loc..mark3high-- | ||
-->}}<!--eif-mark3high-B-->px<!-- | |||
-->}}<!--endif mark3size-SENT-->|{{#if: {{{label3|}}}<!-- | |||
--> | {{{label3}}}<!--set mouseover alt-text--> | |||
--> | <!--else-->{{PAGENAME}} | |||
}}<!--endif label3-->]]</div><!-- end-div marker3 | |||
---------------------------------------------- Label #3 | ---------------------------------------------- Label #3 | ||
-->{{#ifeq: {{{position3|{{{pos3|}}}}}} | none | -->{{#ifeq: {{{position3|{{{pos3|}}}}}} | none | ||
Line 279: | Line 314: | ||
|<div style="font-size: {{{label3_size|90}}}%; line-height: 110%; | |<div style="font-size: {{{label3_size|90}}}%; line-height: 110%; | ||
position: relative; top: -1.5em; width: 6em; | position: relative; top: -1.5em; width: 6em; | ||
{{#switch: {{{position3|{{{pos3}}}}}} | {{#switch: {{{position3|{{{pos3|right}}}}}} | ||
|left = left: -6. | |left = top:-{{#expr: {{{mark3high|{{{mark3size|8}}}}}}*0.76 | ||
|right = left: 0. | + {{{label3_size|90}}}*.15 - 2.5 round 0}}px; | ||
|top = top:-{{#expr: {{{mark3high|8}}}*1. | left: -{{#expr: 6.05 + {{{mark3size|8}}}/21 | ||
+ {{{label3_size|90}}}*. | + {{{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; | left: -3em; text-align: center; | ||
|bottom = top:-0 | |bottom = top: -{{#expr:{{{mark3high|{{{mark3size|8}}}}}}*.62 | ||
+ {{{label3_size|90}}}*.08 - 11.5 round 0}}px; | |||
left: -3em; text-align: center; | |||
|<!--otherwise-->}}"><span style="padding: 1px; | |||
{{#if: {{{background3|{{{bg3|}}}}}} | {{#if: {{{background3|{{{bg3|}}}}}} | ||
| background-color: {{{background3|{{{bg3}}}}}}; | | background-color: {{{background3|{{{bg3}}}}}}; | ||
Line 298: | Line 340: | ||
--then latitude-4 exists --------------- Verify lat./longitude | --then latitude-4 exists --------------- Verify lat./longitude | ||
-->{{ | -->{{ | ||
#ifexpr:{{{lat4|{{{lat4_deg|}}}}}}<{{Location map {{{1}}}|bottom}} | |||
|<!--then-->Latitude#4 ({{{lat4|{{{lat4_deg|}}}}}}) < map<!-- | |<!--then-->Latitude#4 ({{{lat4|{{{lat4_deg|}}}}}}) < map<!-- | ||
--> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }} | |||
{{#ifexpr: {{{lat4|{{{lat4_deg|}}}}}} > {{Location map {{{1}}}|top}} | {{#ifexpr: {{{lat4|{{{lat4_deg|}}}}}} > {{Location map {{{1}}}|top}} | ||
|<!--then-->Latitude#4 ({{{lat4|{{{lat4_deg|}}}}}}) > map<!-- | |<!--then-->Latitude#4 ({{{lat4|{{{lat4_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|top}}).| | --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }} | ||
{{#ifexpr:{{{long4|{{{lon4_deg|}}}}}} <{{Location map {{{1}}}|left}} | {{#ifexpr:{{{long4|{{{lon4_deg|}}}}}} <{{Location map {{{1}}}|left}} | ||
|<!--then-->Longitude#4({{{long4|{{{lon4_deg|}}}}}}) < map<!-- | |<!--then-->Longitude#4({{{long4|{{{lon4_deg|}}}}}}) < map<!-- | ||
--> min({{Location map {{{1}}}|left}}).| | --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }} | ||
{{#ifexpr: {{{long4|{{{lon4_deg|}}}}}}>{{Location map {{{1}}}|right}} | {{#ifexpr: {{{long4|{{{lon4_deg|}}}}}} | ||
> {{Location map {{{1}}}|right}} | |||
|<!--then-->Longitude#4({{{long4|{{{lon4_deg|}}}}}}) > map<!-- | |<!--then-->Longitude#4({{{long4|{{{lon4_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|right}}).| | --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}} | ||
<!-- --------------------------------- Begin point division #4 --> | <!-- --------------------------------- Begin point division #4 --> | ||
<div style="position: absolute; z-index: 2; | <div style="position: absolute; z-index: 2; | ||
Line 355: | Line 398: | ||
----- 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) | ||
-->{{#if: {{{mark4size|}}} | -->{{#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 <!-- | |||
|{{Location map {{{1}}}|mark4size}} | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark4size}} <!-- | ||
-->|{{Location map {{{1}}}|mark4size}}|<!--else-->8<!-- | |||
|{{{mark4high}}} | -->}}x{{#if: {{{mark4high|}}}<!--B | ||
|{{#if: {{Location map {{{1}}}|mark4high}} | -->|{{{mark4high}}} <!-- | ||
-->|{{#if: {{Location map {{{1}}}|mark4high}} <!-- | |||
}} | --> |{{Location map {{{1}}}|mark4high}} <!-- | ||
| {{{label4}}}<!--set mouseover alt-text--> | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark4size}}<!-- | ||
| <!--else-->{{PAGENAME}} | --> |{{Location map {{{1}}}|mark4size}}|<!--else-->8}}<!-- | ||
}}<!--endif label4-->]]</div><!-- end-div marker4 | -->}}<!--eif-Loc..mark4high-- | ||
-->}}<!--eif-mark4high-B-->px<!-- | |||
-->}}<!--endif mark4size-SENT-->|{{#if: {{{label4|}}}<!-- | |||
--> | {{{label4}}}<!--set mouseover alt-text--> | |||
--> | <!--else-->{{PAGENAME}} | |||
}}<!--endif label4-->]]</div><!-- end-div marker4 | |||
---------------------------------------------- Label #4 | ---------------------------------------------- Label #4 | ||
-->{{#ifeq: {{{position4|{{{pos4|}}}}}} | none | -->{{#ifeq: {{{position4|{{{pos4|}}}}}} | none | ||
Line 376: | Line 424: | ||
|<div style="font-size: {{{label4_size|90}}}%; line-height: 110%; | |<div style="font-size: {{{label4_size|90}}}%; line-height: 110%; | ||
position: relative; top: -1.5em; width: 6em; | position: relative; top: -1.5em; width: 6em; | ||
{{#switch: {{{position4|{{{pos4}}}}}} | {{#switch: {{{position4|{{{pos4|right}}}}}} | ||
|left = left: -6. | |left = top:-{{#expr: {{{mark4high|{{{mark4size|8}}}}}}*0.76 | ||
|right = left: 0. | + {{{label4_size|90}}}*.15 - 2.5 round 0}}px; | ||
|top = top:-{{#expr: {{{mark4high|8}}}*1. | 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; | + {{{label4_size|90}}}*.13 + 2.5 round 0}}px; | ||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|bottom = top:-0 | |bottom = top: -{{#expr:{{{mark4high|{{{mark4size|8}}}}}}*.62 | ||
+ {{{label4_size|90}}}*.08 - 11.5 round 0}}px; | |||
left: -3em; text-align: center; | |||
|<!--otherwise-->}}"><span style="padding: 1px; | |||
{{#if: {{{background4|{{{bg4|}}}}}} | {{#if: {{{background4|{{{bg4|}}}}}} | ||
| background-color: {{{background4|{{{bg4}}}}}}; | | background-color: {{{background4|{{{bg4}}}}}}; | ||
Line 395: | Line 450: | ||
--then latitude-5 exists --------------- Verify lat./longitude | --then latitude-5 exists --------------- Verify lat./longitude | ||
-->{{ | -->{{ | ||
#ifexpr:{{{lat5|{{{lat5_deg|}}}}}}<{{Location map {{{1}}}|bottom}} | |||
|<!--then-->Latitude#5 ({{{lat5|{{{lat5_deg|}}}}}}) < map<!-- | |<!--then-->Latitude#5 ({{{lat5|{{{lat5_deg|}}}}}}) < map<!-- | ||
--> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }} | |||
{{#ifexpr: {{{lat5|{{{lat5_deg|}}}}}} > {{Location map {{{1}}}|top}} | {{#ifexpr: {{{lat5|{{{lat5_deg|}}}}}} > {{Location map {{{1}}}|top}} | ||
|<!--then-->Latitude#5 ({{{lat5|{{{lat5_deg|}}}}}}) > map<!-- | |<!--then-->Latitude#5 ({{{lat5|{{{lat5_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|top}}).| | --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }} | ||
{{#ifexpr:{{{long5|{{{lon5_deg|}}}}}} <{{Location map {{{1}}}|left}} | {{#ifexpr:{{{long5|{{{lon5_deg|}}}}}} <{{Location map {{{1}}}|left}} | ||
|<!--then-->Longitude#5({{{long5|{{{lon5_deg|}}}}}}) < map<!-- | |<!--then-->Longitude#5({{{long5|{{{lon5_deg|}}}}}}) < map<!-- | ||
--> min({{Location map {{{1}}}|left}}).| | --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }} | ||
{{#ifexpr: {{{long5|{{{lon5_deg|}}}}}}>{{Location map {{{1}}}|right}} | {{#ifexpr: {{{long5|{{{lon5_deg|}}}}}} | ||
> {{Location map {{{1}}}|right}} | |||
|<!--then-->Longitude#5({{{long5|{{{lon5_deg|}}}}}}) > map<!-- | |<!--then-->Longitude#5({{{long5|{{{lon5_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|right}}).| | --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}} | ||
<!-- --------------------------------- Begin point division #5 --> | <!-- --------------------------------- Begin point division #5 --> | ||
<div style="position: absolute; z-index: 2; | <div style="position: absolute; z-index: 2; | ||
Line 452: | Line 508: | ||
----- 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) | ||
-->{{#if: {{{mark5size|}}} | -->{{#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 <!-- | |||
|{{Location map {{{1}}}|mark5size}} | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark5size}} <!-- | ||
-->|{{Location map {{{1}}}|mark5size}}|<!--else-->8<!-- | |||
|{{{mark5high}}} | -->}}x{{#if: {{{mark5high|}}}<!--B | ||
|{{#if: {{Location map {{{1}}}|mark5high}} | -->|{{{mark5high}}} <!-- | ||
-->|{{#if: {{Location map {{{1}}}|mark5high}} <!-- | |||
}} | --> |{{Location map {{{1}}}|mark5high}} <!-- | ||
| {{{label5}}}<!--set mouseover alt-text--> | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark5size}}<!-- | ||
| <!--else-->{{PAGENAME}} | --> |{{Location map {{{1}}}|mark5size}}|<!--else-->8}}<!-- | ||
}}<!--endif label5-->]]</div><!-- end-div marker5 | -->}}<!--eif-Loc..mark5high-- | ||
-->}}<!--eif-mark5high-B-->px<!-- | |||
-->}}<!--endif mark5size-SENT-->|{{#if: {{{label5|}}}<!-- | |||
--> | {{{label5}}}<!--set mouseover alt-text--> | |||
--> | <!--else-->{{PAGENAME}} | |||
}}<!--endif label5-->]]</div><!-- end-div marker5 | |||
---------------------------------------------- Label #5 | ---------------------------------------------- Label #5 | ||
-->{{#ifeq: {{{position5|{{{pos5|}}}}}} | none | -->{{#ifeq: {{{position5|{{{pos5|}}}}}} | none | ||
Line 473: | Line 534: | ||
|<div style="font-size: {{{label5_size|90}}}%; line-height: 110%; | |<div style="font-size: {{{label5_size|90}}}%; line-height: 110%; | ||
position: relative; top: -1.5em; width: 6em; | position: relative; top: -1.5em; width: 6em; | ||
{{#switch: {{{position5|{{{pos5}}}}}} | {{#switch: {{{position5|{{{pos5|right}}}}}} | ||
|left = left: -6. | |left = top:-{{#expr: {{{mark5high|{{{mark5size|8}}}}}}*0.76 | ||
|right = left: 0. | + {{{label5_size|90}}}*.15 - 2.5 round 0}}px; | ||
|top = top:-{{#expr: {{{mark5high|8}}}*1. | 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; | + {{{label5_size|90}}}*.13 + 2.5 round 0}}px; | ||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|bottom = top:-0 | |bottom = top: -{{#expr:{{{mark5high|{{{mark5size|8}}}}}}*.62 | ||
+ {{{label5_size|90}}}*.08 - 11.5 round 0}}px; | |||
left: -3em; text-align: center; | |||
|<!--otherwise-->}}"><span style="padding: 1px; | |||
{{#if: {{{background5|{{{bg5|}}}}}} | {{#if: {{{background5|{{{bg5|}}}}}} | ||
| background-color: {{{background5|{{{bg5}}}}}}; | | background-color: {{{background5|{{{bg5}}}}}}; | ||
Line 492: | Line 560: | ||
--then latitude-6 exists --------------- Verify lat./longitude | --then latitude-6 exists --------------- Verify lat./longitude | ||
-->{{ | -->{{ | ||
#ifexpr:{{{lat6|{{{lat6_deg|}}}}}}<{{Location map {{{1}}}|bottom}} | |||
|<!--then-->Latitude#6 ({{{lat6|{{{lat6_deg|}}}}}}) < map<!-- | |<!--then-->Latitude#6 ({{{lat6|{{{lat6_deg|}}}}}}) < map<!-- | ||
--> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }} | |||
{{#ifexpr: {{{lat6|{{{lat6_deg|}}}}}} > {{Location map {{{1}}}|top}} | {{#ifexpr: {{{lat6|{{{lat6_deg|}}}}}} > {{Location map {{{1}}}|top}} | ||
|<!--then-->Latitude#6 ({{{lat6|{{{lat6_deg|}}}}}}) > map<!-- | |<!--then-->Latitude#6 ({{{lat6|{{{lat6_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|top}}).| | --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }} | ||
{{#ifexpr:{{{long6|{{{lon6_deg|}}}}}} <{{Location map {{{1}}}|left}} | {{#ifexpr:{{{long6|{{{lon6_deg|}}}}}} <{{Location map {{{1}}}|left}} | ||
|<!--then-->Longitude#6({{{long6|{{{lon6_deg|}}}}}}) < map<!-- | |<!--then-->Longitude#6({{{long6|{{{lon6_deg|}}}}}}) < map<!-- | ||
--> min({{Location map {{{1}}}|left}}).| | --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }} | ||
{{#ifexpr: {{{long6|{{{lon6_deg|}}}}}}>{{Location map {{{1}}}|right}} | {{#ifexpr: {{{long6|{{{lon6_deg|}}}}}} | ||
> {{Location map {{{1}}}|right}} | |||
|<!--then-->Longitude#6({{{long6|{{{lon6_deg|}}}}}}) > map<!-- | |<!--then-->Longitude#6({{{long6|{{{lon6_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|right}}).| | --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}} | ||
<!-- --------------------------------- Begin point division #6 --> | <!-- --------------------------------- Begin point division #6 --> | ||
<div style="position: absolute; z-index: 2; | <div style="position: absolute; z-index: 2; | ||
Line 549: | Line 618: | ||
----- 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) | ||
-->{{#if: {{{mark6size|}}} | -->{{#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 <!-- | |||
|{{Location map {{{1}}}|mark6size}} | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark6size}} <!-- | ||
-->|{{Location map {{{1}}}|mark6size}}|<!--else-->8<!-- | |||
|{{{mark6high}}} | -->}}x{{#if: {{{mark6high|}}}<!--B | ||
|{{#if: {{Location map {{{1}}}|mark6high}} | -->|{{{mark6high}}} <!-- | ||
-->|{{#if: {{Location map {{{1}}}|mark6high}} <!-- | |||
}} | --> |{{Location map {{{1}}}|mark6high}} <!-- | ||
| {{{label6}}}<!--set mouseover alt-text--> | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark6size}}<!-- | ||
| <!--else-->{{PAGENAME}} | --> |{{Location map {{{1}}}|mark6size}}|<!--else-->8}}<!-- | ||
}}<!--endif label6-->]]</div><!-- end-div marker6 | -->}}<!--eif-Loc..mark6high-- | ||
-->}}<!--eif-mark6high-B-->px<!-- | |||
-->}}<!--endif mark6size-SENT-->|{{#if: {{{label6|}}}<!-- | |||
--> | {{{label6}}}<!--set mouseover alt-text--> | |||
--> | <!--else-->{{PAGENAME}} | |||
}}<!--endif label6-->]]</div><!-- end-div marker6 | |||
---------------------------------------------- Label #6 | ---------------------------------------------- Label #6 | ||
-->{{#ifeq: {{{position6|{{{pos6|}}}}}} | none | -->{{#ifeq: {{{position6|{{{pos6|}}}}}} | none | ||
Line 570: | Line 644: | ||
|<div style="font-size: {{{label6_size|90}}}%; line-height: 110%; | |<div style="font-size: {{{label6_size|90}}}%; line-height: 110%; | ||
position: relative; top: -1.5em; width: 6em; | position: relative; top: -1.5em; width: 6em; | ||
{{#switch: {{{position6|{{{pos6}}}}}} | {{#switch: {{{position6|{{{pos6|right}}}}}} | ||
|left = left: -6. | |left = top:-{{#expr: {{{mark6high|{{{mark6size|8}}}}}}*0.76 | ||
|right = left: 0. | + {{{label6_size|90}}}*.15 - 2.5 round 0}}px; | ||
|top = top:-{{#expr: {{{mark6high|8}}}*1. | 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; | + {{{label6_size|90}}}*.13 + 2.5 round 0}}px; | ||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|bottom = top:-0 | |bottom = top: -{{#expr:{{{mark6high|{{{mark6size|8}}}}}}*.62 | ||
+ {{{label6_size|90}}}*.08 - 11.5 round 0}}px; | |||
left: -3em; text-align: center; | |||
|<!--otherwise-->}}"><span style="padding: 1px; | |||
{{#if: {{{background6|{{{bg6|}}}}}} | {{#if: {{{background6|{{{bg6|}}}}}} | ||
| background-color: {{{background6|{{{bg6}}}}}}; | | background-color: {{{background6|{{{bg6}}}}}}; | ||
Line 589: | Line 670: | ||
--then latitude-7 exists --------------- Verify lat./longitude | --then latitude-7 exists --------------- Verify lat./longitude | ||
-->{{ | -->{{ | ||
#ifexpr:{{{lat7|{{{lat7_deg|}}}}}}<{{Location map {{{1}}}|bottom}} | |||
|<!--then-->Latitude#7 ({{{lat7|{{{lat7_deg|}}}}}}) < map<!-- | |<!--then-->Latitude#7 ({{{lat7|{{{lat7_deg|}}}}}}) < map<!-- | ||
--> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }} | |||
{{#ifexpr: {{{lat7|{{{lat7_deg|}}}}}} > {{Location map {{{1}}}|top}} | {{#ifexpr: {{{lat7|{{{lat7_deg|}}}}}} > {{Location map {{{1}}}|top}} | ||
|<!--then-->Latitude#7 ({{{lat7|{{{lat7_deg|}}}}}}) > map<!-- | |<!--then-->Latitude#7 ({{{lat7|{{{lat7_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|top}}).| | --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }} | ||
{{#ifexpr:{{{long7|{{{lon7_deg|}}}}}} <{{Location map {{{1}}}|left}} | {{#ifexpr:{{{long7|{{{lon7_deg|}}}}}} <{{Location map {{{1}}}|left}} | ||
|<!--then-->Longitude#7({{{long7|{{{lon7_deg|}}}}}}) < map<!-- | |<!--then-->Longitude#7({{{long7|{{{lon7_deg|}}}}}}) < map<!-- | ||
--> min({{Location map {{{1}}}|left}}).| | --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }} | ||
{{#ifexpr: {{{long7|{{{lon7_deg|}}}}}}>{{Location map {{{1}}}|right}} | {{#ifexpr: {{{long7|{{{lon7_deg|}}}}}} | ||
> {{Location map {{{1}}}|right}} | |||
|<!--then-->Longitude#7({{{long7|{{{lon7_deg|}}}}}}) > map<!-- | |<!--then-->Longitude#7({{{long7|{{{lon7_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|right}}).| | --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}} | ||
<!-- --------------------------------- Begin point division #7 --> | <!-- --------------------------------- Begin point division #7 --> | ||
<div style="position: absolute; z-index: 2; | <div style="position: absolute; z-index: 2; | ||
Line 646: | Line 728: | ||
----- 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) | ||
-->{{#if: {{{mark7size|}}} | -->{{#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 <!-- | |||
|{{Location map {{{1}}}|mark7size}} | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark7size}} <!-- | ||
-->|{{Location map {{{1}}}|mark7size}}|<!--else-->8<!-- | |||
|{{{mark7high}}} | -->}}x{{#if: {{{mark7high|}}}<!--B | ||
|{{#if: {{Location map {{{1}}}|mark7high}} | -->|{{{mark7high}}} <!-- | ||
-->|{{#if: {{Location map {{{1}}}|mark7high}} <!-- | |||
}} | --> |{{Location map {{{1}}}|mark7high}} <!-- | ||
| {{{label7}}}<!--set mouseover alt-text--> | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark7size}}<!-- | ||
| <!--else-->{{PAGENAME}} | --> |{{Location map {{{1}}}|mark7size}}|<!--else-->8}}<!-- | ||
}}<!--endif label7-->]]</div><!-- end-div marker7 | -->}}<!--eif-Loc..mark7high-- | ||
-->}}<!--eif-mark7high-B-->px<!-- | |||
-->}}<!--endif mark7size-SENT-->|{{#if: {{{label7|}}}<!-- | |||
--> | {{{label7}}}<!--set mouseover alt-text--> | |||
--> | <!--else-->{{PAGENAME}} | |||
}}<!--endif label7-->]]</div><!-- end-div marker7 | |||
---------------------------------------------- Label #7 | ---------------------------------------------- Label #7 | ||
-->{{#ifeq: {{{position7|{{{pos7|}}}}}} | none | -->{{#ifeq: {{{position7|{{{pos7|}}}}}} | none | ||
Line 667: | Line 754: | ||
|<div style="font-size: {{{label7_size|90}}}%; line-height: 110%; | |<div style="font-size: {{{label7_size|90}}}%; line-height: 110%; | ||
position: relative; top: -1.5em; width: 6em; | position: relative; top: -1.5em; width: 6em; | ||
{{#switch: {{{position7|{{{pos7}}}}}} | {{#switch: {{{position7|{{{pos7|right}}}}}} | ||
|left = left: -6. | |left = top:-{{#expr: {{{mark7high|{{{mark7size|8}}}}}}*0.76 | ||
|right = left: 0. | + {{{label7_size|90}}}*.15 - 2.5 round 0}}px; | ||
|top = top:-{{#expr: {{{mark7high|8}}}*1. | 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; | + {{{label7_size|90}}}*.13 + 2.5 round 0}}px; | ||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|bottom = top:-0 | |bottom = top: -{{#expr:{{{mark7high|{{{mark7size|8}}}}}}*.12 | ||
+ {{{label7_size|90}}}*.08 - 6.5 round 0}}px; | |||
left: -3em; text-align: center; | |||
|<!--otherwise-->}}"><span style="padding: 1px; | |||
{{#if: {{{background7|{{{bg7|}}}}}} | {{#if: {{{background7|{{{bg7|}}}}}} | ||
| background-color: {{{background7|{{{bg7}}}}}}; | | background-color: {{{background7|{{{bg7}}}}}}; | ||
Line 686: | Line 780: | ||
--then latitude-8 exists --------------- Verify lat./longitude | --then latitude-8 exists --------------- Verify lat./longitude | ||
-->{{ | -->{{ | ||
#ifexpr:{{{lat8|{{{lat8_deg|}}}}}}<{{Location map {{{1}}}|bottom}} | |||
|<!--then-->Latitude#8 ({{{lat8|{{{lat8_deg|}}}}}}) < map<!-- | |<!--then-->Latitude#8 ({{{lat8|{{{lat8_deg|}}}}}}) < map<!-- | ||
--> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }} | |||
{{#ifexpr: {{{lat8|{{{lat8_deg|}}}}}} > {{Location map {{{1}}}|top}} | {{#ifexpr: {{{lat8|{{{lat8_deg|}}}}}} > {{Location map {{{1}}}|top}} | ||
|<!--then-->Latitude#8 ({{{lat8|{{{lat8_deg|}}}}}}) > map<!-- | |<!--then-->Latitude#8 ({{{lat8|{{{lat8_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|top}}).| | --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }} | ||
{{#ifexpr:{{{long8|{{{lon8_deg|}}}}}} <{{Location map {{{1}}}|left}} | {{#ifexpr:{{{long8|{{{lon8_deg|}}}}}} <{{Location map {{{1}}}|left}} | ||
|<!--then-->Longitude#8({{{long8|{{{lon8_deg|}}}}}}) < map<!-- | |<!--then-->Longitude#8({{{long8|{{{lon8_deg|}}}}}}) < map<!-- | ||
--> min({{Location map {{{1}}}|left}}).| | --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }} | ||
{{#ifexpr: {{{long8|{{{lon8_deg|}}}}}}>{{Location map {{{1}}}|right}} | {{#ifexpr: {{{long8|{{{lon8_deg|}}}}}} | ||
> {{Location map {{{1}}}|right}} | |||
|<!--then-->Longitude#8({{{long8|{{{lon8_deg|}}}}}}) > map<!-- | |<!--then-->Longitude#8({{{long8|{{{lon8_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|right}}).| | --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}} | ||
<!-- --------------------------------- Begin point division #8 --> | <!-- --------------------------------- Begin point division #8 --> | ||
<div style="position: absolute; z-index: 2; | <div style="position: absolute; z-index: 2; | ||
Line 743: | Line 838: | ||
----- 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) | ||
-->{{#if: {{{mark8size|}}} | -->{{#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 <!-- | |||
|{{Location map {{{1}}}|mark8size}} | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark8size}} <!-- | ||
-->|{{Location map {{{1}}}|mark8size}}|<!--else-->8<!-- | |||
|{{{mark8high}}} | -->}}x{{#if: {{{mark8high|}}}<!--B | ||
|{{#if: {{Location map {{{1}}}|mark8high}} | -->|{{{mark8high}}} <!-- | ||
-->|{{#if: {{Location map {{{1}}}|mark8high}} <!-- | |||
}} | --> |{{Location map {{{1}}}|mark8high}} <!-- | ||
| {{{label8}}}<!--set mouseover alt-text--> | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark8size}}<!-- | ||
| <!--else-->{{PAGENAME}} | --> |{{Location map {{{1}}}|mark8size}}|<!--else-->8}}<!-- | ||
}}<!--endif label8-->]]</div><!-- end-div marker8 | -->}}<!--eif-Loc..mark8high-- | ||
-->}}<!--eif-mark8high-B-->px<!-- | |||
-->}}<!--endif mark8size-SENT-->|{{#if: {{{label8|}}}<!-- | |||
--> | {{{label8}}}<!--set mouseover alt-text--> | |||
--> | <!--else-->{{PAGENAME}} | |||
}}<!--endif label8-->]]</div><!-- end-div marker8 | |||
---------------------------------------------- Label #8 | ---------------------------------------------- Label #8 | ||
-->{{#ifeq: {{{position8|{{{pos8|}}}}}} | none | -->{{#ifeq: {{{position8|{{{pos8|}}}}}} | none | ||
Line 764: | Line 864: | ||
|<div style="font-size: {{{label8_size|90}}}%; line-height: 110%; | |<div style="font-size: {{{label8_size|90}}}%; line-height: 110%; | ||
position: relative; top: -1.5em; width: 6em; | position: relative; top: -1.5em; width: 6em; | ||
{{#switch: {{{position8|{{{pos8}}}}}} | {{#switch: {{{position8|{{{pos8|right}}}}}} | ||
|left = left: -6. | |left = top:-{{#expr: {{{mark8high|{{{mark8size|8}}}}}}*0.76 | ||
|right = left: 0. | + {{{label8_size|90}}}*.15 - 2.5 round 0}}px; | ||
|top = top:-{{#expr: {{{mark8high|8}}}*1. | 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; | + {{{label8_size|90}}}*.13 + 2.5 round 0}}px; | ||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|bottom = top:-0 | |bottom = top: -{{#expr:{{{mark8high|{{{mark8size|8}}}}}}*.12 | ||
+ {{{label8_size|90}}}*.08 - 6.5 round 0}}px; | |||
left: -3em; text-align: center; | |||
|<!--otherwise-->}}"><span style="padding: 1px; | |||
{{#if: {{{background8|{{{bg8|}}}}}} | {{#if: {{{background8|{{{bg8|}}}}}} | ||
| background-color: {{{background8|{{{bg8}}}}}}; | | background-color: {{{background8|{{{bg8}}}}}}; | ||
Line 783: | Line 890: | ||
--then latitude-9 exists --------------- Verify lat./longitude | --then latitude-9 exists --------------- Verify lat./longitude | ||
-->{{ | -->{{ | ||
#ifexpr:{{{lat9|{{{lat9_deg|}}}}}}<{{Location map {{{1}}}|bottom}} | |||
|<!--then-->Latitude#9 ({{{lat9|{{{lat9_deg|}}}}}}) < map<!-- | |<!--then-->Latitude#9 ({{{lat9|{{{lat9_deg|}}}}}}) < map<!-- | ||
--> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }} | |||
{{#ifexpr: {{{lat9|{{{lat9_deg|}}}}}} > {{Location map {{{1}}}|top}} | {{#ifexpr: {{{lat9|{{{lat9_deg|}}}}}} > {{Location map {{{1}}}|top}} | ||
|<!--then-->Latitude#9 ({{{lat9|{{{lat9_deg|}}}}}}) > map<!-- | |<!--then-->Latitude#9 ({{{lat9|{{{lat9_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|top}}).| | --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }} | ||
{{#ifexpr:{{{long9|{{{lon9_deg|}}}}}} <{{Location map {{{1}}}|left}} | {{#ifexpr:{{{long9|{{{lon9_deg|}}}}}} <{{Location map {{{1}}}|left}} | ||
|<!--then-->Longitude#9({{{long9|{{{lon9_deg|}}}}}}) < map<!-- | |<!--then-->Longitude#9({{{long9|{{{lon9_deg|}}}}}}) < map<!-- | ||
--> min({{Location map {{{1}}}|left}}).| | --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }} | ||
{{#ifexpr: {{{long9|{{{lon9_deg|}}}}}}>{{Location map {{{1}}}|right}} | {{#ifexpr: {{{long9|{{{lon9_deg|}}}}}} | ||
> {{Location map {{{1}}}|right}} | |||
|<!--then-->Longitude#9({{{long9|{{{lon9_deg|}}}}}}) > map<!-- | |<!--then-->Longitude#9({{{long9|{{{lon9_deg|}}}}}}) > map<!-- | ||
--> max({{Location map {{{1}}}|right}}).| | --> max({{#expr:{{Location map {{{1}}}|right}} round 2}}).|}} | ||
<!-- --------------------------------- Begin point division #9 --> | <!-- --------------------------------- Begin point division #9 --> | ||
<div style="position: absolute; z-index: 2; | <div style="position: absolute; z-index: 2; | ||
Line 840: | Line 948: | ||
----- 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) | ||
-->{{#if: {{{mark9size|}}} | -->{{#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 <!-- | |||
|{{Location map {{{1}}}|mark9size}} | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark9size}} <!-- | ||
-->|{{Location map {{{1}}}|mark9size}}|<!--else-->8<!-- | |||
|{{{mark9high}}} | -->}}x{{#if: {{{mark9high|}}}<!--B | ||
|{{#if: {{Location map {{{1}}}|mark9high}} | -->|{{{mark9high}}} <!-- | ||
-->|{{#if: {{Location map {{{1}}}|mark9high}} <!-- | |||
}} | --> |{{Location map {{{1}}}|mark9high}} <!-- | ||
| {{{label9}}}<!--set mouseover alt-text--> | --> |<!--else-->{{#if: {{Location map {{{1}}}|mark9size}}<!-- | ||
| <!--else-->{{PAGENAME}} | --> |{{Location map {{{1}}}|mark9size}}|<!--else-->8}}<!-- | ||
}}<!--endif label9-->]]</div><!-- end-div marker9 | -->}}<!--eif-Loc..mark9high-- | ||
-->}}<!--eif-mark9high-B-->px<!-- | |||
-->}}<!--endif mark9size-SENT-->|{{#if: {{{label9|}}}<!-- | |||
--> | {{{label9}}}<!--set mouseover alt-text--> | |||
--> | <!--else-->{{PAGENAME}} | |||
}}<!--endif label9-->]]</div><!-- end-div marker9 | |||
---------------------------------------------- Label #9 | ---------------------------------------------- Label #9 | ||
-->{{#ifeq: {{{position9|{{{pos9|}}}}}} | none | -->{{#ifeq: {{{position9|{{{pos9|}}}}}} | none | ||
Line 861: | Line 974: | ||
|<div style="font-size: {{{label9_size|90}}}%; line-height: 110%; | |<div style="font-size: {{{label9_size|90}}}%; line-height: 110%; | ||
position: relative; top: -1.5em; width: 6em; | position: relative; top: -1.5em; width: 6em; | ||
{{#switch: {{{position9|{{{pos9}}}}}} | {{#switch: {{{position9|{{{pos9|right}}}}}} | ||
|left = left: -6. | |left = top:-{{#expr: {{{mark9high|{{{mark9size|8}}}}}}*0.76 | ||
|right = left: 0. | + {{{label9_size|90}}}*.15 - 2.5 round 0}}px; | ||
|top = top:-{{#expr: {{{mark9high|8}}}*1. | 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; | + {{{label9_size|90}}}*.13 + 2.5 round 0}}px; | ||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|bottom = top:-0 | |bottom = top: -{{#expr:{{{mark9high|{{{mark9size|8}}}}}}*.12 | ||
+ {{{label9_size|90}}}*.08 - 6.5 round 0}}px; | |||
left: -3em; text-align: center; | |||
|<!--otherwise-->}}"><span style="padding: 1px; | |||
{{#if: {{{background9|{{{bg9|}}}}}} | {{#if: {{{background9|{{{bg9|}}}}}} | ||
| background-color: {{{background9|{{{bg9}}}}}}; | | background-color: {{{background9|{{{bg9}}}}}}; | ||
Line 892: | Line 1,012: | ||
-- | -- | ||
-- The "map image" can be any image, allowing markers/labels to | -- The "map image" can be any image, allowing markers/labels to | ||
-- annotate any picture. Set each markXsize= | -- annotate any picture. Set each markXsize=1 to show labels only. | ||
-- | -- | ||
-- [ These comments take < 1 second per 5,000 comment lines. ] | -- [ These comments take < 1 second per 5,000 comment lines. ] | ||
Line 904: | Line 1,024: | ||
-- 10Sep07 Rewrote to require latitudes, avoid oversized pages. | -- 10Sep07 Rewrote to require latitudes, avoid oversized pages. | ||
-- 11Sep07 Verified latitudes/longitudes (expanded template 16%). | -- 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. | |||
--> | --> | ||
{{/doc}} | {{/doc}} |