Template:Error/doc

A helper template to display an error, generally to be used from inside other templates. Categorizes the page in Category:.

Usage
or

Error message to display. Will be wrapped in a span.
 * First unnamed parameter or text

Hover text.
 * title

Short string denoting the source of the error. If this parameter is provided, the page will be categorized in a "" category. Additionally, the span output tag will be extended to include a data-source attribute holding this parameter's value. This facilitates, for instance, easy access of errors from the same source via JavaScript or CSS.
 * from or source

Additional categories to categorize the page in, can be continued ad infinitum. Set $cate to n or no to prevent categorization altogether.
 * Second, third, ..., n-th unnamed parameter and cate, cate2, ..., cate&lt;n&gt;

Error handling
The output of this template is compatible with the #iferror: parser function, which can be used to catch and handle errors.