View source for Module:Row
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
-- Module definition
local p = {}
-- Function to generate the row
function p.Row(frame)
local args = frame:getParent().args
local numColumns = tonumber(args.columns) or 5 -- Maximum number of columns
-- Determine base class
local baseClass = "jjbe-row"
if args.bg ~= "none" then
baseClass = baseClass .. " volume"
end
if args.diamond == "true" then
baseClass = baseClass .. " diamond"
end
if args.class then
baseClass = baseClass .. " " .. args.class
end
-- Table attributes
local style = "display: table; width: " .. (args.width or "100%") .. "; height: " .. (args.height or "100%") .. ";"
000
1:0
Template used on this page:
Return to Module:Row.