◆少前百科是非盈利性、非官方的少女前线维基百科。
◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科
◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科
◆To foreigners,You can use twitter to contact us.
Icon Nyto Silver.png

“Widget:ArtistList”的版本间的差异

来自少前百科GFwiki
跳转至: 导航搜索
2个标签移动版编辑移动网页编辑
 
(未显示同一用户的6个中间版本)
第1行: 第1行:
 
<includeonly><script>
 
<includeonly><script>
 
window.artists=new Array;
 
window.artists=new Array;
 +
RLQ.push(function(){
 +
function getURLParam(name) { //解析url参数
 +
    return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
 +
}
 
$(".artistdata").each(
 
$(".artistdata").each(
 
function (index, element){
 
function (index, element){
第23行: 第27行:
 
line += format;
 
line += format;
 
}
 
}
var title = `\<h2\>${i}\<\/h2\>\<div class=\"avatarLists\"\>${line}\<\/div\>`
+
var title = `\<h2 id\=\"${i}\"\>${i}\<\/h2\>\<div class\=\"avatarLists\"\>${line}\<\/div\>`
 
$(title).appendTo('#mw-content-text .mw-parser-output')
 
$(title).appendTo('#mw-content-text .mw-parser-output')
 
}
 
}
 +
if(!!location.hash){location.href=decodeURIComponent(location.hash.replaceAll(".","%"))}
 +
})
 
</script></includeonly><noinclude>[[画师]]列表自动获取组件</noinclude>
 
</script></includeonly><noinclude>[[画师]]列表自动获取组件</noinclude>

2021年6月17日 (四) 22:50的最新版本

画师列表自动获取组件