「テンプレート:Location map+」の版間の差分

提供: miniwiki
移動先:案内検索
1行目: 1行目:
<includeonly><div style="width: {{#expr: {{{width|240}}} + 2 }}px; {{#if: {{{caption|}}}  
+
<includeonly><div style="{{#if: {{{caption|}}}
  | padding: 3px; border: 1px solid {{#if: {{{border|}}}  
+
  | width: {{#expr: {{#if:{{{width|}}}|{{{width}}}|240}} + 2 }}px; padding: 3px; {{#ifeq: {{{border|}}} | none
    | {{{border|none}}}  
+
    |
    | #CCCCCC
+
    | border: 1px solid {{#if: {{{border|}}} | {{{border}}} | #CCC }};
   }}; margin: 3px;
+
   }} margin: 3px;
}} {{#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 |  
+
  | width: {{#if:{{{width|}}}|{{{width}}}|240}}px;
  |border: 1px solid {{#if: {{{border|}}}  
+
}} float: {{#switch: {{{float|}}}
    | {{{border}}}  
+
  | "center" | center = none
    | #CCCCCC
+
  | "left"   | left  = left
   }};
+
  | "right" | right  = right
}} padding: 0px; width: {{{width|240}}}px">[[image:{{#if: {{{AlternativeMap|}}} | {{{AlternativeMap}}} | {{Location map {{{1|Germany}}}|image}} }}|{{{width|240}}}px|{{#if: {{{label|}}}  
+
  | "none"  | none  = none
  | {{{label}}}  
+
  | right
  | {{PAGENAME}}  
+
}}; clear: {{#switch: {{{float|}}}
}} ({{Location map {{{1|Germany}}}|name}})]]<br />{{{places}}}<div style="font-size: 90%">{{{caption|{{#if: {{{label|}}}  
+
  | "center" | center = both
   | {{{label}}}  
+
  | "left"   | left  = left
   | {{PAGENAME}}  
+
  | "right" | right  = right
}} ({{Location map {{{1|Germany}}}|name}})}}}</includeonly><noinclude>
+
  | "none"  | none  = none
{{template doc}}
+
  | right
{{DEFAULTSORT:{{PAGENAME}}}}
+
}}; {{#if: {{{caption|}}} | background: #F9F9F9; }}"><div style="position: relative; {{#if: {{{caption|}}}
</noinclude>
+
  | {{#ifeq: {{{border|}}} | none
 +
    |
 +
    | border: 1px solid {{#if: {{{border|}}} | {{{border}}} | #CCC}};
 +
   }}
 +
}} 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}}
 +
  }}
 +
}}|<!-- [[File:]] の中 -->{{#if: {{{width|}}} | {{{width}}} | 240 }}px|<!-- [[File:]] の中 -->{{#if: {{{alt|}}}
 +
  | {{{alt}}}
 +
  | {{#if: {{{label|}}}
 +
    | {{{label}}}
 +
    |{{PAGENAME}}
 +
  }}の位置
 +
}}]]<br />{{#if: {{{overlay_image|}}}
 +
  |<div style="position: absolute; z-index: 1; top: 0; left: 0;">[[File:{{{overlay_image}}}|{{#if: {{{width|}}} |{{{width}}}|240}}px]]
 +
}}{{{places}}}<div style="font-size: 90%">{{{caption|{{#if: {{{label|}}}
 +
   | {{{label}}}
 +
   | {{PAGENAME}}
 +
}} ({{Location map {{{1}}}|name}})}}}</includeonly><noinclude>
 +
{{Documentation}}</noinclude>

2018/8/17/ (金) 12:35時点における版

edit Documentation