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

模板:Game navigation:修订间差异

来自英雄联盟维基百科
 
(未显示同一用户的2个中间版本)
第3行: 第3行:
<div id="game-nav" style="display:inline-block; padding:0px">
<div id="game-nav" style="display:inline-block; padding:0px">
<!---->
<!---->
{{#vardefine:unipage|{{#switch:{{{page|}}}|champion={{#var:base}}/Background|{{#var:base}}_(Universe)}}}}{{#ifexist:{{#var:unipage}}|<div class="game-nav-item {{#ifeq:{{#var:active|lol}}|background|game-nav-item-active|}}" style="display:inline-block; position:relative; height:60px; width:60px"><span class="game-nav-item-select" style="position:absolute">[[File:Select icon nav.svg|60px|link={{#var:unipage}}]]</span><span style="position:absolute; top:17px; left:16px">[[File:Universe icon nav.png|29px|link={{#var:unipage}}]]</span></div>|}}
{{#vardefine:unipage|{{#switch:{{{page|}}}|champion={{#var:base}}/Background|{{#var:base}}_(Universe)}}}}{{#ifexist:{{#var:unipage}}|<div class="game-nav-item {{#ifeq:{{#var:active|lol}}|background|game-nav-item-active|}}" style="display:inline-block; position:relative; height:60px; width:60px"><span class="game-nav-item-select" style="position:absolute">[[File:Select icon nav.png|60px|link={{#var:unipage}}]]</span><span style="position:absolute; top:17px; left:16px">[[File:Universe icon nav.png|29px|link={{#var:unipage}}]]</span></div>|}}
<!---->
<!---->
{{#vardefine:lolpage|{{#switch:{{{page|}}}|champion={{#var:base}}/LoL|{{#var:base}}_(League of Legends)}}}}{{#ifexist:{{#var:lolpage}}|<div class="game-nav-item {{#ifeq:{{#var:active|lol}}|lol|game-nav-item-active|}}" style="display:inline-block; position:relative; height:60px; width:60px"><span class="game-nav-item-select" style="position:absolute">[[File:Select icon nav.svg|60px|link={{#var:lolpage}}]]</span><span style="position:absolute; top:16px; left:18px">[[File:League of Legends icon nav.png|26px|link={{#var:lolpage}}]]</span></div>|}}
{{#vardefine:lolpage|{{#switch:{{{page|}}}|champion={{#var:base}}/LoL|{{#var:base}}_(League of Legends)}}}}{{#ifexist:{{#var:lolpage}}|<div class="game-nav-item {{#ifeq:{{#var:active|lol}}|lol|game-nav-item-active|}}" style="display:inline-block; position:relative; height:60px; width:60px"><span class="game-nav-item-select" style="position:absolute">[[File:Select icon nav.png|60px|link={{#var:lolpage}}]]</span><span style="position:absolute; top:16px; left:18px">[[File:League of Legends icon nav.png|26px|link={{#var:lolpage}}]]</span></div>|}}
<!---->
<!---->
{{#vardefine:tftpage|{{#switch:{{{page|}}}|champion={{#var:base}}/TFT|{{#var:base}}_(Teamfight Tactics)}}}}{{#ifexist:{{#var:tftpage}}|<div class="game-nav-item {{#ifeq:{{#var:active|lol}}|tft|game-nav-item-active|}}" style="display:inline-block; position:relative; height:60px; width:60px"><span class="game-nav-item-select"; style="position:absolute">[[File:Select icon nav.svg|60px|link=https://teamfighttactics.fandom.com/zh/wiki/{{#var:tftpage}}]]</span><span style="position:absolute; top:17px; left:15px">[[File:Teamfight Tactics icon nav.png|30px|link=https://teamfighttactics.fandom.com/zh/wiki/{{#var:tftpage}}]]</span></div>|}}
{{#vardefine:tftpage|{{#switch:{{{page|}}}|champion={{#var:base}}/TFT|{{#var:base}}_(Teamfight Tactics)}}}}{{#ifexist:{{#var:tftpage}}|<div class="game-nav-item {{#ifeq:{{#var:active|lol}}|tft|game-nav-item-active|}}" style="display:inline-block; position:relative; height:60px; width:60px"><span class="game-nav-item-select"; style="position:absolute">[[File:Select icon nav.png|60px|link={{#var:tftpage}}]]</span><span style="position:absolute; top:17px; left:15px">[[File:Teamfight Tactics icon nav.png|30px|link={{#var:tftpage}}]]</span></div>|}}
<!---->
<!---->
{{#vardefine:lorpage|{{#switch:{{{page|}}}|champion={{#var:base}}/LoR|{{#var:base}}_(Legends of Runeterra)}}}}{{#ifexist:{{#var:lorpage}}|<div class="game-nav-item {{#ifeq:{{#var:active|lol}}|lor|game-nav-item-active|}}" style="display:inline-block; position:relative; height:60px; width:60px"><span class="game-nav-item-select" style="position:absolute">[[File:Select icon nav.svg|60px|link={{#var:lorpage}}]]</span><span style="position:absolute; top:15px; left:16px">[[File:Legends of Runeterra icon nav.png|28px|link={{#var:lorpage}}]]</span></div>|}}
{{#vardefine:lorpage|{{#switch:{{{page|}}}|champion={{#var:base}}/LoR|{{#var:base}}_(Legends of Runeterra)}}}}{{#ifexist:{{#var:lorpage}}|<div class="game-nav-item {{#ifeq:{{#var:active|lol}}|lor|game-nav-item-active|}}" style="display:inline-block; position:relative; height:60px; width:60px"><span class="game-nav-item-select" style="position:absolute">[[File:Select icon nav.png|60px|link={{#var:lorpage}}]]</span><span style="position:absolute; top:15px; left:16px">[[File:Legends of Runeterra icon nav.png|28px|link={{#var:lorpage}}]]</span></div>|}}
<!---->
<!---->
{{#vardefine:wrpage|{{#switch:{{{page|}}}|champion={{#var:base}}/WR|{{#var:base}}_(Wild Rift)}}}}{{#ifexist:{{#var:wrpage}}|<div class="game-nav-item {{#ifeq:{{#var:active|lol}}|wr|game-nav-item-active|}}" style="display:inline-block; position:relative; height:60px; width:60px"><span class="game-nav-item-select" style="position:absolute">[[File:Select icon nav.svg|60px|link={{#var:wrpage}}]]</span><span style="position:absolute; top:15px; left:15px">[[File:Wild Rift icon nav.png|32px|link={{#var:wrpage}}]]</span></div>|}}
{{#vardefine:wrpage|{{#switch:{{{page|}}}|champion={{#var:base}}/WR|{{#var:base}}_(Wild Rift)}}}}{{#ifexist:{{#var:wrpage}}|<div class="game-nav-item {{#ifeq:{{#var:active|lol}}|wr|game-nav-item-active|}}" style="display:inline-block; position:relative; height:60px; width:60px"><span class="game-nav-item-select" style="position:absolute">[[File:Select icon nav.png|60px|link={{#var:wrpage}}]]</span><span style="position:absolute; top:15px; left:15px">[[File:Wild Rift icon nav.png|32px|link={{#var:wrpage}}]]</span></div>|}}
<!---->
<!---->
{{#ifexist:{{#var:base}}/PF|<div class="game-nav-item {{#ifeq:{{lc:{{{1|{{#var:active|lol}}}}}}}|pf|game-nav-item-active|}}" style="display:inline-block; position:relative; height:60px; width:60px"><span class="game-nav-item-select" style="position:absolute">[[File:Select icon nav.svg|60px|link={{#var:base}}/PF]]</span><span class="league-font" style="position:absolute; top: 21px; text-align:center; left:0px; right:0px; font-size:13px>[[{{#var:base}}/PF|PROJ&nbsp;F]]</span></div>|}}
{{#ifexist:{{#var:base}}/PF|<div class="game-nav-item {{#ifeq:{{lc:{{{1|{{#var:active|lol}}}}}}}|pf|game-nav-item-active|}}" style="display:inline-block; position:relative; height:60px; width:60px"><span class="game-nav-item-select" style="position:absolute">[[File:Select icon nav.png|60px|link={{#var:base}}/PF]]</span><span class="league-font" style="position:absolute; top: 21px; text-align:center; left:0px; right:0px; font-size:13px>[[{{#var:base}}/PF|PROJ&nbsp;F]]</span></div>|}}
<!---->
<!---->
{{#ifexist:{{#var:base}}/PL|<div class="game-nav-item {{#ifeq:{{lc:{{{1|{{#var:active|lol}}}}}}}|pl|game-nav-item-active|}}" style="display:inline-block; position:relative; height:60px; width:60px"><span class="game-nav-item-select" style="position:absolute">[[File:Select icon nav.svg|60px|link={{#var:base}}/PL]]</span><span class="league-font" style="position:absolute; top: 21px; text-align:center; left:0px; right:0px; font-size:13px>[[{{#var:base}}/PL|PROJ&nbsp;L]]</span></div>|}}
{{#ifexist:{{#var:base}}/PL|<div class="game-nav-item {{#ifeq:{{lc:{{{1|{{#var:active|lol}}}}}}}|pl|game-nav-item-active|}}" style="display:inline-block; position:relative; height:60px; width:60px"><span class="game-nav-item-select" style="position:absolute">[[File:Select icon nav.png|60px|link={{#var:base}}/PL]]</span><span class="league-font" style="position:absolute; top: 21px; text-align:center; left:0px; right:0px; font-size:13px>[[{{#var:base}}/PL|PROJ&nbsp;L]]</span></div>|}}
<!---->
<!---->
</div>
</div>

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