Template: Location map+: Difference between revisions

From A Wiki of Ice and Fire
Jump to: navigation, search
Mordin999 (talk | contribs)
No edit summary
Mordin999 (talk | contribs)
m changed default map size to 300.
Line 6: Line 6:
   | "none"  | none    = tnone
   | "none"  | none    = tnone
   | #default = tright }}"
   | #default = tright }}"
| style="width:{{#if:{{{width|}}}|{{{width}}}|240}}px; {{#switch:{{{float|}}}
| style="width:{{#if:{{{width|}}}|{{{width}}}|300}}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:{{#if:{{{width|}}}|{{{width}}}|240}} + 2 }}px; {{#if:{{{border|}}}|{{#ifeq:{{{border|}}}|none|border: none|border-color:{{{border}}}}};}}"  
| class="thumbinner" style="width:{{#expr:{{#if:{{{width|}}}|{{{width}}}|300}} + 2 }}px; {{#if:{{{border|}}}|{{#ifeq:{{{border|}}}|none|border: none|border-color:{{{border}}}}};}}"  
| style="width:{{#if:{{{width|}}}|{{{width}}}|240}}px; padding:0"
| style="width:{{#if:{{{width|}}}|{{{width}}}|300}}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}} }} }}|{{#if:{{{width|}}}|{{{width}}}|240}}px|{{#if:{{{alt|}}}|{{{alt}}}|{{#if:{{{label|}}}|{{{label}}}|{{PAGENAME}}}} is located in {{Location map {{{1}}}|name}}}}]]<!--
-->[[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}}}|300}}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}}} |{{#if:{{{width|}}}|{{{width}}}|240}}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>}}<!--
   | <div style="position:absolute; z-index: 1; top: 0; left: 0">[[File:{{{overlay_image}}} |{{#if:{{{width|}}}|{{{width}}}|300}}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|}}}<!--

Revision as of 00:59, 19 May 2012


This template places one or more location marks on a map, with optional labels. It was Imported from Wikipedia:Template:Location_map+, no need to re-invent the wheel, but some adjustment s will be made.

Usage

TBA, for now see Original.


This page uses content from the English Wikipedia. The original content was at Location map+ .
The list of authors can be seen in the page history of Location map+ .
As with A Wiki of Ice and Fire, the content of Wikipedia is available under the GNU Free Documentation License.