Modul:Detect singular: Unterschied zwischen den Versionen
protect against bad wlink
(always count bullets) |
(protect against bad wlink) |
||
Zeile 60: | Zeile 60: | ||
local pluralForm = args[4] or "" | local pluralForm = args[4] or "" | ||
if args[5] then | if args[5] then | ||
singularForm = '[['.. | link = tostring(args[5]) | ||
pluralForm = '[['.. | singularForm = '[['..link..'|'..singularForm..']]' | ||
pluralForm = '[['..link..'|'..pluralForm..']]' | |||
end | end | ||
return args[2] and pluralForm or p._main(args) and singularForm or pluralForm | return args[2] and pluralForm or p._main(args) and singularForm or pluralForm |