Template:Sprites:修订间差异

此后如竟没有炬火,我便是唯一的光。
跳转到导航 跳转到搜索
无编辑摘要
无编辑摘要
第1行: 第1行:
<includeonly><templatestyles src="Sprites/styles.css" /><div class="sprites" style="display:block; {{#if:{{{thumbcaption|}}}|height:{{#expr:{{replace|str={{{height|}}}|ptn=px|rep=}}+25}}px; 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:{{replace|str={{{height|}}}|ptn=px|rep=}}+25}}px; border: 1px solid #ccc;|height:{{{height|}}};}} width:{{{width|}}}; {{{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> {{replace|str={{{height|}}}|ptn=px|rep=}}+25 </includeonly>

2023年4月14日 (五) 19:39的版本