Template:Location map many: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Droll tweaked so that the default caption is the same as that generated by Location map+ |
meta>Wikid77 created, as a map utility template, to correctly display a map & markers on all browsers |
||
Line 1: | Line 1: | ||
<includeonly><!-- | |||
-===================================================================== | |||
- Location_map_all: Show a location map & markers for all browsers | |||
-===================================================================== | |||
-- | |||
-- 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|{{{image|}}} }}} | |||
| {{{AlternativeMap|{{{image|}}}|}}} | |||
| {{Location map {{{1}}}|image}} | |||
}}|{{{width|240}}}{{ | |||
#ifeq:{{uc:{{{width|3px}}} }}|{{lc:{{{width|3px}}} }}|px | |||
}}|{{#if: {{{label|}}} | |||
| {{{label}}} | |||
| {{PAGENAME}} | |||
}}<!-- endif label--> ({{Location map {{{1}}}|name}})]]<br /><!-- | |||
================================================= Marker/Label #1 | |||
-->{{#if: {{{lat|{{{lat_deg|}}} }}} | <!-- | |||
--then latitude-1 exists ------------ | |||
{{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 --> | ||
{{DEFAULTSORT:{{PAGENAME}}}} | |||
</noinclude> | </noinclude> |