Template:背景图片:修订间差异
跳到导航
跳到搜索
[InPageEdit] 没有编辑摘要 (编辑自Special:Diff/26434)
imported>=海豚= ([InPageEdit] 没有编辑摘要) |
imported>=海豚= ([InPageEdit] 没有编辑摘要 (编辑自Special:Diff/26434)) |
||
第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}}}}}; | ||
}}}}<!-- | }}}}<!-- | ||
--><div><!-- | --><div><!-- | ||
--><div class="nomobile sidebar-character" style="width:100%; height:100%; top:0; left:0; z-index:-3;" data-displaylogo="{{#ifeq:{{{displaylogo| | --><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 src="{{#if:{{#var:背景图片.isInside}}|{{filepath:{{{1|{{{url|}}}}}}}}|{{{1|{{{url|}}}}}}}}" | --><img src="{{#if:{{#var:背景图片.isInside}}|{{filepath:{{{1|{{{url|}}}}}}}}|{{{1|{{{url|}}}}}}}}" | ||
第23行: | 第23行: | ||
--><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><!-- | --></div></div><!-- | ||
-->{{#if:{{{logo-url|}}}|<span id="wglogo" class="nomobile" data-background-position="{{{logo-position|}}}" data-background-size="{{#switch:{{{logo-size|}}}|false|False=|#default={{{logo-size|}}}}}" data-background-image="{{#if:{{filepath:{{PAGENAME:{{{logo-url| | -->{{#if:{{{logo-url|}}}|<span id="wglogo" class="nomobile" data-background-position="{{{logo-position|}}}" data-background-size="{{#switch:{{{logo-size|}}}|false|False=|#default={{{logo-size|}}}}}" data-background-image="{{#if:{{filepath:{{PAGENAME:{{{logo-url|}}}}}}}|{{filepath:{{PAGENAME:{{{logo-url|}}}}}}}|{{{logo-url|}}}}}"></span>{{#Widget:Wglogo}}}}<!-- 替换logo | ||
--></includeonly><noinclude>[[分类:影响页面内容的模板]][[分类:使用模板样式的模板]]{{doc}}</noinclude> | --></includeonly><noinclude>[[分类:影响页面内容的模板]][[分类:使用模板样式的模板]]{{doc}}<templatedata> | ||
{ | |||
"params": { | |||
"1": {}, | |||
"url": {}, | |||
"animate": {}, | |||
"position": {}, | |||
"action": {}, | |||
"displaylogo": {}, | |||
"color": {}, | |||
"make": {}, | |||
"shadeColor": {}, | |||
"shade": {}, | |||
"logo-url": {}, | |||
"logo-position": {}, | |||
"logo-size": {} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> |