10,731
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
local m_parameters = require("Module:parameters") | local m_parameters = require("Module:parameters") | ||
local plaenk_alt = mw.loadData("Module:lnk-pro-morph/data").alt | local plaenk_alt = mw.loadData("Module:lnk-pro-morph/data").alt | ||
local root_reminder | |||
local function root_reminder(code) return "Have you forgotten to use <code><nowiki>{{root|" .. code .. "|lnk-pro}}</nowiki></code>? Remember to use it even in derived terms and compounds." end | |||
local new_pos_data = { | local new_pos_data = { | ||
Line 359: | Line 360: | ||
}, "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(root_reminder) | mw.addWarning(root_reminder(args[1])) | ||
return format_etymology(out, categories) | return format_etymology(out, categories) | ||
end | end | ||
Line 381: | Line 382: | ||
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(root_reminder) | mw.addWarning(root_reminder(args[1])) | ||
return format_etymology(out, categories) | return format_etymology(out, categories) | ||
end | end | ||
Line 402: | Line 403: | ||
}, "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(root_reminder) | mw.addWarning(root_reminder(args[1])) | ||
return format_etymology(out, categories) | return format_etymology(out, categories) | ||
end | end | ||
Line 467: | Line 468: | ||
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) | mw.addWarning(root_reminder(args[1])) | ||
return format_etymology(out, categories) | return format_etymology(out, categories) | ||
end | end |