Module:Explode: Difference between revisions
From StrategyWiki, the video game walkthrough and strategy guide wiki
testing, revision 1
Notmyhandle (talk | contribs) (string.find plain parameter should be optional) |
Notmyhandle (talk | contribs) (testing, revision 1) |
||
Line 5: | Line 5: | ||
function p.explode(frame) | function p.explode(frame) | ||
--[[ | |||
By Notmyhandle | |||
args: | |||
1:string | |||
2:delimiter character (divider character) | |||
]]-- | |||
if (frame.args[1]=='') then return false end | |||
local rightside = 0 | |||
--capture the starting and ending index | |||
s,e = string.find(frame.args[1],frame.args[2],0,true) | |||
print(s) | |||
print(e) | |||
return rightside | |||
end | |||
function p.explode2(frame) | |||
--[[ | --[[ |