Module:etymology: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 358: Line 358:
     }, "term")
     }, "term")
     if not args["nocat"] then categories = hydrate_categories(data["categories"], language, nil, args["newpos"]) end
     if not args["nocat"] then categories = hydrate_categories(data["categories"], language, nil, args["newpos"]) end
    mw.addWarning("Have you forgotten to use <code>{{root|" .. args[1] .. "|lnk-pro}}</code>? Remember to use it even in derived terms and compounds.")
     return format_etymology(out, categories)
     return format_etymology(out, categories)
end
end
Line 379: Line 380:
end
end
if not args["nocat"] then categories = hydrate_categories(data["categories"], language, nil, args["preposition"]) end
if not args["nocat"] then categories = hydrate_categories(data["categories"], language, nil, args["preposition"]) end
mw.addWarning("Have you forgotten to use <code>{{root|" .. args[1] .. "|lnk-pro}}</code>? Remember to use it even in derived terms and compounds.")
return format_etymology(out, categories)
return format_etymology(out, categories)
end
end
Line 399: Line 401:
     }, "term")
     }, "term")
     if not args["nocat"] then categories = hydrate_categories(data["categories"], language_to, language_from) end
     if not args["nocat"] then categories = hydrate_categories(data["categories"], language_to, language_from) end
    mw.addWarning("Have you forgotten to use <code>{{root|" .. args[1] .. "|lnk-pro}}</code>? Remember to use it even in derived terms and compounds.")
     return format_etymology(out, categories)
     return format_etymology(out, categories)
end
end
Line 463: Line 466:
         out = format_prefixed_text(template, data["text"], args["nocap"], data["preposition"]) .. out
         out = format_prefixed_text(template, data["text"], args["nocap"], data["preposition"]) .. out
     end
     end
    mw.addWarning("Have you forgotten to use <code>{{root|" .. args[1] .. "|lnk-pro}}</code>? Remember to use it even in derived terms and compounds.")
     return format_etymology(out, categories)
     return format_etymology(out, categories)
end
end

Navigation menu