Open main menu
Home
Random
Log in
Settings
About Railway Operation Simulator Wiki
Disclaimers
Railway Operation Simulator Wiki
Search
Changes
← 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