<?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%3AVar_serif%2Fdoc</id>
	<title>模板:Var serif/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%3AVar_serif%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Var_serif/doc&amp;action=history"/>
	<updated>2026-05-14T22:14:30Z</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:Var_serif/doc&amp;diff=7981&amp;oldid=prev</id>
		<title>Zeroclanzhang：​创建页面，内容为“{{Documentation subpage}} &lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --&gt; ==Usage== This template is to help facilitate the displaying of variable names (in mathematics, computer source code, etc.) with the semantically correct &lt;code&gt;&lt;nowiki&gt;&lt;var&gt;...&lt;/var&gt;&lt;/nowiki&gt;&lt;/code&gt;, which also renders the variable in italics, as is customary, &#039;&#039;and&#039;&#039; to do so in a serif font. This is &#039;&#039;specificall…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Var_serif/doc&amp;diff=7981&amp;oldid=prev"/>
		<updated>2024-01-21T14:17:50Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{Documentation subpage}} &amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata (see &lt;a href=&quot;https://en.wikipedia.org/wiki/Wikidata&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Wikidata&quot;&gt;Wikipedia:Wikidata&lt;/a&gt;) --&amp;gt; ==Usage== This template is to help facilitate the displaying of variable names (in mathematics, computer source code, etc.) with the semantically correct &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;var&amp;gt;...&amp;lt;/var&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, which also renders the variable in italics, as is customary, &amp;#039;&amp;#039;and&amp;#039;&amp;#039; to do so in a serif font. This is &amp;#039;&amp;#039;specificall…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&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;
This template is to help facilitate the displaying of variable names (in mathematics, computer source code, etc.) with the semantically correct &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;var&amp;gt;...&amp;lt;/var&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, which also renders the variable in italics, as is customary, &amp;#039;&amp;#039;and&amp;#039;&amp;#039; to do so in a serif font. This is &amp;#039;&amp;#039;specifically&amp;#039;&amp;#039; for the use of the characters &amp;quot;I&amp;quot; (upper-case i) and &amp;quot;l&amp;quot; (lower-case L), which in many sans-serif fonts can be difficult to distinguish. The template also very slightly adjusts the font size of the enclosed variable, to account for typical difference in [[x-height]] between non-fancy serif (e.g., Times and Times New Roman) and sans-serif (e.g. Arial and Helvetica) typefaces.  The template should not be used generally, but only for &amp;quot;I&amp;quot; and &amp;quot;l&amp;quot;, and perhaps other cases where a known visual ambiguity can be shown to exist in common sans-serif fonts for readers without acute vision.  It is recommended to use {{tlx|var|1}} rather than {{tlx|var serif|1}} for &amp;quot;1&amp;quot; (numeral one), as it is usually more clearly distinguishable from &amp;quot;I&amp;quot; and &amp;quot;l&amp;quot; in sans-serif than serif fonts.&lt;br /&gt;
&lt;br /&gt;
{{tlx|Var serif}} need not be used for variables that simply &amp;#039;&amp;#039;contain&amp;#039;&amp;#039; &amp;quot;I&amp;quot; or &amp;quot;l&amp;quot;, only for cases in which readers are likely to be unable to distinguish them visually.&lt;br /&gt;
&lt;br /&gt;
The {{tlx|var serif}} method is preferred to simply italicizing and using inline style to specify the font, for [[WP:Accessibility|accessibility]], [[Separation of presentation and content|content/presentation separation]], [[semantic Web]], and [[WP:METADATA|metadata]] reasons; XHTML&amp;#039;s &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;var&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; element has semantic meaning, while simple font changes like italicizing does not.&lt;br /&gt;
&lt;br /&gt;
Because the font styling in the template is done entirely with [[Cascading Style Sheets|CSS]], it has no effect at all upon content semantics, nor does it change the output for users of [[screen reader]] software.&lt;br /&gt;
&lt;br /&gt;
Example: &lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{var serif|I}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
outputs:&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;var style=&amp;quot;font-size:118%;font-family:serif;&amp;quot;&amp;gt;I&amp;lt;/var&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
which renders as:&lt;br /&gt;
: {{var serif|I}}&lt;br /&gt;
&lt;br /&gt;
;Comparisons:&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{var|I}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; = {{var|I}}&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{var|l}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; = {{var|l}}&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{var|1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; = {{var|1}}&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{var serif|I}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; = {{var serif|I}}&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{var serif|l}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; = {{var serif|l}}&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{var serif|1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; = {{var serif|1}}&lt;br /&gt;
&lt;br /&gt;
Please note that {{tnull|var serif}} is not a panacea; its treatment of the numeral &amp;quot;1&amp;quot; is easily mistaken for the letter &amp;quot;l&amp;quot; (lower-case &amp;quot;L&amp;quot;) in many serif fonts.&lt;br /&gt;
&lt;br /&gt;
; Recommended usage:&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{var serif|I}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; = {{var serif|I}}&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{var serif|l}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; = {{var serif|l}}&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{var|1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; = {{var|1}}&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{var|&amp;lt;/nowiki&amp;gt;{{var|variable}}&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; for any other variable&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
{{TemplateDataHeader}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {},&lt;br /&gt;
		&amp;quot;class&amp;quot;: {},&lt;br /&gt;
		&amp;quot;id&amp;quot;: {},&lt;br /&gt;
		&amp;quot;style&amp;quot;: {},&lt;br /&gt;
		&amp;quot;lang&amp;quot;: {},&lt;br /&gt;
		&amp;quot;title&amp;quot;: {}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Semantic markup templates|show}}&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;
[[Category:Programming typing-aid templates]]&lt;br /&gt;
[[Category:Semantic markup templates]]&lt;br /&gt;
[[Category:Wikipedia XHTML tag-replacing templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zeroclanzhang</name></author>
	</entry>
</feed>