「テンプレート:Location map+」の版間の差分
提供: miniwiki
細 |
|||
1行目: | 1行目: | ||
<includeonly><div style="{{#if: {{{caption|}}} | <includeonly><div style="{{#if: {{{caption|}}} | ||
− | | width: {{#expr: {{#if:{{{width|}}}|{{{width}}}|240}} + 2 }}px; padding: 3px; {{#ifeq: {{{border|}}} | none | + | | width:{{#expr:{{#if:{{{width|}}}|{{{width}}}|240}} + 2 }}px; padding: 3px;{{#ifeq: {{{border|}}} | none || border: 1px solid {{#if: {{{border|}}} | {{{border}}} | #CCC }};}} margin: 3px; |
− | + | | width:{{#if:{{{width|}}}|{{{width}}}|240}}px; | |
− | + | }} 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|}}} | |
− | + | | {{#ifeq: {{{border|}}} | none || border: 1px solid {{#if: {{{border|}}} | {{{border}}} | #CCC}};}} | |
− | | width: {{#if:{{{width|}}}|{{{width}}}|240}}px; | + | }} 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}}}}の位置}}]]<br />{{#if:{{{overlay_image|}}}|<div style="position:absolute; z-index: 1; top: 0; left: 0;">[[File:{{{overlay_image}}} |{{#if:{{{width|}}}|{{{width}}}|240}}px]]</div>}}{{{places}}}</div><div style="font-size: 90%">{{{caption|{{#if: {{{label|}}} |
− | }} float: {{#switch: {{{float|}}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}; clear: {{#switch: {{{float|}}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}; {{#if: {{{caption|}}} | background: #F9F9F9; }}"><div style="position: relative; {{#if: {{{caption|}}} | ||
− | | {{#ifeq: {{{border|}}} | none | ||
− | |||
− | |||
− | |||
− | }} padding: 0px; width: {{#if: {{{width|}}} | {{{width}}} | 240 }}px | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}| | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}]]<br />{{#if: {{{overlay_image|}}} | ||
− | |||
− | }}{{{places}}}<div style="font-size: 90%">{{{caption|{{#if: {{{label|}}} | ||
| {{{label}}} | | {{{label}}} | ||
| {{PAGENAME}} | | {{PAGENAME}} | ||
− | }} ({{Location map {{{1}}}|name}})}}}</includeonly><noinclude> | + | }} ({{Location map {{{1}}}|name}})}}}</div></div></includeonly><noinclude> |
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> |
2018/9/28/ (金) 11:35時点における版
edit Documentation