Module:DesignerSong:修订间差异

添加80字节 、​ 2024年9月28日 (星期六)
不是哥们,“titelStr”  幸好还算懂点编程,要是连Lua都看不懂估计可以退站了  我真的提高运行效率了吗
无编辑摘要
(不是哥们,“titelStr”  幸好还算懂点编程,要是连Lua都看不懂估计可以退站了  我真的提高运行效率了吗)
第326行: 第326行:
end
end
local function cateText(cate, titelStr, formatJa)
local function cateText(cate, titleAStr, titleBStr, formatJa)
local theText = ''
local theText = ''
local sectionCode = {unknown = 100, free = 1, archive = 2, mainstory = 3, sidestory = 4, collab = 5, single = 6}
local sectionCode = {unknown = 100, free = 1, archive = 2, mainstory = 3, sidestory = 4, collab = 5, single = 6}
第361行: 第361行:
designerTitle = '-{<span lang="ja">' .. designer .. '</span>}-'
designerTitle = '-{<span lang="ja">' .. designer .. '</span>}-'
end
end
theText = theText ..titelStr.. designerTitle ..titelStr.."\n"
theText = theText .. titleAStr .. designerTitle .. titleBStr .. "\n"
theText = theText .. getDescription(designer)
theText = theText .. getDescription(designer)
theText = theText .. head
theText = theText .. head
第388行: 第388行:


local common = getOrder("common")
local common = getOrder("common")
local commonText = cateText(common, '==')
local commonText = cateText(common, '<h2>', '</h2>')
local rare = getOrder("rare")
local rare = getOrder("rare")
local rareTitle = '非常驻谱师'
local rareTitle = '非常驻谱师'
local rareSpanid = '\n<span id="已确认的其他谱师名义及相关曲目名单" />'
local rareSpanid = '\n<span id="已确认的其他谱师名义及相关曲目名单" />'
local rareText = rareSpanid.. '\n=='.. rareTitle .. '==\n' .. getDescription(rareTitle)
local rareText = rareSpanid.. '\n<h2>'.. rareTitle .. '</h2>\n' .. getDescription(rareTitle)
rareText = rareText .. cateText(rare, '===')
rareText = rareText .. cateText(rare, '<h3>', '</h3>')
local uncommonTitle = '未确认谱师'
local uncommonTitle = '未确认谱师'
local uncommonSpanid = '\n<span id="未采用常驻谱师名义的曲目名单及所用名义" />'
local uncommonSpanid = '\n<span id="未采用常驻谱师名义的曲目名单及所用名义" />'
local uncommonText = uncommonSpanid..'\n=='.. uncommonTitle .. '==\n' .. getDescription(uncommonTitle)
local uncommonText = uncommonSpanid..'\n<h2>'.. uncommonTitle .. '</h2>\n' .. getDescription(uncommonTitle)
local headText = cateText(getOrder("uncommon_head"), '===', true)
local headText = cateText(getOrder("uncommon_head"), '<h3>', '</h3>', true)
local endText = cateText(getOrder("uncommon_end"), '===')
local endText = cateText(getOrder("uncommon_end"), '<h3>', '</h3>')
uncommonText = uncommonText..headText..cateText(nil, '===')..endText
uncommonText = uncommonText..headText..cateText(nil, '<h3>', '</h3>')..endText


return commonText..rareText..uncommonText
return commonText..rareText..uncommonText