Template:Location map+: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Plastikspork
m (Per discussion at Template talk:Location map, suppress width when there is no caption)
meta>Plastikspork
Line 1: Line 1:
<includeonly><div style="{{#if: {{{caption|}}}  
<includeonly><div style="{{#if: {{{caption|}}}
   | width: {{#expr: {{#if:{{{width|}}}|{{{width}}}|240}} + 2 }}px; padding: 3px; border: 1px solid {{#if: {{{border|}}}  
   | width:{{#expr:{{#if:{{{width|}}}|{{{width}}}|240}} + 2 }}px; padding: 3px;{{#ifeq: {{{border|}}} | none || border: 1px solid {{#if: {{{border|}}} | {{{border}}} | #CCC }};}} margin: 3px;
    | {{{border|none}}}  
  | width:{{#if:{{{width|}}}|{{{width}}}|240}}px;
    | #CCCCCC
}} float:{{#switch:{{{float|}}}|"center"|center=none|"left"|left=left|"right"|right=right|"none"|none=none|right}}; clear:{{#switch:{{{float|}}}|"center"|center=both|"left"|left=left|"right"|right=right|"none"|none=none|right}};{{#if: {{{caption|}}} | background:#F9F9F9; }}"><div style="position: relative;{{#if: {{{caption|}}}
  }}; margin: 3px;
  | {{#ifeq: {{{border|}}} | none || border: 1px solid {{#if: {{{border|}}} | {{{border}}} | #CCC}};}}
}} {{#ifeq:{{{float}}}|center||float:}}{{#switch:{{{float|}}}|"center"=|center=|"left"=left|"right"=right|left=left|right=right|right}};{{#ifeq:{{{float}}}|center||clear:}}{{#switch:{{{float|}}}|"center"=|center=|"left"=left|"right"=right|left=left|right=right|right}}; {{#if: {{{caption|}}} | ;background:#F9F9F9"|" }}><div style="position: relative;{{#ifeq: {{{border|}}} | none |  
}} 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 />{{{places}}}</div><div style="font-size: 90%">{{{caption|{{#if: {{{label|}}}
  |border: 1px solid {{#if: {{{border|}}}  
   | {{{label}}}
    | {{{border}}}  
   | {{PAGENAME}}
    | #CCCCCC
}} ({{Location map {{{1}}}|name}})}}}</div></div></includeonly><noinclude>
  }};
{{documentation}}
}} padding: 0px; width: {{#if:{{{width|}}}|{{{width}}}|240}}px">[[image:{{#if: {{{AlternativeMap|}}} | {{{AlternativeMap}}} | {{Location map {{{1|Germany}}}|image}} }}|{{#if:{{{width|}}}|{{{width}}}|240}}px|alt={{{alt|}}}|{{#if: {{{label|}}}  
  | {{{label}}}  
  | {{PAGENAME}}  
}} ({{Location map {{{1|Germany}}}|name}})]]<br />{{{places}}}</div><div style="font-size: 90%">{{{caption|{{#if: {{{label|}}}  
   | {{{label}}}  
   | {{PAGENAME}}  
}} ({{Location map {{{1|Germany}}}|name}})}}}</div></div></includeonly><noinclude>
{{template doc}}
{{DEFAULTSORT:{{PAGENAME}}}}
</noinclude>
</noinclude>

Revision as of 00:59, 14 October 2010