Module:Videoframe
Documentation for this module may be created at Module:Videoframe/doc
--[[ A Lua rewrite of Encyclopedia Dramatica's videoframe template.
Made by SeamusIsANigger. ]]
local videoframe = {}
function videoframe.videoframe(frame)
local videos = ""
for key, value in pairs(frame.args) do
if key == 4 then
videos = videos .. "<div class='cyclesequenceitem' align='center'>" .. value .. "</div>"
elseif key > 4 then
videos = videos .. "<div class='cyclesequenceitem hiddentext' align='center'>" .. value .. "</div>"
end
end
return "<div class='cyclesequence' style='max-width:640px; margin-left:auto; margin-right:auto; text-align:center; " .. frame.args[2] .. "'>".. videos .. "<div class='cyclesequencelinks'><span class='cyclesequencelinkprev showhidetext' style='" .. frame.args[3] .. "'>Previous Video</span> | <span class='cyclesequencelinknext showhidetext' style='" .. frame.args[3] .. "'>Next Video</span></div></div>"
end
return videoframe