<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3APars%2Fdoc</id>
	<title>Template:Pars/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3APars%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Pars/doc&amp;action=history"/>
	<updated>2026-04-03T17:51:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:Pars/doc&amp;diff=26670&amp;oldid=prev</id>
		<title>Wikipedia&gt;Jonesey95: comment deliberate error</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Pars/doc&amp;diff=26670&amp;oldid=prev"/>
		<updated>2021-08-14T15:28:42Z</updated>

		<summary type="html">&lt;p&gt;comment deliberate error&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;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;{{pars|s=200%|Content-inside-parentheses}}&amp;lt;/nowiki&amp;gt; will&lt;br /&gt;
::(1) Places (  ) around the content: (Content-inside-parentheses)&lt;br /&gt;
::(2) scales their size to 200%&lt;br /&gt;
::* You can also use the units px/em/pt/%&lt;br /&gt;
::(3) Add small spaces immediately after ( and immediately before )&lt;br /&gt;
:{{pars|s=200%|Content-inside-parentheses}}&lt;br /&gt;
&lt;br /&gt;
This template may be used to enclose text between two parentheses. &lt;br /&gt;
It adds padding (of width 0.1 em) on each side inside the parentheses. &lt;br /&gt;
This template has the following parameters&lt;br /&gt;
* 1 (positional parameter) - the text that goes inside of the parentheses. &lt;br /&gt;
* s or 2 - &amp;quot;s&amp;quot; stands for &amp;quot;size&amp;quot;. size=SIZE（px/em/pt/%）  If s=100% then the size of the parentheses is not changed (i.e. the parentheses have their usual size). If s=200% (resp. s=50%) then the parentheses are twice (resp. half) their usual size. &lt;br /&gt;
** You may use the positional parameter 2 instead of s (e.g. you may use 2=50% in place of s=50%).&lt;br /&gt;
** If neither the parameter s nor 2 is assigned a value then the size of the parentheses is not changed (i.e. the parentheses have their usual size) &amp;#039;&amp;#039;and&amp;#039;&amp;#039; no call to the {{tl|font}} template is made.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
;No arguments passed&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
This call {{math|{{pars}}}} produces parentheses.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:This call {{math|{{pars}}}} produces parentheses.&lt;br /&gt;
&lt;br /&gt;
;No resizing used and content is passed&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
If {{math|{{pars|X}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:If {{math|{{pars|X}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&lt;br /&gt;
;Parentheses are resized and no content passed&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
If {{math|{{pars|2=210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:If {{math|{{pars|2=210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
If {{math|{{pars|s=210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:If {{math|{{pars|s=210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&lt;br /&gt;
;Content is resized but parentheses aren&amp;#039;t&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
If {{math|{{pars|{{large|X}}}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:If {{math|{{pars|{{large|X}}}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&lt;br /&gt;
;Parentheses are resized but content isn&amp;#039;t&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
If {{math|{{pars|2=210%|X}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:If {{math|{{pars|2=210%|X}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
If {{math|{{pars|s=210%|X}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:If {{math|{{pars|s=210%|X}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&lt;br /&gt;
;Content and parentheses are resized. Using parameter s for size of parentheses.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;s&amp;quot; stands for &amp;quot;size&amp;quot;. It indicates the new size of the parentheses relative to their usual size (e.g. s=200 produces parentheses with twice their usual size, s=100 produces the usual size, etc.).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
If {{math|{{pars|s=210%|{{large|X}}}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:If {{math|{{pars|s=210%|{{large|X}}}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&lt;br /&gt;
;Content and parentheses are resized. Using &amp;quot;2&amp;quot; in place of &amp;quot;s&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Here we indicate the size of the parentheses (as a percentage) by using parameter number 2 rather than the named parameter &amp;#039;&amp;#039;&amp;#039;s&amp;#039;&amp;#039;&amp;#039;. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
If {{math|{{pars|2=210%|{{large|X}}}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
If {{math|{{pars|2=210%|1={{large|X}}}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both of the above lines produce identical output, which is: &lt;br /&gt;
&lt;br /&gt;
:If {{math|{{pars|2=210%|1={{large|X}}}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&lt;br /&gt;
;Content and parentheses are resized. Passing arguments by their position. &lt;br /&gt;
&lt;br /&gt;
Here we indicate the size of the parentheses (as a percentage) by using parameter position number 2 rather than the named parameter &amp;#039;&amp;#039;&amp;#039;s&amp;#039;&amp;#039;&amp;#039;. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
If {{math|{{pars|{{large|X}}|210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:If {{math|{{pars|{{large|X}}|210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&lt;br /&gt;
This is equivalent to the following two lines: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
If {{math|{{pars|1={{large|X}}|2=210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:If {{math|{{pars|1={{large|X}}|2=210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
If {{math|{{pars|{{large|X}}|2=210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:If {{math|{{pars|{{large|X}}|2=210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039;: in the following line, 1 is first set to &amp;lt;nowiki&amp;gt;{{large|X}}&amp;lt;/nowiki&amp;gt; and then because &amp;quot;210&amp;quot; is the &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;first&amp;#039;&amp;#039;&amp;#039; unlabelled&amp;#039;&amp;#039; positional argument, the value of 1 is overwritten and replaced by &amp;quot;210&amp;quot; (which is why 210 appears inside the parentheses) while the positional argument 2 is never assigned a value (which is why the parentheses have their usual size). This is a documented quirk of Wikipedia templates that could occur with many templates that take two or more arguments. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
If {{math|{{pars|1={{large|X}}|210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:If {{math|{{pars&amp;lt;!--|1={{large|X}}--&amp;gt;|210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039;: the following is &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;NOT&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; valid since it would attempt to place the text &amp;quot;210&amp;quot; inside the parentheses (this is because the positional parameter 1 is assigned the value 210) and then attempt to pass {{large|X}} as the percentage number to the template {{tl|font}} (this is because the positional parameter 2 is assigned the value &amp;lt;nowiki&amp;gt;{{large|X}}&amp;lt;/nowiki&amp;gt;) even though it is not a valid number.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
If {{math|{{pars|210%|{{large|X}}}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It results in the following ill-formed output:&lt;br /&gt;
&lt;br /&gt;
:If {{math|{{pars|210%|{{large|X}}}} &amp;lt; 0}}, then {{mvar|X}} is negative.&amp;lt;!--This is a deliberate error, including a Linter error. Please do not &amp;quot;fix&amp;quot; it. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* {{tl|abs}}&lt;br /&gt;
* {{tl|bra-ket}}&lt;br /&gt;
* {{tl|math}}&lt;br /&gt;
* {{tl|norm}}&lt;br /&gt;
* {{tl|pipe}}&lt;br /&gt;
* {{tl|langle}} and {{tl|rangle}}&lt;br /&gt;
&lt;br /&gt;
{{Math templates|notation}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Mathematical formatting templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Jonesey95</name></author>
	</entry>
</feed>