Template:Location map many: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Wikid77
created, as a map utility template, to correctly display a map & markers on all browsers
meta>99of9
Undid revision 525362434 by Wikid77 (talk) whatever the change was, it didn't display correctly on Firefox at Wikipedia:GLAM/SLNSW
Line 1: Line 1:
<includeonly><!--
<includeonly>{{location map+
-=====================================================================
| {{{1|World}}}
-  Location_map_all:  Show a location map & markers for all browsers
| border = {{{border|}}}
-=====================================================================
| alt = {{{alt|}}}
--
| caption_undefined = {{#ifeq: {{{caption|+}}} | {{{caption|-}}} || defined }}
-- Template for image with markers/labels (see bottom "NOTES")
| caption = {{{caption|}}}
--
| label = <!-- there is no global label -->
--  This template overlays 9 specified markers/labels on a given
| float = {{{float|}}}
--  map (in the manner of "Template:Location_map") but also
| width = {{{width|}}}
--  checks each latitude/longitude against border limits.
| relief= {{{relief|}}}
--
| AlternativeMap = {{{AlternativeMap|}}}
--  Warning: Code multi-nested 18 levels across 1080+ lines.
| overlay_image = {{{overlay_image|}}}
--  Warning: {{Might}}{{{appear|become}}}{{unreadable}}?
|places= {{#if:{{{
--  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 21:35, 28 November 2012