<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.freecapitalists.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AError%2Fdoc</id>
	<title>Template:Error/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.freecapitalists.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AError%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.freecapitalists.org/index.php?title=Template:Error/doc&amp;action=history"/>
	<updated>2026-08-16T09:19:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.freecapitalists.org/index.php?title=Template:Error/doc&amp;diff=14492&amp;oldid=prev</id>
		<title>John James: Created page with &quot;{{Documentation subpage}} {{Wikipedia text|Template:Error/doc|409762418}} &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;  The template returns a &#039;&#039;state...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.freecapitalists.org/index.php?title=Template:Error/doc&amp;diff=14492&amp;oldid=prev"/>
		<updated>2011-04-27T13:23:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{Wikipedia text|Template:Error/doc|409762418}} &amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;  The template returns a &amp;#039;&amp;#039;state...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{Wikipedia text|Template:Error/doc|409762418}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The template returns a &amp;#039;&amp;#039;state of error&amp;#039;&amp;#039; (recognized as such by a wiki [[Help:Parser function|parser function]]), and optionally an &amp;#039;&amp;#039;error-message text&amp;#039;&amp;#039; in red (visible for the user).&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
* {{tlx|error|An exemplary error}} → {{error|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 &amp;lt;nowiki&amp;gt;{{error|An exemplary error demo span|tag=span}}&amp;lt;/nowiki&amp;gt; XYZ → ABC {{error|An exemplary error demo span|tag=span}} XYZ&lt;br /&gt;
* ABC &amp;lt;nowiki&amp;gt;{{error|An exemplary error demo div|tag=div}}&amp;lt;/nowiki&amp;gt; XYZ → ABC {{error|An exemplary error demo div|tag=div}} XYZ&lt;br /&gt;
* ABC &amp;lt;nowiki&amp;gt;{{error|An exemplary error demo p|tag=p}}&amp;lt;/nowiki&amp;gt; XYZ → ABC {{error|An exemplary error demo p|tag=p}} XYZ&lt;br /&gt;
* ABC &amp;lt;nowiki&amp;gt;{{error|An exemplary error demo strong|tag=strong}}&amp;lt;/nowiki&amp;gt; XYZ → ABC {{error|An exemplary error demo strong|tag=strong}} XYZ&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
* [[Help:Parser function]]&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:Wikipedia metatemplates|{{PAGENAME}}]]&lt;br /&gt;
[[commons:Template:Error]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>John James</name></author>
	</entry>
</feed>