Template:背景图片:修订间差异

H萌娘,万物皆可H的百科全书!
跳到导航 跳到搜索
imported>Irukaza
(文本替换 - 替换“{{萌百:”为“{{萌百嵌入|模板:”)
(test)
第10行: 第10行:
--><div class="nomobile sidebar-character" style="width:100%; height:100%; top:0; left:0; z-index:-3;" data-displaylogo="{{#ifeq:{{{displaylogo|no}}}|no|no|yes}}"><!--
--><div class="nomobile sidebar-character" style="width:100%; height:100%; top:0; left:0; z-index:-3;" data-displaylogo="{{#ifeq:{{{displaylogo|no}}}|no|no|yes}}"><!--
--><div style="position:fixed; top:0; left:0; width:100%; height:100%; background:{{{color|transparent}}}; {{#var:背景图片.animate}}"></div><!-- 背景颜色
--><div style="position:fixed; top:0; left:0; width:100%; height:100%; background:{{{color|transparent}}}; {{#var:背景图片.animate}}"></div><!-- 背景颜色
--><img data-src="{{#if:{{#var:背景图片.isInside}}|{{filepath:{{{1|{{{url|}}}}}}}}|{{{1|{{{url|}}}}}}}}"
--><br class="background-img-replace" data-src="{{#if:{{#var:背景图片.isInside}}|{{filepath:{{{1|{{{url|}}}}}}}}|{{{1|{{{url|}}}}}}}}"
  style="position:fixed; top:0; width:100%; height:100%; object-fit:cover; object-position:{{{position|center center}}}; {{#var:背景图片.animate}}"
  style="position:fixed; top:0; width:100%; height:100%; object-fit:cover; object-position:{{{position|center center}}}; {{#var:背景图片.animate}}"
  {{#if:{{#var:背景图片.isInside}}|{{#vardefine:背景图片.maxWidth|{{#invoke:fileInfo|main|{{{1|{{{url|}}}}}}|width}}}}
  {{#if:{{#var:背景图片.isInside}}|{{#vardefine:背景图片.maxWidth|{{#invoke:fileInfo|main|{{{1|{{{url|}}}}}}|width}}}}

2022年12月4日 (日) 16:19的版本