Module:Fontize

font_code = { ["EHE"] = { "Early High Elven", "0"}, ["EHE0"] = { "Early High Elven", "Early High Elven alphabet"}, ["HE"] = { "High Elven", "0"}, ["HE1"] = { "High Elven", "High Elven alphabet#Classical High Elven"}, ["HE2"] = { "High Elven", "High Elven alphabet#Middle High Elven"}, ["HE3"] = { "High Elven", "High Elven alphabet#High Elven"}, ["MET"] = { "High Elven", "High Elven alphabet#Middle Etrandish"}, ["ET"] = { "High Elven", "High Elven alphabet#Etrandish"}, ["ETR"] = { "High Elven", "High Elven alphabet#Etrancoasti"}, ["WEA"] = { "High Elven", "High Elven alphabet#Wood Elven (Artaburro)"}, ["DELF"] = { "High Elven", "High Elven alphabet#Dark Elven"}, ["WE"] = { "Wood Elven", "Wood Elven cuneiforms "}, ["WE0"] = { "Wood Elven", "0"}, ["WE2"] = { "Wood Elven", "Wood Elven cuneiforms#Archaic Wood Elven"}, ["WE3"] = { "Wood Elven", "Wood Elven cuneiforms#Classical Wood Elven"}, ["WE4"] = { "Wood Elven", "Wood Elven cuneiforms#Wood Elven (Dragoc)"}, ["HmnRns"] = { "Human Runes", "0"}, ["PRT"] = { "Human Runes", "Human Runes#Proto-Human"}, ["OET"] = { "Human Runes", "Human Runes#Old Etrandish"}, ["OERT"] = { "Human Runes", "Human Runes#Old Hulran"}, ["LERT"] = { "Human Runes", "Human Runes#Late Hulran"} }

function fontize(code,txt) if font_code[code][2] == "0" then return "" .. txt .. " "   else return "" .. txt .. " " end end

local p = {} function p.main(frame) return fontize(frame.args[1],frame.args[2]) end return p