Module:etymology: Difference between revisions

Added nolink to affix
No edit summary
(Added nolink to affix)
Line 200: Line 200:
     ["pos"] = {list = true, allow_holes = true},
     ["pos"] = {list = true, allow_holes = true},
     ["noaff"] = {list = true, allow_holes = true, type = "boolean"},
     ["noaff"] = {list = true, allow_holes = true, type = "boolean"},
    ["root"] = {alias_of = "noaff"},
    ["nolink"] = {list = true, allow_holes = true, type = "boolean"},
    ["hypothetical"] = {list = true, allow_holes = true, type = "boolean"},
    ["hypo"] = {alias_of = "noaff"},
     ["notext"] = {type = "boolean"},
     ["notext"] = {type = "boolean"},
     ["nocap"] = {type = "boolean"},
     ["nocap"] = {type = "boolean"},
Line 431: Line 435:
             end
             end
         end
         end
         table.insert(pre_out, m_links.full_link({
         local i_out
            term = i_term,
        if args["nolink"][i] or i_args["nolink"] then
            language = language_from or language_to,
        i_out = i_term
            alt = args["alt"][i] or i_args["alt"],
        else
            gloss = args["t"][i] or i_args["t"],
        i_out = m_links.full_link({
            pos = args["pos"][i] or i_args["pos"],
            term = i_term,
            anchor = args["anchor"][i] or i_args["anchor"] or i_args["a"],
            language = language_from or language_to,
            showlanguage = (language_from and true),
            alt = args["alt"][i] or i_args["alt"],
            nobold = true,
            gloss = args["t"][i] or i_args["t"],
        }, "term"))
            pos = args["pos"][i] or i_args["pos"],
            anchor = args["anchor"][i] or i_args["anchor"] or i_args["a"],
            showlanguage = (language_from and true),
            nobold = true,
        }, "term")
        end
        table.insert(pre_out, i_out)
     end
     end
     if (not args["nocat"]) and (n_parts > 1 and n_affixes == 0) then
     if (not args["nocat"]) and (n_parts > 1 and n_affixes == 0) then