Module:Infobox: Difference between revisions

Jump to navigation Jump to search
m
Hopefully fixes my name
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(and)")
         name = mw.text.trim(creator, "%s%p")
     name = mw.text.split(name,"|")
     alias = mw.text.split(name,"|")
     if #name == 2 then
     if #alias == 2 then
         table.insert(creatorsList, "[[User:" .. name[1] .. "|" .. name[2] .. "]]")
         table.insert(creatorsList, "[[User:" .. alias[1] .. "|" .. alias[2] .. "]]")
     else
     else
         table.insert(creatorsList, "[[User:" .. name[1] .. "|" .. name[1] .. "]]")
         table.insert(creatorsList, "[[User:" .. name .. "|" .. name .. "]]")
     end
     end
         end
         end
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits

Navigation menu