Module:String: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
wrong syntax
(Create module) |
(wrong syntax) |
||
Line 1:
local str = {}
function str
return mw.ustring.len( frame.args[1] )
end
function str
return mw.ustring.sub( frame.args[1], tonumber( frame.args[2] ), tonumber( frame.args[3] ) )
end
function str
return mw.ustring.match( frame.args[1], frame.args[2], tonumber( frame.args[3] ) )
end
|