Template:Error: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
create
 
convert to module
 
Line 1: Line 1:
<includeonly><span class="error">{{#if:{{{1|}}}|{{{1}}}|An error occurred{{#if:{{{type|}}}|<nowiki> </nowiki>({{{type}}})}}}}</span>[[Category:Pages with {{#if:{{{type|}}}|{{lc:{{{type}}}}}|template}} errors]]
<includeonly>{{#invoke:error|main}}</includeonly><noinclude>{{documentation}}</noinclude>
</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 10:56, 21 October 2025

Documentation [edit]

This template should be used any time a template displays an error message. It formats the message and adds the page to the appropriate category. This template uses Lua code at Module:Error.

Parameters

  • unnamed parameter: the text of the error. If omitted, a generic error message will be used, including the type if provided.
  • type: this determines the category added to the page; by default it is "template".

The above documentation is transcluded from Template:Error/doc.