Difference between revisions of "Module:Extension"
Jump to navigation
Jump to search
m
separator
>Ricordisamoa (p.getType) |
>Ricordisamoa m (separator) |
||
Line 123: | Line 123: | ||
function p.getTypes( frame ) | function p.getTypes( frame ) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local | local types = {} | ||
local params = { | local params = { | ||
args.type1 or args['type'] or 'missing', | args.type1 or args['type'] or 'missing', | ||
Line 138: | Line 138: | ||
local param = mw.text.trim( param ) | local param = mw.text.trim( param ) | ||
if args.templatemode == 'nocats' then | if args.templatemode == 'nocats' then | ||
table.insert( types, getType( '_demomode_', param ) ) | |||
else | else | ||
table.insert( types, getType( param ) ) | |||
end | end | ||
end | end | ||
return | return table.concat( types, ', ' ) | ||
end | end | ||