Module:languages: Difference between revisions
Jump to navigation
Jump to search
(Created page with "local export = {} local languages = { bal = {name = "Balavic", code = "bal"}, kil = {name = "Kilitic", code = "kil"}, rad = {name = "Radestrian", code = "rad"}, lfv = {name = "Lafevian", code = "lfv"}, } function export.getByCode(frame) local code = frame.args[1] local want = frame.args[2] return languages[code][want] end return export") |
No edit summary |
||
Line 1: | Line 1: | ||
local export = {} | local export = {} | ||
local languages = { | local languages = { | ||
-- Proto-Laenkean | |||
lae_pro = {name = "Proto-Laenkean", code = "lae-pro"}, | |||
-- Balavic | |||
bal = {name = "Balavic", code = "bal"}, | bal = {name = "Balavic", code = "bal"}, | ||
-- Kilitic | |||
kil = {name = "Kilitic", code = "kil"}, | kil = {name = "Kilitic", code = "kil"}, | ||
-- Laefevian | |||
lfv_pro = {name = "Proto-Laefevic", code = "lfv-pro"}, | |||
lfv = {name = "Lafevian", code = "lfv"}, | |||
-- Radestrian | |||
rad_pro = {name = "Proto-Radic", code = "rad-pro"}, | |||
rad = {name = "Radestrian", code = "rad"}, | rad = {name = "Radestrian", code = "rad"}, | ||
-- Riyan | |||
ryn_o = {name = "Old Riyan", code = "ryn-o"}, | |||
ryn_m = {name = "Middle Riyan", code = "ryn-m"}, | |||
ryn = {name = "Riyan", code = "ryn"} | |||
} | } | ||
Revision as of 11:01, 5 August 2023
local export = {}
local languages = {
-- Proto-Laenkean
lae_pro = {name = "Proto-Laenkean", code = "lae-pro"},
-- Balavic
bal = {name = "Balavic", code = "bal"},
-- Kilitic
kil = {name = "Kilitic", code = "kil"},
-- Laefevian
lfv_pro = {name = "Proto-Laefevic", code = "lfv-pro"},
lfv = {name = "Lafevian", code = "lfv"},
-- Radestrian
rad_pro = {name = "Proto-Radic", code = "rad-pro"},
rad = {name = "Radestrian", code = "rad"},
-- Riyan
ryn_o = {name = "Old Riyan", code = "ryn-o"},
ryn_m = {name = "Middle Riyan", code = "ryn-m"},
ryn = {name = "Riyan", code = "ryn"}
}
function export.getByCode(frame)
local code = frame.args[1]
local want = frame.args[2]
return languages[code][want]
end
return export