Module:ShowArguments: Difference between revisions
Appearance
Content deleted Content added
Salix alba (talk | contribs) ShowArguments |
Salix alba (talk | contribs) s |
||
Line 16: | Line 16: | ||
end |
end |
||
end |
end |
||
⚫ | |||
⚫ | |||
⚫ | |||
*/ |
*/ |
||
]] |
]] |
||
function ShowArguments.display(frame) |
function ShowArguments.display(frame) |
||
local text=''; |
local text='foobar'; |
||
⚫ | |||
⚫ | |||
⚫ | |||
return text |
return text |
||
end |
end |
Revision as of 08:26, 16 July 2013
--[[
ShowArguments
Displays all the arguments passed into the module
Usage:
{{ Invoke:ShowArguments | display }}
/*
globalFrame = frame
local args = frame.args
if args[1] == nil then
text = 'Arguments from parent'
local pFrame = frame:getParent();
args = pFrame.args;
for k,v in pairs( frame.args ) do
args[k] = v;
end
end
for k,v in pairs( frame.args ) do
text = text .. 'key (' .. k .. ') value ('.. v .. ')';
end
*/
]]
function ShowArguments.display(frame)
local text='foobar';
return text
end
return ShowArguments