Difference between revisions of "Module:Sandbox/Ahecht"
Jump to navigation
Jump to search
blackwiki>Ahecht (test) |
blackwiki>Ahecht (remove line break) |
||
| Line 43: | Line 43: | ||
end | end | ||
| − | return table.concat(output,';') | + | return table.concat(output,';') |
end | end | ||
return p | return p | ||
Revision as of 00:46, 15 April 2020
{{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
- Sandbox/Ahecht/Cite/doc
- Sandbox/Ahecht/Cite DNV
- Sandbox/Ahecht/Gridiron color
- Sandbox/Ahecht/doc
- Sandbox/Ahecht/flag
- Sandbox/Ahecht/flag/Australia
- Sandbox/Ahecht/flag/Australia/doc
- Sandbox/Ahecht/flag/Canada
- Sandbox/Ahecht/flag/Canada/doc
- Sandbox/Ahecht/flag/China
- Sandbox/Ahecht/flag/China/doc
- Sandbox/Ahecht/flag/France
- Sandbox/Ahecht/flag/France/doc
- Sandbox/Ahecht/flag/Germany
- Sandbox/Ahecht/flag/Germany/doc
- Sandbox/Ahecht/flag/Iran
- Sandbox/Ahecht/flag/Iran/doc
- Sandbox/Ahecht/flag/Italy
- Sandbox/Ahecht/flag/Italy/doc
- Sandbox/Ahecht/flag/Japan
- Sandbox/Ahecht/flag/Japan/doc
- Sandbox/Ahecht/flag/Poland
- Sandbox/Ahecht/flag/Poland/doc
- Sandbox/Ahecht/flag/Spain
- Sandbox/Ahecht/flag/Spain/doc
- Sandbox/Ahecht/flag/United Kingdom
- Sandbox/Ahecht/flag/United Kingdom/doc
- Sandbox/Ahecht/flag/United States
- Sandbox/Ahecht/flag/United States/doc
- Sandbox/Ahecht/flag/doc
- Sandbox/Ahecht/flag/redirects
- Sandbox/Ahecht/flag/redirects/doc
- Sandbox/Ahecht/flag/script.js
- Sandbox/Ahecht/modsandbox
- Sandbox/Ahecht/pagecreator
- Sandbox/Ahecht/pagecreator/doc
- Sandbox/Ahecht/sandbox
- Sandbox/Ahecht/sandbox2
- Sandbox/Ahecht/trim date
- Sandbox/Ahecht/url-access
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 p.rows2data(frame)
args = frame.args
output = {}
for k,v in ipairs(args) do
output[k] = v
end
for k,v in pairs(args) do
if (type(k) == 'string') and (k ~= 'divisor') and (k ~= 'numwidth') and (k ~= 'collapsible') then
output[#output+1] = k .. '=' .. v
end
end
return table.concat(output,';')
end
return p