Module:曲目列表:修订间差异

Admin​(留言 | 贡献)
名义提示判定:只在真·马甲/组合标签/带注释时显示(排除纯写法差异)
Admin​(留言 | 贡献)
链接文本改为「本曲实际使用的署名」(原署名);文本已体现原串时不再重复加名义备注
第39行: 第39行:
local out = {}
local out = {}
for _, pt in ipairs(parts) do
for _, pt in ipairs(parts) do
local text = pt.rawPart or pt.base
if known and not known[pt.base] then
if known and not known[pt.base] then
out[#out + 1] = esc(pt.base)
out[#out + 1] = esc(text)
else
else
out[#out + 1] = '[[曲师列表#' .. esc(pt.base) .. '|' .. esc(pt.base) .. ']]'
out[#out + 1] = '[[曲师列表#' .. esc(pt.base) .. '|' .. esc(text) .. ']]'
end
end
end
end
-- 本曲实际使用的名义(真·马甲/组合标签/带注释 才提示)
-- 本曲实际使用的名义(真·马甲/组合标签/带注释 才提示)
local note = ''
local note = ''
if parse.creditNote(raw, lk) then
if parse.creditNote(raw, lk) and parse.norm(raw) ~= parse.norm(table.concat((function()
local t = {}
for _, pt in ipairs(parts) do t[#t + 1] = (pt.rawPart or pt.base) end
return t
end)(), ' / ')) then
note = ' <span style="font-size:85%;color:#666">(名义:' .. esc(raw) .. ')</span>'
note = ' <span style="font-size:85%;color:#666">(名义:' .. esc(raw) .. ')</span>'
end
end