Module:Sandbox/Matroc/Str right

Revision as of 07:22, 26 June 2013 by imported>Matroc (Created page with 'local p = {} function p.right( frame ) astring = frame.args[1] or "" count = frame.args[2] or astring.len() astring = astring:sub(#astring - count ...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Sandbox/Matroc/Str right/doc

local p = {}
 
function p.right( frame )
    astring = frame.args[1] or ""
    count = frame.args[2] or astring.len()
    astring = astring:sub(#astring - count + 1, #astring)
    return astring
end
 
return p