Difference between revisions of "Module:Extension"

Jump to navigation Jump to search
46 bytes added ,  20:32, 27 October 2014
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 res = ''
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
res = res .. getType( '_demomode_', param )
table.insert( types, getType( '_demomode_', param ) )
else
else
res = res .. getType( param )
table.insert( types, getType( param ) )
end
end
end
end
return res
return table.concat( types, ', ' )
end
end


Anonymous user

Navigation menu