|
|
Line 413: |
Line 413: |
| local term | | local term |
| | | |
| if derivtype == "PIE root" then | | lang = fetch_lang(args) |
| lang = m_languages.getByCode("ine-pro")
| | term = if_not_empty(args[2] or args["head"]) |
| term = if_not_empty(args[1] or args["head"])
| |
| | |
| if term then
| |
| term = "*" .. term .. "-"
| |
| end
| |
| else | |
| lang = fetch_lang(args)
| |
| term = if_not_empty(args[2] or args["head"])
| |
| end
| |
| | | |
| local id = if_not_empty(args["id"]) | | local id = if_not_empty(args["id"]) |
Line 439: |
Line 430: |
| | | |
| if not term then | | if not term then |
| if lang:getType() == "reconstructed" then | | term = mw.title.getCurrentTitle().subpageText |
| term = "*" .. mw.title.getCurrentTitle().subpageText
| |
| elseif lang:getType() == "appendix-constructed" then
| |
| term = mw.title.getCurrentTitle().subpageText
| |
| elseif mw.title.getCurrentTitle().nsText == "Reconstruction" then
| |
| term = "*" .. mw.title.getCurrentTitle().subpageText
| |
| else
| |
| term = mw.title.getCurrentTitle().subpageText
| |
| end
| |
| end | | end |
| | | |
| local category = nil | | local category = nil |
|
| |
| if derivtype == "PIE root" then
| |
| return frame:callParserFunction{
| |
| name = "#categorytree",
| |
| args = {
| |
| "Terms derived from the Proto-Indo-European root " .. term .. (id and " (" .. id .. ")" or ""),
| |
| depth = 0,
| |
| class = "\"derivedterms\"",
| |
| mode = mode,
| |
| }
| |
| }
| |
| end
| |
| | | |
| if (derivtype == "compound" and pos == nil) then | | if (derivtype == "compound" and pos == nil) then |
Line 477: |
Line 448: |
| category, | | category, |
| depth = 0, | | depth = 0, |
| class = "\"derivedterms" .. (sc and " " .. sc:getCode() or "") .. "\"",
| | namespaces = "-", |
| namespaces = "-" .. (mw.title.getCurrentTitle().nsText == "Reconstruction" and " Reconstruction" or ""), | |
| } | | } |
| } | | } |