956
个编辑
(修复移动端独占曲目的曲包显示) |
Economy666(讨论 | 贡献) 无编辑摘要 |
||
第311行: | 第311行: | ||
end | end | ||
local setText=args['曲包'] or choice('[['..tostring(getData.packName(data('set')))..']]',data('set'),nil) | --原: | ||
-- local setText=args['曲包'] or choice('[['..tostring(getData.packName(data('set')))..']]',data('set'),nil) | |||
-- local nsSetText=args['曲包NS'] or choice('[['..tostring(getData.packName(dataNs('set')))..']]',dataNs('set'),nil) | |||
-- local categoryText=args['类别'] or getCategoryText(data('category')) | |||
local cc = 'Collaboration %- Collaboration' | |||
local ccl = 'Collaboration#Collaboration' | |||
local setTextDisplay = choice(tostring(getData.packName(data('set'))),data('set'),nil) | |||
local setTextLink = choice(string.gsub(setTextDisplay, cc, ccl),setTextDisplay,nil) | |||
local setTextCombine = '' | |||
if setTextLink and setTextDisplay~=setTextLink then | |||
setTextCombine = '[['..setTextLink..'|'..setTextDisplay..']]' | |||
else | |||
setTextCombine = '[['..setTextDisplay..']]' | |||
end | |||
local setText=args['曲包'] or choice(setTextCombine,data('set'),nil) | |||
local nsSetText=args['曲包NS'] or choice('[['..tostring(getData.packName(dataNs('set')))..']]',dataNs('set'),nil) | local nsSetText=args['曲包NS'] or choice('[['..tostring(getData.packName(dataNs('set')))..']]',dataNs('set'),nil) | ||
local categoryText=args['类别'] or getCategoryText(data('category')) | local categoryText=args['类别'] or getCategoryText(data('category')) | ||
local setDisplayText=tostring(setText) | local setDisplayText=tostring(setText) |
个编辑