Module:IPA2

lang_code = { ["Early High Elven"] = {"Archaic High Elven language", "Archaic High Elven", "EHE0"}, ["Archaic High Elven"] = {"Archaic High Elven language", "Archaic High Elven", "EHE0"}, ["Classical High Elven"] = {}, ["Middle High Elven"] = {}, ["High Elven"] = {}, ["Proto-Human"] = {}, ["Old Etrandish"] = {}, ["Middle Etrandish"] = {}, ["Etrandish"] = {}, ["Classical Hulran"] = {}, ["Old Hulran"] = {}, ["Late Hulran"] = {}, ["Etrancoasti"] = {}, ["Archaic Wood Elven"] = {}, ["Classical Wood Elven"] = {}, ["Wood Elven Dragoc"] = {}, ["Wood Elven Artaburro"] = {}, ["Wood Elven"] = {}, ["Dark Elven"] = {} }

function linguize(lang,txt,ipa,txt2,snd) local base_string = "" if lang == "Wood Elven" then base_string = base_string .. " Dragoc:  ; [[Artaburro:  ; IPA: " .. lang_code[lang][2] .. ":" ..  " ; IPA: [["    end    if snd ~= nil and snd ~= 0 then        base_string = base_string .. snd    else        base_string = base_string .. lang_code[lang][1]    end    base_string = base_string .. "|"    return base_string end

local p = {} function p.main(frame) return lignuize(frame.args[1],frame.args[2],frame.args[3],frame.args["snd"]) end return p