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+
<includeonly><!--
| {{{1|World}}}
-=====================================================================
| border = {{{border|}}}
-  Location_map_all:  Show a location map & markers for all browsers
| alt = {{{alt|}}}
-=====================================================================
| caption_undefined = {{#ifeq: {{{caption|+}}} | {{{caption|-}}} || defined }}
--
| caption = {{{caption|}}}
-- Template for image with markers/labels (see bottom "NOTES")
| label = <!-- there is no global label -->
--
| float = {{{float|}}}
--  This template overlays 9 specified markers/labels on a given
| width = {{{width|}}}
--  map (in the manner of "Template:Location_map") but also
| relief= {{{relief|}}}
--  checks each latitude/longitude against border limits.
| AlternativeMap = {{{AlternativeMap|}}}
--
| overlay_image = {{{overlay_image|}}}
--  Warning: Code multi-nested 18 levels across 1080+ lines.
|places= {{#if:{{{
--  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>

Revision as of 16:22, 28 November 2012