诚邀有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|}}}"><a href="/{{gamebannerbackground}}" class="image"><img alt="{{gamebannerbackground}}" src="https://cdragon.valhir.cn/latest/champion/{{gamebannerbackground}}/splash-art/centered" decoding="async" width="1280" height="720"></a></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|}}}"><a href="/{{disp_name}}" class="image"><img alt="{{disp_name}}" src="https://cdragon.valhir.cn/latest/champion/{{disp_name}}/splash-art/centered" decoding="async" width="1280" height="720"></a></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><!--
--><div style="position:relative; left:-10px; bottom:-10px">{{game navigation|{{{1}}}|lol={{{lol|}}}|tft={{{tft|}}}|lor={{{lor|}}}|wr={{{wr|}}}|page=champion|active={{{active|}}}}}</div><!--
--><div style="position:relative; left:-10px; bottom:-10px">{{game navigation|{{{1}}}|lol={{{lol|}}}|tft={{{tft|}}}|lor={{{lor|}}}|wr={{{wr|}}}|page=champion|active={{{active|}}}}}</div><!--
--></div><!--
--></div><!--
--></div>{{#switch:{{PAGENAME}}|{{{1|Example}}}=|{{clear}}}}</includeonly><noinclude>{{Game banner/doc}}</noinclude>
--></div>{{#switch:{{PAGENAME}}|{{{1|Example}}}=|{{clear}}}}</includeonly><noinclude>{{Game banner/doc}}<templatedata>
{
"params": {
"1": {},
"2": {},
"disp_name": {},
"background": {},
"offset": {},
"lol": {},
"tft": {},
"lor": {},
"wr": {},
"active": {}
}
}
</templatedata></noinclude>

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

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

变成...

<a href="/模板:Disp name" class="image"><img alt="模板:Disp name" src="https://cdragon.valhir.cn/latest/champion/模板:Disp name/splash-art/centered" decoding="async" width="1280" height="720"></a>
Garen
Select icon nav.pngLeague of Legends icon nav.png
Select icon nav.pngTeamfight Tactics icon nav.png



无描述。

模板参数

参数描述类型状态
11

无描述

未知可选
22

无描述

未知可选
disp_namedisp_name

无描述

未知可选
backgroundbackground

无描述

未知可选
offsetoffset

无描述

未知可选
lollol

无描述

未知可选
tfttft

无描述

未知可选
lorlor

无描述

未知可选
wrwr

无描述

未知可选
activeactive

无描述

未知可选