1,967
个编辑
Economy666(讨论 | 贡献) 小无编辑摘要 |
小 (不是哥们,“titelStr” 幸好还算懂点编程,要是连Lua都看不懂估计可以退站了 我真的提高运行效率了吗) |
||
第326行: | 第326行: | ||
end | end | ||
local function cateText(cate, | 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 .. | 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 | 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 | local uncommonText = uncommonSpanid..'\n<h2>'.. uncommonTitle .. '</h2>\n' .. getDescription(uncommonTitle) | ||
local headText = cateText(getOrder("uncommon_head"), ' | 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, ' | uncommonText = uncommonText..headText..cateText(nil, '<h3>', '</h3>')..endText | ||
return commonText..rareText..uncommonText | return commonText..rareText..uncommonText |