Module:Video

Documentation for this module may be created at Module:Video/doc

local p = {}

function p.main(frame)

local template    = frame:getParent().args
local url         = template['url'] or ''
local arguments   = template['args'] or ''
local description = template['description'] or ''

local embedvideo  = frame:callParserFunction(
    '#evu',
    url,
    'urlargs=' .. arguments,
    'autoresize=true',
    'alignment=center',
    'description=' .. description
)

local html = mw.html.create()

html:tag('div')
    :addClass('video-wrapper')
    :wikitext(embedvideo)

return tostring(html)

end

return p