Template:Location map+: Difference between revisions

From Raythe Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{location map+
<includeonly>{{#ifeq:{{{float|}}}|center|<div class="center">
| {{{1|World}}}
}}<div {{#if:{{{caption|}}}|class="thumb {{#switch:{{{float|}}}
| border = {{{border|}}}
  | "left"  | left    = tleft
| alt = {{{alt|}}}
  | "right"  | right  = tright
| caption_undefined = {{#ifeq: {{{caption|+}}} | {{{caption|-}}} || defined }}
  | "center" | center  = tnone
| caption = {{{caption|}}}
  | "none"  | none    = tnone
| label = {{{label|}}}
  | #default = tright }}"
| float = {{{float|}}}
| style="width:{{Location map+/width | 1={{{1|}}} | width={{{width|}}} | default_width={{{default_width|}}} }}px; {{#switch:{{{float|}}}
| width = {{{width|}}}
  | "left"  | left    = float: left; clear: left
| default_width = {{{default_width|}}}
  | "right"  | right    = float: right; clear: right
| relief= {{{relief|}}}
  | "center" | center  = float: none; clear: both; margin-left: auto; margin-right: auto
| AlternativeMap = {{{AlternativeMap|}}}
  | "none"  | none    = float: none; clear: none
| overlay_image = {{{overlay_image|}}}
  | #default = float: right; clear: right}}"
| places = {{Location map~
}}>
  | {{{1|World}}}
<div {{#if:{{{caption|}}}
  | label = {{{label|}}}
| class="thumbinner" style="width:{{#expr: {{Location map+/width | 1={{{1|}}} | width={{{width|}}} | default_width={{{default_width|}}} }} + 2 }}px; {{#if:{{{border|}}}|{{#ifeq:{{{border|}}}|none|border: none|border-color:{{{border}}}}};}}"
  | label_size = {{{label_size|}}}
| style="width:{{Location map+/width | 1={{{1|}}} | width={{{width|}}} | default_width={{{default_width|}}} }}px; padding:0"
  | label_width = {{{label_width|}}}
}}>
  | mark = {{{mark|}}}
<div style="position: relative; {{#if:{{{caption|}}}
  | marksize = {{{marksize|}}}
  | {{#if:{{{border|}}}
  | alt = {{{alt|}}}
    | {{#ifeq:{{{border|}}}|none||border: 1px solid lightgray}}
  | position = {{{position|}}}
| border: 1px solid lightgray}}}}"><!--
  | background = {{{background|}}}
-->[[file:{{#if:{{{AlternativeMap|}}}|{{{AlternativeMap}}}|{{#if:{{{relief|}}}|{{#if:{{Location map {{{1}}}|image1}}|{{Location map {{{1}}}|image1}}|{{Location map {{{1|}}}|image}} }}|{{Location map  {{{1|}}}|image}} }} }}|{{Location map+/width | 1={{{1|}}} | width={{{width|}}} | default_width={{{default_width|}}} }}px|{{#if:{{{alt|}}}|{{{alt}}}|{{#if:{{{label|}}}|{{{label}}}|{{PAGENAME}}}} is located in {{Location map {{{1}}}|name}}}}]]<!--
  | link = {{{link|}}}
-->{{#if:{{{overlay_image|}}}
  | lat_dir = {{{lat_dir|}}}
  | <div style="position:absolute; top: 0; left: 0">[[File:{{{overlay_image}}} |{{Location map+/width | 1={{{1|}}} | width={{{width|}}} | default_width={{{default_width|}}} }}px|link=file:{{#if: {{{AlternativeMap|}}}|{{{AlternativeMap}}} |{{#if: {{{relief|}}}|{{#if: {{Location map {{{1}}}|image1}}|{{Location map {{{1}}}|image1}}|{{Location map {{{1|}}}|image}} }}|{{Location map {{{1|}}}|image}} }} }}]]</div>}}<!--
  | lat_deg = {{{lat_deg|}}}
 
  | lat_min = {{{lat_min|}}}
-->{{{places|}}}<!--
  | lat_sec = {{{lat_sec|}}}
 
  | lon_deg = {{{lon_deg|}}}
--></div>
   | lon_min = {{{lon_min|}}}
<div {{#if:{{{caption|}}}|class="thumbcaption"|style="font-size: 90%; padding-top:3px"}}>{{#if:{{{caption_undefined|}}}
  | lon_sec = {{{lon_sec|}}}
   | {{#if: {{{label|}}}
   | lon_dir = {{{lon_dir|}}}
    | {{{label}}}
  | lat = {{{lat|}}}
    | {{PAGENAME}}
  | long = {{{long|}}}
    }} ({{Location map {{{1}}}|name}})
  }}
   | {{{caption|{{#if: {{{label|}}}
}}</includeonly><noinclude>{{documentation}}</noinclude>
    | {{{label}}}
    | {{PAGENAME}}
    }} ({{Location map {{{1}}}|name}}) }}}
}}
</div>
</div>
</div>{{#ifeq:{{{float|}}}|center|
</div>}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 12:06, 31 January 2018