Changes
Jump to navigation
Jump to search
← Older edit
Module:Format link
(view source)
Revision as of 20:22, 25 January 2023
88 bytes added
,
20:22, 25 January 2023
m
1 revision imported
Line 168:
Line 168:
local title = nil
local title = nil
if parsed.page then title = mw.title.new(parsed.page) end
if parsed.page then title = mw.title.new(parsed.page) end
−
if title and (not title.isExternal)
and
(
not
title.exists) then
+
if title and (not title.isExternal)
then
−
category = mw.ustring.format('[[Category:%s]]', catMissing)
+
local success, exists = pcall(function
(
) return
title.exists
end
)
+
if success and not exists
then
+
category = mw.ustring.format('[[Category:%s]]', catMissing)
+
end
end
end
end
end
Krizar
confirmed, superuser,
Administrators
838
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Module
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
About
Main page
Recent changes
Random page
WikiData entry
WineDB entry
IGDB entry
Chocolatey Package
Help about MediaWiki
Tools
Special pages
Printable version