Zelda Wiki:Errors
Anerror can occur on a wiki page when atemplate is used incorrectly.
Types of Errors
Validation Errors
The most common type of error, a validation error occurs when the template itself detects that it is being used incorrectly—in other words, it's a kind of error that the makers of the template anticipated.
These errors useModule:Error to generate an error message on the page. Additional details about the error, including information on how to fix it, can be seen by editors when previewing the page.
Show previews without reloading the pagepreferences is disabled. This information can also be viewed in the Lua logs at the very bottom of the preview page beneath the editing area, under "parser profiling data." Unfortunately, the error details cannot be viewed when using VisualEditor, even in source mode. To switch to the regular source editor, go toSpecial:Preferences,Editing tab, and from thePreferred editor dropdown selectSource editor.Validation errors should cause the page to be added to one of the following categories:
- Category:Articles using invalid arguments in template calls
- Category:Articles using unknown parameters in template calls
- Category:Articles using deprecated parameters in template calls
Warnings
Warnings are a type of validation error that are only visible to editors when previewing the page. Generally, errors are only shown to readers when hiding them would confuse or mislead.
Script Errors
Ascript error may occur as the result of a defect in a template's Lua programming, the problem lying not with how the template is used but how it's built. While these kinds of errorscan be thrown itentionally with theerror function, Zelda Wiki encourages its module developers to useModule:Error instead. This allows critical bugs to be tracked separately from foreseen (and usually minor) validation errors.
Pages with script errors are automatically added toCategory:Pages with script errors by MediaWiki.
MediaWiki Errors
MediaWiki may report errors when it's being used incorrectly. These errors may be displayed on the page or as a page preview warning. These errors are automatically added to built-in categories such as: