If you want an account, contact Ziggy via Discord: link={{{3}}} @ziggymoncher_. Read BonziPEDIA:Requesting accounts for more details.

Module:Videoframe: Difference between revisions

From BonziPEDIA, the Official BonziWORLD Encyclopedia of varied quality.
Jump to navigationJump to search
No edit summary
No edit summary
Line 7: Line 7:


for key, value in pairs(frame.args) do
for key, value in pairs(frame.args) do
if not type(key) == "number" or (type(key) == "number" and key < 4) then
if not type(key) == "number" then
--do nothing
--do nothing
else
elseif key >= 4 then
videos = videos .. value
videos = videos .. value
end
end

Revision as of 21:54, 26 February 2024

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 not type(key) == "number" then
			--do nothing
		elseif key >= 4 then
			videos = videos .. value
		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> &#124; <span class='cyclesequencelinknext showhidetext' style='" .. frame.args[3] .. "'>Next Video</span></div></div>"
end

return videoframe