请输入您要查询的百科知识:

 

词条 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(" [1]

==Notes==

1. ^Ref 1
")

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

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 11:37:43