<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://www.verzauberte-welten.de/index.php?action=history&amp;feed=atom&amp;title=Vorlage%3AError%2Fdoc</id>
	<title>Vorlage:Error/doc - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://www.verzauberte-welten.de/index.php?action=history&amp;feed=atom&amp;title=Vorlage%3AError%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Vorlage:Error/doc&amp;action=history"/>
	<updated>2026-04-05T22:18:35Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Verzauberte Welten e.V.</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://www.verzauberte-welten.de/index.php?title=Vorlage:Error/doc&amp;diff=121&amp;oldid=prev</id>
		<title>mw&gt;Oetterer am 3. Februar 2015 um 14:26 Uhr</title>
		<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Vorlage:Error/doc&amp;diff=121&amp;oldid=prev"/>
		<updated>2015-02-03T14:26:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{lua|Module:Error}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This meta template returns a ''state of error'' (recognized as such by a wiki [[wpen:Help:Parser function|parser function]]), and optionally an ''error-message text'' in red (visible for the user). It is used by other templates to signal an error, for example invalid input, which can then either be displayed to the editor or caught and handled by other templates.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
* {{tlx|error|An exemplary error}} → {{error|An exemplary error}}&lt;br /&gt;
* {{tlx|error|message{{=}}An exemplary error}} → {{error|message=An exemplary error}}&lt;br /&gt;
* Compare, used in a Parser Function: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#expr:Foo}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{#expr:Foo}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#iferror:{{error|Foo}} | Y | N }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{#iferror:{{error|Foo}} | Y | N }}&lt;br /&gt;
=== Tag option ===&lt;br /&gt;
The tag to contain the error message can be given through the &amp;lt;code&amp;gt;tag&amp;lt;/code&amp;gt; parameter, but it will only accept &amp;lt;code&amp;gt;span&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;div&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;strong&amp;lt;/code&amp;gt;, since those are the only tags recognized by the &amp;lt;code&amp;gt;#iferror&amp;lt;/code&amp;gt; parser function. It defaults to &amp;lt;code&amp;gt;strong&amp;lt;/code&amp;gt;, the tag generated e.g. by &amp;lt;code&amp;gt;#expre&amp;lt;/code&amp;gt;. To prevent &amp;lt;code&amp;gt;strong&amp;lt;/code&amp;gt; message, use one of the other tags, e.g. &amp;lt;code&amp;gt;tag=span&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* ABC {{tlx|error|An exemplary error demo no tag (default)}} XYZ → ABC {{error|An exemplary error demo no tag (default)}} XYZ&lt;br /&gt;
* ABC {{tlx|error|An exemplary error demo span|tag{{=}}span}} XYZ → ABC {{error|An exemplary error demo span|tag=span}} XYZ&lt;br /&gt;
* ABC {{tlx|error|An exemplary error demo div|tag{{=}}div}} XYZ → ABC {{error|An exemplary error demo div|tag=div}} XYZ&lt;br /&gt;
* ABC {{tlx|error|An exemplary error demo p|tag{{=}}p}} XYZ → ABC {{error|An exemplary error demo p|tag=p}} XYZ&lt;br /&gt;
* ABC {{tlx|error|An exemplary error demo strong|tag{{=}}strong}} XYZ → ABC {{error|An exemplary error demo strong|tag=strong}} XYZ&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
* [[mw:Help:Extension:ParserFunctions##iferror:]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Metatemplates]]&lt;br /&gt;
[[Category:Text manipulation templates]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>mw&gt;Oetterer</name></author>
	</entry>
</feed>