Module:Error/doc: Difference between revisions
Jump to navigation
Jump to search
create |
(No difference)
|
Latest revision as of 10:26, 21 October 2025
This page contains the documentation for Module:Error. It includes information about the module, such as usage and categories, and is not displayed when using the module itself.
This module is used to display error messages in a consistent way and categorize pages that have them. See Template:Error for how to use this template in wikitext. For modules, see below.
Usage
local err = require('Module:Error').call
return err('error message', 'type')
This displays: error message
Parameters
- The first parameter is the text of the message to display. Must be a string. Highly recommended; the default message just says an error occurred in a script.
- The second parameter is the type of error, which determines the categorization. Must be a string. The default is "script". This will add the page to Category:Pages with script errors.