Module:translations/egy
Appearance
- පහත දැක්වෙන උපදෙස්, Module:translations/egy/documentation හි පිහිටා ඇත. Module:translations/egy/documentation]]. [සංස්කරණය]
- ප්රයෝජනවත් සබැඳි: root page • root page’s subpages • සබැඳි • transclusions • testcases • sandbox
This module is used for the translation template {{t-egy}}
. It functions identically to Module:translations but with an addition parameter "h" to specify the hieroglyphic form.
local m_links = require("Module:links")
local export = {}
function export.show(frame)
local params = {
[1] = {required = true},
[2] = {list = true},
["h"] = {},
["alt"] = {},
["id"] = {},
["lit"] = {},
}
local args = require("Module:parameters").process(frame:getParent().args, params)
local terminfo = {
lang = require("Module:languages").getByCode("egy"),
tr = nil,
term = args[1],
alt = args["alt"],
id = args["id"],
genders = args[2],
lit = args["lit"],
}
local result = m_links.full_link(terminfo, "translation", true)
if args["h"] then
local hiero = frame:preprocess("{{egy-h|" .. args["h"] .. "}}")
result = hiero .. ' (' .. result .. ')'
end
return result
end
return export