Module:Cmaster

local p = {}

function p.cmaster(frame)

-- define frame = frame:getParent.args local name, location = frame['name'], frame['location'] local args = 0 local scout, sname, element, gender, type

-- define backbone local div = mw.html.create('div'):addClass('cmaster') local header = mw.html.create('div') :addClass('header') :wikitext(name) local sub = mw.html.create('div') :addClass('sub') :wikitext(location)

-- separate each item for i, v in ipairs(frame) do       args = args + 1 end

-- create each item for i = 1, args, 4 do       scout = mw.html.create('div') scout :addClass('item') :node(               mw.html.create('span')                    :addClass('name')                    :wikitext(args[i])            ) :node(               mw.html.create('span')                    :addClass('file')                    :wikitext('')            ) :node(               mw.html.create('ul')                    :addClass('clist')                    :node(mw.html.create('li'):wikitext())                    :node(mw.html.create('li'):wikitext())                    :node(mw.html.create('li'):wikitext(''))            ) :allDone div:node(scout) end

return tostring(div)

end

return p