Modul:Detect singular: Unterschied zwischen den Versionen

(treat all wikilinks as blank (i.e., singular))
(just use balanced bracket (html links will also get mashed out))
Zeile 20: Zeile 20:
end
end
s = tostring(s)
s = tostring(s)
s = mw.ustring.gsub(s,'%b[[]]','') -- delete all wikilinks
s = mw.ustring.gsub(s,'%b[]','') -- delete all wikilinks
if plainFind(s,'forcedetectsingular') then -- magic data string to return true
if plainFind(s,'forcedetectsingular') then -- magic data string to return true
return true
return true