మాడ్యూల్:Delink: కూర్పుల మధ్య తేడాలు

Content deleted Content added
better decoding support
Replace hardcoded namespaces with namespace lookups
పంక్తి 57:
-- Check for categories, interwikis, and files.
local colonprefix = mw.ustring.match(result, "%[%[(.-):.*%]%]") or "" -- Get the text before the first colon.
local ns = mw.site.namespaces[colonprefix] -- see if this is a known namespace
if mw.language.isKnownLanguageTag(colonprefix)
or ( ns and ( ns.canonicalName == "File" or ns.canonicalName == "Category" ) ) then
or mw.ustring.match(colonprefix, "^[Cc]ategory$")
or mw.ustring.match(colonprefix, "^[Ff]ile$")
or mw.ustring.match(colonprefix, "^[Ii]mage$") then
return ""
end
"https://te.wikipedia.org/wiki/మాడ్యూల్:Delink" నుండి వెలికితీశారు