Module:Sandbox/Ahecht
Appearance
{{Module rating }}
Usage
{{#invoke:Sandbox/Ahecht|main}}
Output
frame: table
frame.args: table
frame:getParent().args table
See also
- Sandbox/Ahecht
- Sandbox/Ahecht/Catalog lookup link
- Sandbox/Ahecht/Cite DNV
- Sandbox/Ahecht/Gridiron color
- Sandbox/Ahecht/Xviews
- Sandbox/Ahecht/benchmark
- Sandbox/Ahecht/cite
- Sandbox/Ahecht/doc
- Sandbox/Ahecht/flag
- Sandbox/Ahecht/flag/doc
- Sandbox/Ahecht/flag/redirects
- Sandbox/Ahecht/flag/redirects/doc
- Sandbox/Ahecht/interwiki
- Sandbox/Ahecht/interwiki/doc
- Sandbox/Ahecht/min
- Sandbox/Ahecht/modsandbox
- Sandbox/Ahecht/navboxtolua
- Sandbox/Ahecht/navboxtolua/doc
- Sandbox/Ahecht/sandbox
- Sandbox/Ahecht/sandbox2
- Sandbox/Ahecht/sandbox2/doc
- Sandbox/Ahecht/trim date
- Sandbox/Ahecht/url-access
- Sandbox/Ahecht/wikibase
local p = {}
function p.main(frame)
local output = {}
output[1] = 'frame: ' .. type(frame) .. ' '
if frame[1] then
output[2] = frame[1]
else
output[2] = ''
end
output[3] = '\<br />frame.args: ' .. type(frame.args) .. ' '
if frame.args[1] then
output[4] = frame.args[1]
else
output[4] = ''
end
output[5] = '<br />frame:getParent().args ' .. type(frame:getParent().args) .. ' '
if frame:getParent().args[1] then
output[6] = frame:getParent().args[1]
else
output[6] = ''
end
if frame.args['test'] == 0 then
output[7] = '<br />0 the number'
elseif frame.args['test'] == '0' then
output[7] = '<br />0 the character'
else
output[7] = ''
end
return table.concat(output)
end
function rows2data(frame)
args = frame.args
output = {}
for i=1,#args,1 do
output[i] = args[i]
end
for k,v in args do
if type(k) == 'string' then
output[#output+1] = k .. '=' .. v
end
end
return table.concat(output,';')
end
return p