跳到内容

Module:DesignerSong:修订间差异

删除91字节 、​ 2024年10月25日 (星期五)
全难度diffTag未限制宽度问题
无编辑摘要
(全难度diffTag未限制宽度问题)
第295行: 第295行:
   local row = #nameBYD+1
   local row = #nameBYD+1
   local rowspan = 'rowspan='.. row ..'|'
   local rowspan = 'rowspan='.. row ..'|'
   -- local diffTag = color(diffList[1],'全')..color(diffList[2],'难')..color(diffList[3],'度')
   local diffTag = color(data[times][1],'全难度')
   local diffTag = color(data[times][1],'全难度')
   local style = '|style="height: 35px"'
   local style = '|style="height: 35px"'
   local Text = '|-\n'.. style ..'|[['..name..']]||'..rowspan..pack..'||'..rowspan..diffTag..'||'..rowspan..data[1][2]..'\n|'..rowspan..text..'\n|-\n'
   local Text = '|-\n'.. style ..'|[['..name..']]||'..rowspan..pack..'||width="10%",'..rowspan..diffTag..'||'..rowspan..data[1][2]..'\n|'..rowspan..text..'\n|-\n'
if nameBYD[1] then
if nameBYD[1] then
for _,bydName in ipairs(nameBYD) do
for _,bydName in ipairs(nameBYD) do
第314行: 第313行:
   local style='|style="height: 15px" width="10%"'
   local style='|style="height: 15px" width="10%"'
   for num, i in ipairs(data) do
   for num, i in ipairs(data) do
   wikiText = wikiText ..style
   if nameBYD[1] and i[1] == 'BYD' then
   if nameBYD[1] and i[1] == 'BYD' then
   wikiText = wikiText ..'|'..'[['..(nameBYD[j] or '')..']]'..'\n'
   wikiText = wikiText ..'|'..'[['..(nameBYD[j] or '')..']]'..'\n'
   j = j + 1
   j = j + 1
   end
   end
   local diffFormat = '| '..(i[1] and color(i[1]) or '')
   wikiText = wikiText ..style
   local diffFormat = '|'..(i[1] and color(i[1]) or '')
   local designerFormat = i[3] and '||rowspan='.. i[3] ..'|' ..i[2]  or (i[2] and '||'..i[2] or '')
   local designerFormat = i[3] and '||rowspan='.. i[3] ..'|' ..i[2]  or (i[2] and '||'..i[2] or '')
     wikiText = wikiText .. diffFormat ..designerFormat..'\n'
     wikiText = wikiText .. diffFormat ..designerFormat..'\n'
1,021

个编辑