Modul:Detect singular: Unterschied zwischen den Versionen
treat all wikilinks as blank (i.e., singular)
("list" should be either hlist, or an explicit <li> element) |
(treat all wikilinks as blank (i.e., singular)) |
||
Zeile 20: | Zeile 20: | ||
end | end | ||
s = tostring(s) | s = tostring(s) | ||
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 |