Module:etymology: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 359: Line 359:
         nobold = true,
         nobold = true,
     }, "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"])
    mw.addWarning(root_reminder(args[1]))
end
     return format_etymology(out, categories)
     return format_etymology(out, categories)
end
end
Line 380: Line 383:
}, "term")
}, "term")
end
end
if not args["nocat"] then categories = hydrate_categories(data["categories"], language, nil, args["preposition"]) end
if not args["nocat"] then
mw.addWarning(root_reminder(args[1]))
categories = hydrate_categories(data["categories"], language, nil, args["preposition"])
mw.addWarning(root_reminder(args[1]))
end
return format_etymology(out, categories)
return format_etymology(out, categories)
end
end
Line 401: Line 406:
         nobold = true,
         nobold = true,
     }, "term")
     }, "term")
     if not args["nocat"] then categories = hydrate_categories(data["categories"], language_to, language_from) end
     if not args["nocat"] then
    mw.addWarning(root_reminder(args[1]))
    categories = hydrate_categories(data["categories"], language_to, language_from)
    mw.addWarning(root_reminder(args[1]))
    end
     return format_etymology(out, categories)
     return format_etymology(out, categories)
end
end
Line 467: Line 474:
         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(root_reminder(args[1]))
     if not args["nocat"] then mw.addWarning(root_reminder(args[1])) end
     return format_etymology(out, categories)
     return format_etymology(out, categories)
end
end