<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3APars%2Fdoc</id>
	<title>模板:Pars/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3APars%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Pars/doc&amp;action=history"/>
	<updated>2026-05-14T20:28:15Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Pars/doc&amp;diff=8119&amp;oldid=prev</id>
		<title>Zeroclanzhang：​创建页面，内容为“{{Documentation subpage}} This template may be used to enclose text between two parentheses. It adds padding (of width 0.1 em) on each side inside the parentheses.   == Usage == {{tlx|Pars|s{{=}}200%|Content-inside-parentheses|_show_result=yes}} # Places &lt;code&gt;(  )&lt;/code&gt; around the content: (Content-inside-parentheses) # Scales their size to 200% #* You can also use the units px, em, pt, or % # Adds small spaces immediately after ( and immediately before )  ==…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Pars/doc&amp;diff=8119&amp;oldid=prev"/>
		<updated>2024-01-21T16:15:04Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{Documentation subpage}} This template may be used to enclose text between two parentheses. It adds padding (of width 0.1 em) on each side inside the parentheses.   == Usage == {{tlx|Pars|s{{=}}200%|Content-inside-parentheses|_show_result=yes}} # Places &amp;lt;code&amp;gt;(  )&amp;lt;/code&amp;gt; around the content: (Content-inside-parentheses) # Scales their size to 200% #* You can also use the units px, em, pt, or % # Adds small spaces immediately after ( and immediately before )  ==…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
This template may be used to enclose text between two parentheses. It adds padding (of width 0.1 em) on each side inside the parentheses. &lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{tlx|Pars|s{{=}}200%|Content-inside-parentheses|_show_result=yes}}&lt;br /&gt;
# Places &amp;lt;code&amp;gt;(  )&amp;lt;/code&amp;gt; around the content: (Content-inside-parentheses)&lt;br /&gt;
# Scales their size to 200%&lt;br /&gt;
#* You can also use the units px, em, pt, or %&lt;br /&gt;
# Adds small spaces immediately after ( and immediately before )&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
This template has the following parameters&lt;br /&gt;
* {{para|1}} (positional parameter) - the text that goes inside of the parentheses. &lt;br /&gt;
* {{para|s}} or {{para|2}} - &amp;quot;s&amp;quot; stands for &amp;quot;size&amp;quot;. size=SIZE（px, em, pt, or %. If {{para|s|100%}} then the size of the parentheses is not changed (i.e. the parentheses have their usual size). If {{para|s|200%}} (resp. {{para|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 {{tlx|Pars|text|50%}} in place of {{tlx|Pars|text|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;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;gt;&lt;br /&gt;
This call {{math|{{pars}}}} produces parentheses.&lt;br /&gt;
&amp;lt;/syntaxhighlight&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;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;gt;&lt;br /&gt;
If {{math|{{pars|X}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/syntaxhighlight&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;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;gt;&lt;br /&gt;
If {{math|{{pars|2=210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/syntaxhighlight&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;syntaxhighlight lang=&amp;quot;wikitext&amp;gt;&lt;br /&gt;
If {{math|{{pars|s=210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/syntaxhighlight&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;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;gt;&lt;br /&gt;
If {{math|{{pars|{{large|X}}}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/syntaxhighlight&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;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;gt;&lt;br /&gt;
If {{math|{{pars|X|210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
If {{math|{{pars|X|210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;gt;&lt;br /&gt;
If {{math|{{pars|X|s=210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
If {{math|{{pars|X|s=210%}} &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;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;gt;&lt;br /&gt;
If {{math|{{pars|{{large|X}}|s=210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
If {{math|{{pars|{{large|X}}|s=210%}} &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;
Here we indicate the size of the parentheses (as a percentage) by using parameter position number 2 rather than the named parameter {{para|s}}. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;gt;&lt;br /&gt;
If {{math|{{pars|{{large|X}}|210%}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/syntaxhighlight&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;syntaxhighlight lang=&amp;quot;wikitext&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;/syntaxhighlight&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;syntaxhighlight lang=&amp;quot;wikitext&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;/syntaxhighlight&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;syntaxhighlight lang=&amp;quot;wikitext&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;/syntaxhighlight&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;
&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;syntaxhighlight lang=&amp;quot;wikitext&amp;gt;&lt;br /&gt;
If {{math|{{pars|210%|{{large|X}}}} &amp;lt; 0}}, then {{mvar|X}} is negative.&lt;br /&gt;
&amp;lt;/syntaxhighlight&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;
* {{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>Zeroclanzhang</name></author>
	</entry>
</feed>