Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659
edits
m (Also work for Updater) |
m (Hopefully fixes my name) |
||
Line 134: | Line 134: | ||
if rowArgs.label == "Created by" or rowArgs.label == "Last Updated by" then | if rowArgs.label == "Created by" or rowArgs.label == "Last Updated by" then | ||
creatorsList = {} | creatorsList = {} | ||
rowArgs.data = string.gsub(rowArgs.data, " and ", "") | |||
for creator in mw.text.gsplit(rowArgs.data, ",") do | for creator in mw.text.gsplit(rowArgs.data, ",") do | ||
name = mw.text.trim(creator, "%s%p | name = mw.text.trim(creator, "%s%p") | ||
alias = mw.text.split(name,"|") | |||
if # | if #alias == 2 then | ||
table.insert(creatorsList, "[[User:" .. | table.insert(creatorsList, "[[User:" .. alias[1] .. "|" .. alias[2] .. "]]") | ||
else | else | ||
table.insert(creatorsList, "[[User:" .. name | table.insert(creatorsList, "[[User:" .. name .. "|" .. name .. "]]") | ||
end | end | ||
end | end |
edits