Modul:Detect singular: Unterschied zwischen den Versionen
check for "list of" in wikilink, if so, then plural
(remove wikimarkup before performing last 4 plural tests) |
(check for "list of" in wikilink, if so, then plural) |
||
Zeile 51: | Zeile 51: | ||
end | end | ||
if numListItems > 1 then | if numListItems > 1 then | ||
return false | |||
end | |||
-- if "list of" occurs inside of wlink, then it's plural | |||
if mw.ustring.find(s:lower(), '%[%[[^%]]*list of[^%]]+%]%]') then | |||
return false | return false | ||
end | end |