<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limswiki.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://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AError%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:Error/doc&amp;action=history"/>
	<updated>2026-04-04T18:45:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://www.limswiki.org/index.php?title=Template:Error/doc&amp;diff=2179&amp;oldid=prev</id>
		<title>Shawndouglas: Created template to help with Categories.</title>
		<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:Error/doc&amp;diff=2179&amp;oldid=prev"/>
		<updated>2011-06-04T23:49:04Z</updated>

		<summary type="html">&lt;p&gt;Created template to help with Categories.&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;
&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 ''state of error'' (recognized as such by a wiki parser function), and optionally an ''error-message text'' 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;
&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;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Shawndouglas</name></author>
	</entry>
</feed>