TemplateDoc:Internal/Error

From Halopedia, the Halo wiki

This is a template documentation page!
You cannot edit the associated template from here. To do so, please see Template:Internal/Error instead!

Error templates[edit]

General template errors[edit]

Parameter errors[edit]

IMPORTANT: If you intend to create a new error template, please make sure to also create its respective category page and make that category a subcategory of Category:Pages containing template errors. This makes it easier to find and fix template errors on pages!

Usage[edit]

This template is used to signal unrecoverable template errors to the user. Templates should only use this or another error template when there is no possible way to give a logical output from a given set of parameters. An error message will be displayed on the article itself, and the editor will also be notified via a message at the top of the page in the edit preview. The page will automatically be added to a category, so that the error can be found and fixed by other users.

Under normal circumstances, templates should use one of the other, more specific error templates to signify errors, so that the error message, type and category is more specific.

IMPORTANT: Errors should only be used in cases where the issue cannot be recovered from, and the template is unable to display in a sensible manner on the page! If the issue is more minor and the template can still function, please use Template:Internal/Warning instead, to give the editor a more less warning and avoid error messages appearing in the final article.

Simplified Version Full Version
{{Internal/Error
|
}}
{{Internal/Error
|Name=
|Category=
|Template=
|
}}

Parameters[edit]

Field Name Field Aliases Optional or Required? Description Example
1 (Unnamed field) Message Required The message to present to the user. Unrecognised acronym: "banana"!
Type - Optional The type of error. Invalid parameter
Catgory - Optional The category to insert pages into if they contain an error of this type. Pages containing invalid template parameter errors
Template - Recommended The name of the template in which the error has occurred. Acronym

Error states[edit]

This template will always throw an error - that is its purpose.

Examples[edit]

Here are some examples of how to use this template:

Wiki Markup Result
{{Internal/Error}}
TEMPLATE ERROR: There was an error with this template. Are the parameters correct?
{{Internal/Error|Unrecognised acronym: "banana"!|Type=Invalid parameter|Category=Pages containing invalid template parameter errors}}

INVALID PARAMETER ERROR: Unrecognised acronym: "banana"!