మాడ్యూల్: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
return ""
end
|