第24行: |
第24行: |
| content = content .. "创作者: " | | content = content .. "创作者: " |
| for i, m in ipairs(maintainers) do | | for i, m in ipairs(maintainers) do |
− | content = content .. "[[User:"..m.."|"..m.."]]" | + | local n = m:match("^用户:(.+)$") |
− | content = content .. "[[Category:由"..m.."维护的条目]]" | + | content = content .. "[[用户:"..n.."|"..n.."]]" |
− | content = content .. "[[Category:由"..m.."创作的条目]]" | + | content = content .. "[[Category:由"..n.."维护的条目]]" |
| + | content = content .. "[[Category:由"..n.."创作的条目]]" |
| mw.smw.set({ | | mw.smw.set({ |
− | ['Editable by user'] = 'User:'..m | + | ['Editable by user'] = 'User:'..n |
| }) | | }) |
| end | | end |
| for i, m in ipairs(other_creators) do | | for i, m in ipairs(other_creators) do |
− | content = content .. "[[创作者:"..m.."|"..m.."]]" | + | local n = m:match("^创作者:(.+)$") |
− | content = content .. "[[Category:由"..m.."创作的条目]]" | + | content = content .. "[[创作者:"..n.."|"..n.."]]" |
| + | content = content .. "[[Category:由"..n.."创作的条目]]" |
| end | | end |
| local args = {image = 'Copyright.svg', content = content} | | local args = {image = 'Copyright.svg', content = content} |