Template:Location map many: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Wikid77 again: Set label 1-9 bottom = -mark*.45 - label*.01 + 1.9 |
meta>Wikid77 changed latitude/longitude min-validation to check lat_deg+1 or lon_deg+1 |
||
Line 37: | Line 37: | ||
--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|}}}+1}}}<{{Location map {{{1}}}|bottom}} | ||
|<!--then-->Latitude#1 ({{{lat|{{{lat_deg|}}}}}}) < map<!-- | |<!--then-->Latitude#1 ({{{lat|{{{lat_deg|}}}}}}) < map<!-- | ||
--> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }} | --> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }} | ||
Line 43: | Line 43: | ||
|<!--then-->Latitude#1 ({{{lat|{{{lat_deg|}}}}}}) > map<!-- | |<!--then-->Latitude#1 ({{{lat|{{{lat_deg|}}}}}}) > map<!-- | ||
--> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }} | --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }} | ||
{{#ifexpr:{{{long|{{{lon_deg|}}}}}} <{{Location map {{{1}}}|left}} | {{#ifexpr:{{{long|{{{lon_deg|}}}+1}}} <{{Location map {{{1}}}|left}} | ||
|<!--then-->Longitude#1({{{long|{{{lon_deg|}}}}}}) < map<!-- | |<!--then-->Longitude#1({{{long|{{{lon_deg|}}}}}}) < map<!-- | ||
--> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }} | --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }} | ||
Line 130: | Line 130: | ||
--then latitude-2 exists --------------- Verify lat./longitude | --then latitude-2 exists --------------- Verify lat./longitude | ||
-->{{ | -->{{ | ||
#ifexpr:{{{lat2|{{{lat2_deg|}}}+1}}}<{{Location map {{{1}}}|bottom}} | |||
|<!--then-->Latitude#2 ({{{lat2|{{{lat2_deg|}}}}}}) < map<!-- | |<!--then-->Latitude#2 ({{{lat2|{{{lat2_deg|}}}}}}) < map<!-- | ||
--> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }} | --> min({{#expr:{{Location map {{{1}}}|bottom}} round 2}}).| }} | ||
Line 136: | Line 136: | ||
|<!--then-->Latitude#2 ({{{lat2|{{{lat2_deg|}}}}}}) > map<!-- | |<!--then-->Latitude#2 ({{{lat2|{{{lat2_deg|}}}}}}) > map<!-- | ||
--> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }} | --> max({{#expr:{{Location map {{{1}}}|top}} round 2}}).| }} | ||
{{#ifexpr:{{{long2|{{{lon2_deg|}}}}}} <{{Location map {{{1}}}|left}} | {{#ifexpr:{{{long2|{{{lon2_deg|}}}+1}}} | ||
<{{Location map {{{1}}}|left}} | |||
|<!--then-->Longitude#2({{{long2|{{{lon2_deg|}}}}}}) < map<!-- | |<!--then-->Longitude#2({{{long2|{{{lon2_deg|}}}}}}) < map<!-- | ||
--> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }} | --> min({{#expr:{{Location map {{{1}}}|left}} round 2}}).| }} |