Editing Module:Template test case
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 100: | Line 100: | ||
else | else | ||
local strippedTemplate, hasColon = self.template:gsub('^:', '', 1) | local strippedTemplate, hasColon = self.template:gsub('^:', '', 1) | ||
local ns = strippedTemplate:match('^(.-):') | local ns = strippedTemplate:match('^(.-):') | ||
ns = ns and mw.site.namespaces[ns] | ns = ns and mw.site.namespaces[ns] |