24,538 ARTICLES
ON THIS WIKI

Module:Infobox/Flower

< Module:Infobox

Documentation for this module may be created at Module:Infobox/Flower/doc

local p = {}

local g = require("Module:Common")
local box = require("Module:Infobox")
local invItem = require("Module:Infobox/InvItem")

function p.main(frame)
	local frame, args = g.getFrameAndArgs(frame)
	local l = ""
	
	if g.isGiven(args.primary) then
		l = l .. box.row("Primary Color", args.primary)
	end
	
	if g.isGiven(args.secondary) then
		l = l .. box.row("Secondary Color", args.secondary)
	end
	
	if g.isGiven(args.stem) then
		l = l .. box.row("Stem Color", args.stem)
	end
	
	if g.isGiven(args.lifespan) then
		l = l .. box.row("Lifespan", args.lifespan)
	end
	
	if g.isGiven(args.nectar) then
		l = l .. box.row("Nectar", args.nectar)
	end
	
	if g.isGiven(args.ph) then
		l = l .. box.row("PH Tolerance", args.ph)
	end
	
	if g.isGiven(args.moist) then
		l = l .. box.row("Moisture Tolerance", args.moist)
	end
	
	if g.isGiven(args.temp) then
		l = l .. box.row("Temperature Tolerance", args.temp)
	end
	
	if g.isGiven(args.rows) then
		l = l .. args.rows
	end
	
	args.rows = l
	frame.args = args
	
	return invItem.main(frame)
end

return p