Modul:Detect singular: Unterschied zwischen den Versionen

don't blank the wikilink, replace with string of uppercase
(oops, forgot to return)
(don't blank the wikilink, replace with string of uppercase)
Zeile 21: Zeile 21:
end
end
s = tostring(s)
s = tostring(s)
s = mw.ustring.gsub(s,'%b[]','') -- delete all wikilinks
s = mw.ustring.gsub(s,'%b[]','WIKILINK') -- replace all wikilinks with string
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
Anonymer Benutzer