Template:Location map+: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Anomie sync with sandbox per request on Template talk:Location map |
meta>Mr. Stradivarius Update width-handling code per talk page |
||
Line 6: | Line 6: | ||
| "none" | none = tnone | | "none" | none = tnone | ||
| #default = tright }}" | | #default = tright }}" | ||
| style="width:{{ | | style="width:{{Location map+/width | 1={{{1|}}} | width={{{width|}}} | default_width={{{default_width|}}} }}px; {{#switch:{{{float|}}} | ||
| "left" | left = float: left; clear: left | | "left" | left = float: left; clear: left | ||
| "right" | right = float: right; clear: right | | "right" | right = float: right; clear: right | ||
Line 14: | Line 14: | ||
}}> | }}> | ||
<div {{#if:{{{caption|}}} | <div {{#if:{{{caption|}}} | ||
| class="thumbinner" style="width:{{#expr:{{ | | 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}}}}};}}" | ||
| style="width:{{ | | style="width:{{Location map+/width | 1={{{1|}}} | width={{{width|}}} | default_width={{{default_width|}}} }}px; padding:0" | ||
}}> | }}> | ||
<div style="position: relative; {{#if:{{{caption|}}} | <div style="position: relative; {{#if:{{{caption|}}} | ||
Line 21: | Line 21: | ||
| {{#ifeq:{{{border|}}}|none||border: 1px solid lightgray}} | | {{#ifeq:{{{border|}}}|none||border: 1px solid lightgray}} | ||
| border: 1px solid lightgray}}}}"><!-- | | border: 1px solid lightgray}}}}"><!-- | ||
-->[[file:{{#if:{{{AlternativeMap|}}}|{{{AlternativeMap}}}|{{#if:{{{relief|}}}|{{#if:{{Location map {{{1}}}|image1}}|{{Location map {{{1}}}|image1}}|{{Location map {{{1|}}}|image}} }}|{{Location map {{{1|}}}|image}} }} }}|{{ | -->[[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|}}} | -->{{#if:{{{overlay_image|}}} | ||
| <div style="position:absolute; z-index: 1; top: 0; left: 0">[[File:{{{overlay_image}}} |{{ | | <div style="position:absolute; z-index: 1; 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>}}<!-- | ||
-->{{{places|}}}<!-- | -->{{{places|}}}<!-- |