“模块:Radio-list”的版本间差异

删除487字节 、​ 2020年10月10日 (六) 08:41
无编辑摘要
result = result.."\n|-\n|"..(date[1] == 1 and id or "<div style=\"text-align:center\">–</div>").."||"..date[2]
id = id + date[1]
elseif (i > 1 and i < ncvcols) then
rowspan[i] = rowspan[i] or 0
if rowspan[i] > 0 then
rowspan[i] = rowspan[i] - 1
else
local td = cell(v)
if td[1] then
rowspan[i] = span(td[1]) - 1
end
if td[1] or td[2] == "" then
result = result.."||"..(td[1] or "")..
(td[2] == "" and "class=\"table-none\"| " or ("|"..
frame:expandTemplate{title = "memberlink/cv", args = mw.text.split(v, "、")}))
else
result = result.."||"..frame:expandTemplate{title = "memberlink/cv", args = mw.text.split(v, "、")}
end
end
elseif i == ncvcols then
local video = string.match(v, "[%l%u%d]+")
result = result.."||"..(video and "[https://www.bilibili.com/video/"..video.." "..v.."]" or "–")
elseif i == 0 thenelse
rowspan[i] = rowspan[i] or 0
if rowspan[i] > 0 then
rowspan[i] = span(td[1]) - 1
end
resultif i == result.."||"..(td[1] and td[1].."|" or0 "")..td[2]then
if result = result.."||"..(td[1] orand td[21].."|" ==or "" then)..td[2]
if rowspan[i] > 0 thenelse
if result = result.."||"..(td[1] thenor "")..
(td[2] == "" and "class=\"table-none\"| " or ("|"..
(" |"..frame:expandTemplate{title = "memberlink/cv", args = mw.text.split(v, "、")}))
else end
end
end
16,874

个编辑