跳到内容

Module:DesignerSong:修订间差异

删除235字节 、​ 2024年7月26日 (星期五)
getOrder()
无编辑摘要
(getOrder())
第240行: 第240行:
local parentArgs = frame:getParent().args
local parentArgs = frame:getParent().args
local Args = frame.args
local Args = frame.args
local function getOrder(name)
local orderArg = parentArgs[name]
if orderArg then return mw.text.split(orderArg,'\n') end
end
local function getDescription(title)
local function getDescription(title)
return parentArgs[title .. '.description'] or ''
return parentArgs[title .. '.description'] or ''
第362行: 第368行:
for designer,songs in pairs(singleList) do
for designer,songs in pairs(singleList) do
writeText(designer, songs)
writeText(designer, songs)
singleList[designer]=nil
end
end
end
end
return theText
return theText
end
end
local desiredOrder = {
   "Nitro",
   "Toaster",
   "Kurorak",
   "k//eternal",
   "TaroNuke",
   "Exschwasion",
   "CERiNG",
   "antymis",
   "Luxance",
   "KLMNOP",
   "Dec18"
}
local rare = {
   "Kero",
   "écologie"
}
local uncommon_head = {
"Arcaea Charting Team",
"-chartaesthesia-",
"moonquay",
"石樂",
"絶滅",
"én"
}
local uncommon_end = {
   "与主线剧情相关的特殊名义",
   "其他未确认谱师名义"
}


local commonText = cateText(desiredOrder, '==')
local common = getOrder("common")
local commonText = cateText(common, '==')
local rare = getOrder("rare")
local rareTitle = '已确认的其他谱师名义及相关曲目名单'
local rareTitle = '已确认的其他谱师名义及相关曲目名单'
local rareText = '\n=='.. rareTitle .. '==\n' .. getDescription(rareTitle)
local rareText = '\n=='.. rareTitle .. '==\n' .. getDescription(rareTitle)
rareText = rareText .. cateText(rare, '===')
rareText = rareText .. cateText(rare, '===')
 
local uncommonTitle = '未采用常驻谱师名义的曲目名单及所用名义'
local uncommonTitle = '未采用常驻谱师名义的曲目名单及所用名义'
local uncommonText = '\n=='.. uncommonTitle .. '==\n' .. getDescription(uncommonTitle)
local uncommonText = '\n=='.. uncommonTitle .. '==\n' .. getDescription(uncommonTitle)
local headText = cateText(uncommon_head, '===')
local headText = cateText(getOrder("uncommon_head"), '===')
local endText = cateText(uncommon_end, '===')
local endText = cateText(getOrder("uncommon_end"), '===')
uncommonText = uncommonText..headText..cateText(nil, '===')..endText
uncommonText = uncommonText..headText..cateText(nil, '===')..endText


941

个编辑