| 第23行: |
第23行: |
| | local content = "" | | local content = "" |
| | content = content .. "创作者: " | | content = content .. "创作者: " |
| | + | local l = {} |
| | + | local il = 1 |
| | for i, m in ipairs(maintainers) do | | for i, m in ipairs(maintainers) do |
| | local n = m:match("^用户:(.+)$") | | local n = m:match("^用户:(.+)$") |
| − | content = content .. "[[用户:"..n.."|"..n.."]]" | + | local s = "" |
| − | content = content .. "[[Category:由"..n.."维护的条目]]" | + | s = s .. "[[用户:"..n.."|"..n.."]]" |
| − | content = content .. "[[Category:由"..n.."创作的条目]]" | + | s = s .. "[[Category:由"..n.."维护的条目]]" |
| | + | s = s .. "[[Category:由"..n.."创作的条目]]" |
| | + | l[il] = s |
| | + | il = il + 1 |
| | mw.smw.set({ | | mw.smw.set({ |
| | ['Editable by user'] = 'User:'..n | | ['Editable by user'] = 'User:'..n |
| 第34行: |
第39行: |
| | for i, m in ipairs(other_creators) do | | for i, m in ipairs(other_creators) do |
| | local n = m:match("^创作者:(.+)$") | | local n = m:match("^创作者:(.+)$") |
| − | content = content .. "[[创作者:"..n.."|"..n.."]]" | + | local s = "" |
| − | content = content .. "[[Category:由"..n.."创作的条目]]" | + | s = s .. "[[创作者:"..n.."|"..n.."]]" |
| | + | s = s .. "[[Category:由"..n.."创作的条目]]" |
| | + | l[il] = s |
| | + | il = il + 1 |
| | end | | end |
| | + | content = content .. mw.text.listToText(l) |
| | local args = {image = 'Copyright.svg', content = content} | | local args = {image = 'Copyright.svg', content = content} |
| | return frame:expandTemplate{title = "LiteInfoBox", args = args} | | return frame:expandTemplate{title = "LiteInfoBox", args = args} |