Module:etymology: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 217: Line 217:
         local language_from = nil
         local language_from = nil
         if args["l"][i] then language_from = m_languages.get_by_code(args["l"][i]) end
         if args["l"][i] then language_from = m_languages.get_by_code(args["l"][i]) end
        local cite_term = term
        if (language_from and language_from.proto) or ((not language_from) and language_to.proto) then cite_term = "*" .. cite_term end
         if not args["nocat"] then
         if not args["nocat"] then
             if args["noaff"][i] then
             if args["noaff"][i] then
                 --cool, this is a marked non-affix, don't let it be classified as one!
                 --cool, this is a marked non-affix, don't let it be classified as one!
             elseif is_infix(term) then
             elseif is_infix(term) then
                 table.insert(categories, language_to.name .. " terms infixed with " .. term)
                 table.insert(categories, language_to.name .. " terms infixed with " .. cite_term)
                 n_affixes = n_affixes + 1
                 n_affixes = n_affixes + 1
             elseif is_prefix(term) then
             elseif is_prefix(term) then
                 table.insert(categories, language_to.name .. " terms prefixed with " .. term)
                 table.insert(categories, language_to.name .. " terms prefixed with " .. cite_term)
                 n_affixes = n_affixes + 1
                 n_affixes = n_affixes + 1
             elseif is_suffix(term) then
             elseif is_suffix(term) then
                 table.insert(categories, language_to.name .. " terms suffixed with " .. term)
                 table.insert(categories, language_to.name .. " terms suffixed with " .. cite_term)
                 n_affixes = n_affixes + 1
                 n_affixes = n_affixes + 1
             end
             end

Navigation menu