Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Format link: Difference between revisions

From MassiveCraft Wiki
Avoid Lua erroring when we run out of expensive parser function calls
 
starcitizentools>Alistair3149
Sync with upstream
Line 1: Line 1:
-- Imported from: https://en.wikipedia.org/wiki/Module:Format_link
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Format link
-- Format link
Line 72: Line 74:
section = postHash
section = postHash
end
end
 
return {
return {
link = link,
link = link,
Line 99: Line 101:
mError = require('Module:Error')
mError = require('Module:Error')
return mError.error{message =
return mError.error{message =
'Error: no link or target specified! ([[' .. target .. '#Errors|help]])'
'Error: no link or target specified! ([[' .. target .. '#Errors|help]])'
}
}
end
end
Line 175: Line 177:
end
end
end
end
 
-- Format the result as a link
-- Format the result as a link
if parsed.link == display then
if parsed.link == display then