Module:Infobox: Difference between revisions

ArrowHead294 (talk | contribs)
m Undid revision 179860 by ArrowHead294 (talk)
Tag: Undo
ArrowHead294 (talk | contribs)
mNo edit summary
Line 1: Line 1:
local getArgs = require("Module:Arguments").getArgs
local getArgs = require("Module:Arguments").getArgs
local yesno = require("Module:Yesno")
local p = {}
local p = {}


Line 75: Line 76:
local adjacent_links = args["Adjacent Links"]
local adjacent_links = args["Adjacent Links"]
local rows = args["Rows"]
local rows = args["Rows"]
local debugg = yesno(args["debug"])
-- Start of infobox; outer div and start of table
-- Start of infobox; outer div and start of table
Line 97: Line 99:
infobox = infobox .. p.infobox_row(rows[i])
infobox = infobox .. p.infobox_row(rows[i])
end
end
infobox = infobox .. "|}</div>"
infobox = infobox .. "|}</div>"
return (debugg == true and "<syntaxhighlight lang=\"wikitext\">" .. infobox .. "</syntaxhighlight>" or infobox)
return infobox
end
end