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

添加209字节 、​ 2022年10月19日 (三) 20:39
无编辑摘要
Zth讨论 | 贡献
function span(str)
return mw.ustring.match(str, "rowspan%s*=%s*[\"\']?(%d+)") or 1
end
 
function ktype(str)
local key = str:sub(1, 2)
if key == "cv" or key == "CV" then
return "read"
elseif key == "BV" or key == "bv" or key == "AV" or key == "av" then
return "video"
end
end
 
elseif i == urlcol then
result = result.."\n|"..(td[1] or "")..
(td[2] == "" and " |–" or " class=\"video-link\"|[https://www.bilibili.com/video"..ktype(td[2]).."/"..td[2].." "..td[2].."]")
else
result = result.."\n|"..(td[1] or "")..
14,865

个编辑