Content deleted Content added
No edit summary |
No edit summary |
||
(26 intermediate revisions by the same user not shown) | |||
Line 2:
function p.hello( frame )
local args=frame.args
output = "Bob "
--
local i = 1
if args[i] == nil then ▼
while done == 0 do
output = output.." End." ▼
done = 1▼
▲ output = output.." End."
else ▼
▲ done = 1
output = output.." "..args[i] ▼
▲ else
i=i+1
end
▲ end
--output=output..frame:preprocess(" <ref>Ref 1</ref><P>==Notes==<BR>{{Reflist|group=N}}")
local parent = frame:getParent(frame)
--local grandparent = frame:getGrandparent(frame)
local grandparent = mw.title.getCurrentTitle().text
output=output.."<BR>Frame: "..frame:getTitle().."<BR>Parent: "..parent:getTitle().."<BR>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
|