Module:Sandbox/BigGreenCahuna

local p = {} function p.hello( frame ) local args=frame.args output = "Bob " --     local done = 0 local i = 1 while done == 0 do		if args[i] == nil	then output = output.." End." done = 1 else output = output.." "..args[i] i=i+1 end end

--output=output..frame:preprocess(" ==Notes==") local parent = frame:getParent(frame) --local grandparent = frame:getGrandparent(frame) local grandparent = mw.title.getCurrentTitle.text output=output.."Frame: "..frame:getTitle.."Parent: "..parent:getTitle.."GrandParent: "..grandparent --:getTitle return output end

function p.GetP( frame ) local parent = frame:getParent(frame) return parent:getTitle end

function p.TestParent( frame ) local args=frame.args output = "Calling template: "..args[1] return output end

return p