Module:Sandbox/D41D8CD98F/Sandbox
跳到导航
跳到搜索
local p = {} function p._test(args) return mw.getCurrentFrame():extensionTag{ name = args[1], content = args[2], args = {} } end function p.test(frame) local getArgs = require('Module:Arguments').getArgs local args = getArgs(frame) return p._test(args) end function p.tostring(frame) local s = '' for k, v in pairs(frame.args) do if type(k) == 'number' then s = s .. '|' .. v else s = s .. '|' .. k .. '=' .. v end end return s end return p