Module:Fontize

font_code = { ["EHE"] = { "Early High Elven", "0", "0"}, ["EHE0"] = { "Early High Elven", "Early High Elven alphabet", "Korai nemeself ábécé"}, ["HE"] = { "High Elven", "0"}, ["HE1"] = { "High Elven", "Classical High Elven alphabet", "Nemeself ábécé#Klasszikus nemeself"}, ["HE2"] = { "High Elven", "Middle High Elven alphabet", "Nemeself ábécé#Középnemeself"}, ["HE3"] = { "High Elven", "High Elven alphabet (contemporary)", "Nemeself ábécé#Nemeself"}, ["MET"] = { "High Elven", "Middle Etrandish alphabet", "Nemeself ábécé#Középetrandi"}, ["ET"] = { "High Elven", "Etrandish alphabet", "Nemeself ábécé#Etrandi"}, ["ETR"] = { "High Elven", "Etrancoasti alphabet", "Nemeself ábécé#Etrancoasti"}, ["WEA"] = { "High Elven", "Artaburran alphabet", "Nemeself ábécé#Erdőelf (Artaburro)"}, ["DELF"] = { "High Elven", "Dark Elven alphabet", "Nemeself ábécé#Sötételf"}, ["WE"] = { "Wood Elven", "Wood Elven cuneiforms", "Erdőelf ékírás"}, ["WE0"] = { "Wood Elven", "0", "0"}, ["WE2"] = { "Wood Elven", "Wood Elven cuneiforms#Archaic Wood Elven", "Erdőelf ékírás#Óerdőelf"}, ["WE3"] = { "Wood Elven", "Wood Elven cuneiforms#Classical Wood Elven", "Erdőelf ékírás#Óerdőelf"}, ["WE4"] = { "Wood Elven", "Wood Elven cuneiforms#Wood Elven (Dragoc)", "Erdőelf ékírás#Erdőelf (Dragoc)"}, ["HmnRns"] = { "Human Runes", "0", "0"}, ["PRT"] = { "Human Runes", "Human Runes#Proto-Human", "Emberi rúnák#Óemberi"}, ["OET"] = { "Human Runes", "Human Runes#Old Etrandish", "Emberi rúnák#Óetrandi"}, ["OERT"] = { "Human Runes", "Human Runes#Old Hulran", "Emberi rúnák#Óhulrai"}, ["LERT"] = { "Human Runes", "Human Runes#Late Hulran", "Emberi rúnák#Késő-Hulrai"}, ["ODW0"] = { "Old-Dwarven", 0, 0 }, ["ODW"] = { "Old-Dwarven", "Old Dwarven script", "Ótörp ábécé" } } --  function fontize(code,txt) if font_code[code][2] == "0" or font_code[code][2] == 0 then return "" .. txt .. " "   else return "" .. txt .. " " end end

function fontize_hun(code,txt) if font_code[code][3] == "0" or font_code[code][3] == 0 then return "" .. txt .. " "   else return "".. txt .. " " end end

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