Module:Sidebar: Difference between revisions
Created page with "local getArgs = require("Module:Arguments").getArgs local p = {} -- Not to be confused with the infobox; the sidebar only has one column and is a -- different color. Some infobox-ish templates use that style -- Not to be confused with the sidebox either. -- TODO: add float option? -- "Main" function function p._sidebar(args) local title = args["Title" ] local header = args["Header"] local rows = args["Rows" ] local footer = args["Footer"] -- Helper functi..." |
mNo edit summary |
||
| Line 72: | Line 72: | ||
local rows = {} | local rows = {} | ||
for i = 1, 20 do | for i = 1, 20 do | ||
local key = string.format("Row %d") | local key = string.format("Row %d", i) | ||
local row = args[key] | local row = args[key] | ||
if row then table.insert(rows, row) end | if row then table.insert(rows, row) end | ||