Module:Documentation: Difference between revisions
Jump to navigation
Jump to search
m>Mr. Stradivarius oops, looks like I issued a command that put everything in lower case somewhere along the line |
m>Mr. Stradivarius use "ugsub" rather than "gsub" as the abbreviation for mw.ustring.gsub, to make it clearer that it isn't the regular string.gsub |
||
Line 12: | Line 12: | ||
-- Often-used functions. | -- Often-used functions. | ||
local | local ugsub = mw.ustring.gsub | ||
---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ||
Line 44: | Line 44: | ||
end | end | ||
local ret = | local ret = ugsub(msg, '$([1-9][0-9]*)', getMessageVal) | ||
return ret | return ret | ||
end | end |