<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tiffa.net/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AErrorJA%2Fdoc</id>
	<title>Template:ErrorJA/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tiffa.net/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AErrorJA%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.tiffa.net/w/index.php?title=Template:ErrorJA/doc&amp;action=history"/>
	<updated>2026-04-14T10:41:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.tiffa.net/w/index.php?title=Template:ErrorJA/doc&amp;diff=58&amp;oldid=prev</id>
		<title>imported&gt;Fire at 12:29, 29 October 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.tiffa.net/w/index.php?title=Template:ErrorJA/doc&amp;diff=58&amp;oldid=prev"/>
		<updated>2022-10-29T12:29:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&amp;lt;includeonly&amp;gt;&lt;br /&gt;
{{lua|Module:Error}}&amp;lt;/includeonly&amp;gt;&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;
* {{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;
=== Template data ===&lt;br /&gt;
&amp;lt;TemplateData&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
        &amp;quot;description&amp;quot;: &amp;quot;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)&amp;quot;,&lt;br /&gt;
        &amp;quot;params&amp;quot;: {&lt;br /&gt;
                &amp;quot;1&amp;quot;: {&lt;br /&gt;
                        &amp;quot;label&amp;quot;: &amp;quot;Message&amp;quot;,&lt;br /&gt;
                        &amp;quot;description&amp;quot;: &amp;quot;Error message text in red&amp;quot;,&lt;br /&gt;
                        &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
                        &amp;quot;required&amp;quot;: false&lt;br /&gt;
                },&lt;br /&gt;
                &amp;quot;tag&amp;quot;: {&lt;br /&gt;
                        &amp;quot;label&amp;quot;: &amp;quot;Tag&amp;quot;,&lt;br /&gt;
                        &amp;quot;description&amp;quot;: &amp;quot;The tag to contain the error message; will only accept span, div, p, and strong, since those are the only tags recognized by the #iferror parser function. It defaults to strong, the tag generated e.g. by #expre&amp;quot;,&lt;br /&gt;
                        &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
                        &amp;quot;default&amp;quot;: &amp;quot;strong&amp;quot;,&lt;br /&gt;
                        &amp;quot;required&amp;quot;: false&lt;br /&gt;
                }&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/TemplateData&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
* [[Template:Formatting error]]&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:メタテンプレート]]&lt;br /&gt;
[[commons:Template:Error]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Fire</name></author>
	</entry>
</feed>