This is the documentation page for Module:FileExists.
It contains usage information, categories and other content that is not part of the original module page.
This module provides a "safe" version of mw.title
's .fileExists
method, that does not raise an error when the expensive parser function limit is exceeded.
Usage[]
local fileExists = require('Module:FileExists')
-- ...
local file
if fileExists('File:My example file.png') then
file = 'File:My example file.png'
end