诚邀有MediaWiki开发维护经验的朋友和我们一起共建英雄联盟中文Wiki平台,期待你的加入! 甜咖啡(QQ:815798492)(微信:glf101012) 请备注来意,并附带您的GitHub/Gitee主页或作品链接。

模板:Game banner:修订间差异

来自英雄联盟维基百科
第18行: 第18行:
-->{{game navigation mobile}}<!--
-->{{game navigation mobile}}<!--
--/ns check-->}}<!--
--/ns check-->}}<!--
--><div class="league-font" style="margin-bottom:1em; display:flow-root; position:relative; width:100%; max-width:min(1045px, calc(100% - 288px)); min-width:min(828px, 100%); min-height:180px; z-index:0; margin-left:auto; margin-right:auto; {{#switch:{{PAGENAME}}|{{{1|Example}}}=float:left;}}">{{#ifexist:File:{{#var:gamebannerbackground}}|<sup style='position: absolute; top: 1em; right: 1em; z-index:2;text-shadow: 0 0 5px black;'>[[:File:{{#var:gamebannerbackground}}|Image]]</sup>}}<div style="position:absolute; top:0px; right:0px; bottom:0px; left:0px; overflow:hidden;"><div style="position:absolute; left:0; top:0; width:100%; height:100%; background: radial-gradient(ellipse 100% 100% at 110% 0%, rgba(0,0,0,0), rgba(0,0,0,0) 60%, rgba(1,10,19,0.40) 100%, rgba(1,10,19,0.55) 120%, rgba(1,10,19,0.9) 150%); z-index:1"></div><div class="FullWidthImage fxaa" style="position:absolute; z-index:0; min-width:1000px; top:-65%; {{{offset|}}}">![https://cdragon.valhir.cn/latest/champion/{{{disp_name|{{{1|Example}}}}}}/splash-art/centered]</div></div><!--
--><div class="league-font" style="margin-bottom:1em; display:flow-root; position:relative; width:100%; max-width:min(1045px, calc(100% - 288px)); min-width:min(828px, 100%); min-height:180px; z-index:0; margin-left:auto; margin-right:auto; {{#switch:{{PAGENAME}}|{{{1|Example}}}=float:left;}}">{{#ifexist:File:{{#var:gamebannerbackground}}|<sup style='position: absolute; top: 1em; right: 1em; z-index:2;text-shadow: 0 0 5px black;'>[[:File:{{#var:gamebannerbackground}}|Image]]</sup>}}<div style="position:absolute; top:0px; right:0px; bottom:0px; left:0px; overflow:hidden;"><div style="position:absolute; left:0; top:0; width:100%; height:100%; background: radial-gradient(ellipse 100% 100% at 110% 0%, rgba(0,0,0,0), rgba(0,0,0,0) 60%, rgba(1,10,19,0.40) 100%, rgba(1,10,19,0.55) 120%, rgba(1,10,19,0.9) 150%); z-index:1"></div><div class="FullWidthImage fxaa" style="position:absolute; z-index:0; min-width:1000px; top:-65%; {{{offset|}}}">https://wiki.buguoguo.cn/resources/assets/wiki.png</div></div><!--
--><div style="z-index:2; position:relative; text-align:left; margin: 24px; display:flex; flex-flow: column nowrap; justify-content:space-between; min-height:132px;"><!--
--><div style="z-index:2; position:relative; text-align:left; margin: 24px; display:flex; flex-flow: column nowrap; justify-content:space-between; min-height:132px;"><!--
--><span style="font-size: 32px; color: #ffffff;">{{{disp_name|{{{1|Example}}}}}}</span><!--
--><span style="font-size: 32px; color: #ffffff;">{{{disp_name|{{{1|Example}}}}}}</span><!--

2024年2月18日 (日) 16:45的版本

[查看] [編輯] [页面历史] [刷新缓存] 模板文档
描述
展示给定英雄或角色的横幅旗帜,并与他们在Runeterra Universe的游戏中出现链接。
笔记
此横幅仅检查并链接到 /背景, /LOL, /TFT, /LOR, /WR, /PF, /PL 子页面。
/TFT子页面将自动将最新套装的皮肤用于背景。
语法
{{Game banner|<英雄>}}
{{Game banner|<英雄>|<皮肤>|<背景>|<offset>|<active>}}
参数
1 - 必选; 英雄名称
2 - 可选; 皮肤, 默认为原始
background - 可选; 覆盖背景图像
offset - 可选; 覆盖背景图像的CSS
active - 可选; 覆盖哪个导航图标具有大纲
示例
{{Game banner|Garen}}

变成...

wiki.png
Garen
Select icon nav.pngLeague of Legends icon nav.png
Select icon nav.pngTeamfight Tactics icon nav.png