Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Module:String
(view source)
Revision as of 15:28, 30 June 2016
153 bytes removed
,
15:28, 30 June 2016
m
1 revision imported
Line 467:
Line 467:
function str._escapePattern( pattern_str )
function str._escapePattern( pattern_str )
return mw.ustring.gsub( pattern_str, "([%(%)%.%%%+%-%*%?%[%^%$%]])", "%%%1" );
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
end
return str
return str
WikiSysop
Bureaucrats
, private-view, public-view,
Administrators
97,692
edits
Navigation menu
Personal tools
British English
Log in
Request account
Namespaces
Module
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Create New Page
Temples of India
Subscribe Dharmawiki
Recent changes
Random page
Author Help
Donate to Cause
Donate For Dharma
Tools
Special pages
Printable version