Template:Location map+: Difference between revisions

From Raythe Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="{{#if: {{{caption|}}}
<includeonly>{{#ifeq:{{{float|}}}|center|<div class="center">
  | width:{{#expr:{{#if:{{{width|}}}|{{{width}}}|240}} + 2 }}px; padding: 3px;{{#ifeq: {{{border|}}} | none || border: 1px solid {{#if: {{{border|}}} | {{{border}}} | #CCC }};}} margin: 3px;
}}<div {{#if:{{{caption|}}}|class="thumb {{#switch:{{{float|}}}
  | width:{{#if:{{{width|}}}|{{{width}}}|240}}px;
  | "left"  | left    = tleft
}} float:{{#switch:{{{float|}}}|"center"|center=none|"left"|left=left|"right"|right=right|"none"|none=none|right}}; clear:{{#switch:{{{float|}}}|"center"|center=both; margin-left: auto; margin-right: auto|"left"|left=left|"right"|right=right|"none"|none=none|right}};{{#if: {{{caption|}}} | background:#F9F9F9; }}"><div style="position: relative;{{#if: {{{caption|}}}
  | "right"  | right  = tright
  | {{#ifeq: {{{border|}}} | none || border: 1px solid {{#if: {{{border|}}} | {{{border}}} | #CCC}};}}
  | "center" | center  = tnone
}} padding: 0px; width:{{#if:{{{width|}}}|{{{width}}}|240}}px">[[File:{{#if: {{{AlternativeMap|}}}|{{{AlternativeMap}}} |{{#if: {{{relief|}}}|{{#if: {{Location map {{{1}}}|image1}}|{{Location map {{{1}}}|image1}}|{{Location map {{{1|}}}|image}} }}|{{Location map {{{1|}}}|image}} }} }}|{{#if:{{{width|}}}|{{{width}}}|240}}px|{{#if:{{{alt|}}}|{{{alt}}}|{{#if:{{{label|}}}|{{{label}}}|{{PAGENAME}}}} is located in {{Location map {{{1}}}|name}}}}]]<br /><!-- Start marker -->{{Location map/marker
  | "none"  | none    = tnone
| top    = {{#expr:{{#if:{{Location map {{{1}}}|y}}|
  | #default = tright }}"
{{Location map {{{1}}}|y|{{Location map/decdeg
| style="width:{{Location map+/width | 1={{{1|}}} | width={{{width|}}} | default_width={{{default_width|}}} }}px; {{#switch:{{{float|}}}
|dec = {{{lat|}}}
  | "left"  | left    = float: left; clear: left
|deg = {{{lat_deg|}}}
  | "right"  | right    = float: right; clear: right
|min = {{{lat_min|}}}
  | "center" | center   = float: none; clear: both; margin-left: auto; margin-right: auto
|sec = {{{lat_sec|}}}
  | "none"   | none     = float: none; clear: none
|hem = {{{lat_dir|}}}}}|{{Location map/decdeg
  | #default = float: right; clear: right}}"
|dec = {{{long|}}}
}}>
|deg = {{{lon_deg|}}}
<div {{#if:{{{caption|}}}
|min = {{{lon_min|}}}
| 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}}}}};}}"
|sec = {{{lon_sec|}}}
| style="width:{{Location map+/width | 1={{{1|}}} | width={{{width|}}} | default_width={{{default_width|}}} }}px; padding:0"
|hem = {{{lon_dir|}}}}}}}|100 * ({{Location map {{{1}}}|top}} - {{Location map/decdeg
}}>
|dec = {{{lat|}}}
<div style="position: relative; {{#if:{{{caption|}}}
|deg = {{{lat_deg|}}}
  | {{#if:{{{border|}}}
|min = {{{lat_min|}}}
    | {{#ifeq:{{{border|}}}|none||border: 1px solid lightgray}}
|sec = {{{lat_sec|}}}
| border: 1px solid lightgray}}}}"><!--
|hem = {{{lat_dir|}}}}}) / ({{Location map {{{1}}}|top}} - {{Location map {{{1}}}|bottom}}) round 1
-->[[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}}}}]]<!--
}}}}
-->{{#if:{{{overlay_image|}}}
| left    = {{#expr:{{#if:{{Location map {{{1}}}|x}}
  | <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>}}<!--
|{{Location map {{{1}}}|x|{{Location map/decdeg
 
|dec = {{{lat|}}}
-->{{{places|}}}<!--
|deg = {{{lat_deg|}}}
 
|min = {{{lat_min|}}}
--></div>
|sec = {{{lat_sec|}}}
<div {{#if:{{{caption|}}}|class="thumbcaption"|style="font-size: 90%; padding-top:3px"}}>{{#if:{{{caption_undefined|}}}
|hem = {{{lat_dir|}}}}}|{{Location map/decdeg
  | {{#if: {{{label|}}}
|dec = {{{long|}}}
    | {{{label}}}
|deg = {{{lon_deg|}}}
    | {{PAGENAME}}
|min = {{{lon_min|}}}
    }} ({{Location map {{{1}}}|name}})
|sec = {{{lon_sec|}}}
  | {{{caption|{{#if: {{{label|}}}
|hem = {{{lon_dir|}}}}}}}|{{#expr:{{#if:{{Location map {{{1}}}|crosses180}}|{{#ifeq: {{{lon_dir|}}}|W|-36000/({{Location map {{{1}}}|left}}-{{Location map {{{1}}}|right}})|}}|}}}} + 100 * ({{Location map/decdeg
    | {{{label}}}
|dec = {{{long|}}}
    | {{PAGENAME}}
|deg = {{{lon_deg|}}}
    }} ({{Location map {{{1}}}|name}}) }}}
|min = {{{lon_min|}}}
}}
|sec = {{{lon_sec|}}}
</div>
|hem = {{{lon_dir|}}}}} - {{Location map {{{1}}}|left}}) / ({{Location map {{{1}}}|right}} - {{Location map {{{1}}}|left}}) round 1
</div>
}}}}
</div>{{#ifeq:{{{float|}}}|center|
|marksize  = {{#if:{{{marksize|}}}<!--
</div>}}</includeonly><noinclude>{{documentation}}</noinclude>
  -->|{{{marksize}}}<!--
  -->|{{#if:{{Location map {{{1}}}|marksize}}<!--
      -->|{{Location map {{{1}}}|marksize}}<!--
      -->|8<!--
  -->}}<!--
-->}}
|mark      = {{#ifexist:media:{{{mark}}}<!--
  -->|{{{mark}}}<!--
  -->|{{#ifexist:media:{{Location map {{{1}}}|mark}}<!--
      -->|{{Location map {{{1}}}|mark}}<!--
      -->|Red pog.svg<!--
  -->}}<!--
-->}}
|z-index    = 2
|position  = {{{position|}}}
|label_size = {{#if:{{{label_size|}}}|{{{label_size}}}|90}}
|background = {{{background|}}}
|label      = {{{label|}}}
}}<!-- End marker --></div><div style="font-size: 90%">{{{caption|{{#if: {{{label|}}}
  | {{{label}}}
  | {{PAGENAME}}
}} ({{Location map {{{1}}}|name}})}}}</div></div></includeonly><noinclude>
{{documentation}}
</noinclude>

Latest revision as of 12:06, 31 January 2018