Module:Infobox: Difference between revisions

Jump to navigation Jump to search
m
Seems like the templates get parsed prior to modules. Figured out how to escape brackets in modules
mNo edit summary
m (Seems like the templates get parsed prior to modules. Figured out how to escape brackets in modules)
Line 135: Line 135:
         creatorsList = {}
         creatorsList = {}
         rowArgs.data = string.gsub(rowArgs.data, " and ", "")
         rowArgs.data = string.gsub(rowArgs.data, " and ", "")
         rowArgs.data = string.gsub(rowArgs.data, "{{UserLink|", "")
         rowArgs.data = string.gsub(rowArgs.data, "%[%[User:", "")
         rowArgs.data = string.gsub(rowArgs.data, "}}", "")
         rowArgs.data = string.gsub(rowArgs.data, "%]%]", "")
         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")
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits

Navigation menu