6,560
次編輯
小無編輯摘要 |
小無編輯摘要 |
||
第30行: | 第30行: | ||
:wikitext(tostring(c)) | :wikitext(tostring(c)) | ||
return tostring(box) | return tostring(box) | ||
end | |||
function getImage(id,all,pst,prs,ftr,byd,second,normalJacketArgs,bydJacketArgs,normalJacketData,bydJacketData,bydyes) | |||
local container,tab=mw.html.create('div'),mw.html.create('div') | |||
local tab1,tab2,tab3,part1,part2,part3,jacket1,jacket2 | |||
container:addClass( 'container' ) | |||
tab:attr( 'id','tab-a' ) tab:addClass( 'img-tab' ) | |||
local normalJacket,bydJacket | |||
if normalJacketArgs | |||
then | |||
normalJacket,bydJacket=normalJacketArgs,bydJacketArgs | |||
else | |||
if normalJacketData=="" or normalJacketData==nil | |||
then | |||
normalJacket,bydJacket='未知','未知' | |||
else | |||
normalJacket,bydJacket=link({'画师',tostring(normalJacketData)}),link({'画师',tostring(bydJacketData)}) | |||
end | |||
end | |||
if pst and prs and ftr | |||
then | |||
tab1,tab2,tab3,part1,part2,part3=mw.html.create('div'),mw.html.create('div'),mw.html.create('div'),mw.html.create('div'),mw.html.create('div'),mw.html.create('div') | |||
tab1:wikitext('Past') tab2:wikitext('Present') tab3:wikitext('Future') | |||
tab1:addClass('img-tab-part pst') tab2:addClass('img-tab-part prs') tab3:addClass('img-tab-part ftr') | |||
tab:wikitext(tostring(tab1)) tab:wikitext(tostring(tab2)) tab:wikitext(tostring(tab3)) | |||
container:wikitext(tostring(tab)) | |||
part1:wikitext('[[文件:'..pst..'|256px|none]]画师:'..normalJacket) part2:wikitext('[[文件:'..prs..'|256px|none]]画师:'..normalJacket) part3:wikitext('[[文件:'..ftr..'|256px|none]]画师:'..normalJacket) | |||
part1:addClass('tab-text-a') part2:addClass('tab-text-a') part3:addClass('tab-text-a active') | |||
container:wikitext(tostring(part1)) container:wikitext(tostring(part2)) container:wikitext(tostring(part3)) | |||
return tostring(container) | |||
end | |||
if byd | |||
then | |||
tab1,tab2,part1,part2=mw.html.create('div'),mw.html.create('div'),mw.html.create('div'),mw.html.create('div') | |||
tab1:wikitext('Normal') tab2:wikitext('Beyond') | |||
tab1:addClass('img-tab-part normal') tab2:addClass('img-tab-part byd') | |||
tab:wikitext(tostring(tab1)) tab:wikitext(tostring(tab2)) | |||
container:wikitext(tostring(tab)) | |||
part1:wikitext('[[文件:'..all..'|256px|none]]画师:'..normalJacket) part2:wikitext('[[文件:'..byd..'|256px|none]]画师:'..tostring(bydJacket)) | |||
part1:addClass('tab-text-a active') part2:addClass('tab-text-a') | |||
container:wikitext(tostring(part1)) container:wikitext(tostring(part2)) | |||
return tostring(container) | |||
end | |||
if second | |||
then | |||
tab1,tab2,part1,part2=mw.html.create('div'),mw.html.create('div'),mw.html.create('div'),mw.html.create('div') | |||
tab1:wikitext('第一曲绘') tab2:wikitext('第二曲绘') | |||
tab1:addClass('img-tab-part normal') tab2:addClass('img-tab-part normal') | |||
tab:wikitext(tostring(tab1)) tab:wikitext(tostring(tab2)) | |||
container:wikitext(tostring(tab)) | |||
part1:wikitext('[[文件:'..all..'|256px|none]]画师:'..normalJacket) part2:wikitext('[[文件:'..second..'|256px|none]]画师:'..normalJacket) | |||
part1:addClass('tab-text-a active') part2:addClass('tab-text-a') | |||
container:wikitext(tostring(part1)) container:wikitext(tostring(part2)) | |||
return tostring(container) | |||
end | |||
if id and bydyes | |||
then | |||
tab1,tab2,part1,part2=mw.html.create('div'),mw.html.create('div'),mw.html.create('div'),mw.html.create('div') | |||
tab1:wikitext('Normal') tab2:wikitext('Beyond') | |||
tab1:addClass('img-tab-part normal') tab2:addClass('img-tab-part byd') | |||
tab:wikitext(tostring(tab1)) tab:wikitext(tostring(tab2)) | |||
container:wikitext(tostring(tab)) | |||
part1:wikitext('[[文件:Songs '..id..'.jpg|256px|none]]画师:'..normalJacket) part2:wikitext('[[文件:Songs '..id..' byd.jpg|256px|none]]画师:'..tostring(bydJacket)) | |||
part1:addClass('tab-text-a active') part2:addClass('tab-text-a') | |||
container:wikitext(tostring(part1)) container:wikitext(tostring(part2)) | |||
return tostring(container) | |||
end | |||
if id | |||
then | |||
return '<div>[[文件:Songs '..id..'.jpg|256px|none]]画师:'..normalJacket..'</div>' | |||
end | |||
return '<div>[[文件:'..all..'|256px|none]]画师:'..normalJacket..'</div>' | |||
end | end | ||
第89行: | 第180行: | ||
[5]={ 'ns' , 'PastNote编写' , 'note编写' , 'pstChartDesigner' }, | [5]={ 'ns' , 'PastNote编写' , 'note编写' , 'pstChartDesigner' }, | ||
[6]={ 'ns' , 'PresentNote编写' , 'note编写' , 'prsChartDesigner' }, | [6]={ 'ns' , 'PresentNote编写' , 'note编写' , 'prsChartDesigner' }, | ||
[7]={ 'ns' , 'FutureNote编写' , 'note编写' , 'ftrChartDesigner' } | [7]={ 'ns' , 'FutureNote编写' , 'note编写' , 'ftrChartDesigner' } | ||
} | } | ||
第109行: | 第200行: | ||
if k[1]=='mobile' | if k[1]=='mobile' | ||
then | then | ||
chartDesigner[i]=link({ '谱师',data(k[4]) }) | chartDesigner[i]=link({ '谱师',tostring(data(k[4])) }) | ||
else | else | ||
chartDesigner[i]=link({ '谱师',dataNs(k[4]) }) | chartDesigner[i]=link({ '谱师',tostring(dataNs(k[4])) }) | ||
end | end | ||
end | end | ||
第126行: | 第217行: | ||
spanNs=merge({ chartDesigner[5],chartDesigner[6],chartDesigner[7] }) | spanNs=merge({ chartDesigner[5],chartDesigner[6],chartDesigner[7] }) | ||
local image=getImage(data('id'),args['图片'],args['Past曲绘'],args['Present曲绘'],args['Future曲绘'],args['Beyond曲绘'],args['第二曲绘图片'],args['画师'],args['Beyond画师'],data('ftrJacketDesigner'),data('bydJacketDesigner'),byd) | |||
local infoList={ | local infoList={ | ||
[1]={ | [1]={ | ||
第131行: | 第223行: | ||
}, | }, | ||
[2]={ | [2]={ | ||
image,'image',{ ['id']='top-image' } | |||
}, | }, | ||
[3]={ | [3]={ | ||
image,'image',{ ['id']='right-image' } | |||
}, | }, | ||
[4]={ | [4]={ | ||
第143行: | 第235行: | ||
}, | }, | ||
[6]={ | [6]={ | ||
args['编曲'],link({ '曲师',data('artist') }),{ ['class']='data' } | args['编曲'],link({ '曲师',tostring(data('artist')) }),{ ['class']='data' } | ||
}, | }, | ||
[7]={ | [7]={ |