Module:etymology: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 174: Line 174:
     local data, args = no_term_data[template], m_parameters.process(frame:getParent().args, no_term_params)
     local data, args = no_term_data[template], m_parameters.process(frame:getParent().args, no_term_params)
     local out, categories = "", {}
     local out, categories = "", {}
     if not args["nocat"] then categories = data["categories"] end
    local language = m_languages.get_by_code(args[1])
     if not args["nocat"] then categories = export.hydrate_categories(data["categories"], language) end
     if not args["notext"] then out = export.format_glossary(template, data["glossary"], args["nocap"]) end
     if not args["notext"] then out = export.format_glossary(template, data["glossary"], args["nocap"]) end
     return export.format_etymology(out, categories)
     return export.format_etymology(out, categories)

Navigation menu