Difference between revisions of "Error"

(Added description and parameters)
m (Removed text parameter for errors)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
<div style="color: red; font-weight: bold;">
 
<div style="color: red; font-weight: bold;">
{{{text}}}
+
{{{1}}}
 
</div></includeonly>
 
</div></includeonly>
 
<noinclude>
 
<noinclude>
Line 8: Line 8:
  
 
== Parameters ==
 
== Parameters ==
{{bullet}} '''text''': The content of the error message.
+
{{bullet}} '''(unnamed parameter)''': The content of the error message.
  
 
== Usage ==
 
== Usage ==
<pre>{{error|text=Example}}</pre>
+
<pre>{{error|Example}}</pre>
 
</noinclude>
 
</noinclude>

Revision as of 14:16, 16 January 2022


Description

This template displays an error message in red (visible for the user). It is used by other templates to signify an error.

Parameters

(unnamed parameter): The content of the error message.

Usage

{{error|Example}}