「Template:Sprites」:修訂間差異

出自希顶维基
跳至導覽 跳至搜尋
無編輯摘要
無編輯摘要
第1行: 第1行:
<includeonly><templatestyles src="Sprites/styles.css" /><div class="sprites" style="display:block; {{#if:{{{thumbcaption}}}|height:{{#expr:{{{height|}}}+25}}; border: 1px solid #ccc;|height:{{{height|}}};}} width:{{{width|}}}; {{{style|}}}" data-link="{{{link|}}}" data-scalewidth="{{{scalewidth|}}}"><!--
<includeonly><templatestyles src="Sprites/styles.css" /><div class="sprites" style="display:block; {{#if:{{{thumbcaption}}}|height:{{#expr:{{{height|}}}+25}}px; border: 1px solid #ccc;|height:{{{height|}}}px;}} width:{{{width|}}}px; {{{style|}}}" data-link="{{{link|}}}" data-scalewidth="{{{scalewidth|}}}"><!--
--><div style="margin-top:{{#ifeq:-|{{str_left|{{{y}}}|1}}|{{str_right|{{{y}}}|1}}|-{{{y}}}}};margin-left:{{#ifeq:-|{{str_left|{{{x}}}|1}}|{{str_right|{{{x}}}|1}}|-{{{x}}}}};">[[file:{{PAGENAME:{{{pic|}}}}}|link=]]</div>{{#if:{{{thumbcaption}}}|<div class="thumbcaption" style="position:absolute; width:calc(100% - 6px); bottom:0px; overflow:inherit;">{{{thumbcaption}}}</div>|}}</div></includeonly>
--><div style="margin-top:{{#ifeq:-|{{str_left|{{{y}}}|1}}|{{str_right|{{{y}}}|1}}|-{{{y}}}}};margin-left:{{#ifeq:-|{{str_left|{{{x}}}|1}}|{{str_right|{{{x}}}|1}}|-{{{x}}}}};">[[file:{{PAGENAME:{{{pic|}}}}}|link=]]</div>{{#if:{{{thumbcaption}}}|<div class="thumbcaption" style="position:absolute; width:calc(100% - 6px); bottom:0px; overflow:inherit;">{{{thumbcaption}}}</div>|}}</div></includeonly>

於 2023年4月14日 (五) 19:17 的修訂