「Template:背景图片」:修訂間差異

出自H萌娘
跳至導覽 跳至搜尋
imported>=海豚=
無編輯摘要
無編輯摘要
 
(未顯示由 3 位使用者於中間所作的 3 次修訂)
行 5: 行 5:
   |animation:{{#vardefineecho:背景图片.animateName|{{#if:{{{animate|}}}
   |animation:{{#vardefineecho:背景图片.animateName|{{#if:{{{animate|}}}
    |{{#ifeq:{{{animate|}}}|look|look-{{#ifeq:{{{position|}}}|top|bottom|top}}|{{{animate|}}}}}
    |{{#ifeq:{{{animate|}}}|look|look-{{#ifeq:{{{position|}}}|top|bottom|top}}|{{{animate|}}}}}
    |shrink}}}} {{{action|{{#switch:{{#var:背景图片.animateName}}|show=2s|shrink=4s ease-out|clear=2s|appear|look|look-top|look-bottom=5s ease|#default=2s}}}}};
    |show}}}} {{{action|{{#switch:{{#var:背景图片.animateName}}|show=2s|shrink=4s ease-out|clear=2s|appear|look|look-top|look-bottom=5s ease|#default=2s}}}}};
   }}}}<!--
   }}}}<!--
--><div><!--
--><div><!--
--><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}}}}
    srcset="{{#invoke:loop|main|times=1|{{array|get|widths|count}}|do=<nowiki> 
    data-srcset="{{#invoke:loop|main|times=1|{{array|get|widths|count}}|do=<nowiki> 
      {{#ifexpr:{{array|get|widths|{{#var:times}}}} < {{#var:背景图片.maxWidth}}|
      {{#ifexpr:{{array|get|widths|{{#var:times}}}} < {{#var:背景图片.maxWidth}}|
       {{filepath:{{{1|{{{url|}}}}}}|{{array|get|widths|{{#var:times}}}}}} {{array|get|widths|{{#var:times}}}}w,
       {{filepath:{{{1|{{{url|}}}}}}|{{array|get|widths|{{#var:times}}}}}} {{array|get|widths|{{#var:times}}}}w,
行 22: 行 22:
-->{{#if:{{{make|}}}|<div style="position:fixed; top:0; width:100%; height:100%; {{{make|}}}; {{#var:背景图片.animate}}"></div>}}<!-- make
-->{{#if:{{{make|}}}|<div style="position:fixed; top:0; width:100%; height:100%; {{{make|}}}; {{#var:背景图片.animate}}"></div>}}<!-- make
--><div style="position:fixed; top:0; width:100%; height:100%; background:{{{shadeColor|white}}}; opacity:{{{shade|0}}}; {{#var:背景图片.animate}}"></div><!-- shade
--><div style="position:fixed; top:0; width:100%; height:100%; background:{{{shadeColor|white}}}; opacity:{{{shade|0}}}; {{#var:背景图片.animate}}"></div><!-- shade
--></div></div></span></includeonly><noinclude>[[分类:影响页面内容的模板]][[分类:使用模板样式的模板]]{{萌百:背景图片}}
--></div></div></span></includeonly><noinclude>[[分类:影响页面内容的模板]][[分类:使用模板样式的模板]]{{萌百 嵌入|模板:背景图片}}
</noinclude>
</noinclude>

於 2022年12月4日 (日) 16:24 的最新修訂