If you want an account, contact Ziggy via Discord: @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 |
finally figured it out |
||
(7 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
function videoframe.videoframe(frame) | function videoframe.videoframe(frame) | ||
local videos = "" | local videos = "" | ||
local args = frame:getParent().args | |||
for key, value in | for key, value in ipairs(args) do | ||
if | if key == 4 then | ||
videos = videos .. "<div class='cyclesequenceitem' align='center'>" .. value .. "</div>" | |||
elseif key > 4 then | |||
videos = videos .. value | videos = videos .. "<div class='cyclesequenceitem hiddentext' align='center'>" .. value .. "</div>" | ||
end | end | ||
end | end | ||
return "<div class='cyclesequence' style='max-width:640px; margin-left:auto; margin-right:auto; text-align:center; " . | return "<div class='cyclesequence' style='max-width:640px; margin-left:auto; margin-right:auto; text-align:center; " .. args[2] .. "'>".. videos .. "<div class='cyclesequencelinks'><span class='cyclesequencelinkprev showhidetext' style='" .. args[3] .. "'>Previous Video</span> | <span class='cyclesequencelinknext showhidetext' style='" .. args[3] .. "'>Next Video</span></div></div>" | ||
end | end | ||
return videoframe | return videoframe |
Latest revision as of 00:10, 27 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 = ""
local args = frame:getParent().args
for key, value in ipairs(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; " .. args[2] .. "'>".. videos .. "<div class='cyclesequencelinks'><span class='cyclesequencelinkprev showhidetext' style='" .. args[3] .. "'>Previous Video</span> | <span class='cyclesequencelinknext showhidetext' style='" .. args[3] .. "'>Next Video</span></div></div>"
end
return videoframe