function str._escapePattern( pattern_str )
return mw.ustring.gsub( pattern_str, "([%(%)%.%%%+%-%*%?%[%^%$%]])", "%%%1" );
end
--[[
check if string is a number
]]
function str.isNumber( frame )
if not tonumber( frame.args[1] ) then
return 0
else
return 1
end
end
return str