Documentation for this module may be created at Module:Sandbox/Redlead07/Fonts/doc

local p = {}

function p.test(frame)
	text, format, color = frame.args.text or "Invalid", frame.args.format or "", frame.args.color or "color"
	local formats = string.match(format, "BI") or 
	string.match(format, "B") or string.match(format, "I") or ""
	local txt = ""
	if text == "Invalid" and formats == "" then
		local txt2 = "'''"..text.."'''"
		txt = "<span style=color:red>"..txt2.."</span>"
	end	
	if formats == "" and text ~= "Invalid" then
		local txt2 = text
		txt = "<span style=color:"..color..">"..txt2.."</span>"
	end
	if formats == "BI" then
		local txt2 = "'''''"..text.."'''''"
		txt = "<span style=color:"..color..">"..txt2.."</span>"
	end
	if formats == "B" then
		local txt2 = "'''"..text.."'''"
		txt = "<span style=color:"..color..">"..txt2.."</span>"
	end
	if formats == "I" then
		local txt2 = "''"..text.."''"
		txt = "<span style=color:"..color..">"..txt2.."</span>"
	end
		
	return txt.."<br>"
end	

return p