<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://station14.ru/history/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Varserif/doc?feed=atom</id>
	<title>Шаблон:Varserif/doc - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://station14.ru/history/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Varserif/doc?feed=atom"/>
	<link rel="alternate" type="text/html" href="https://station14.ru/history/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Varserif/doc"/>
	<updated>2026-04-06T02:31:47Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://station14.ru/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Varserif/doc&amp;diff=77066&amp;oldid=prev</id>
		<title>Pok: Новая страница: «{{docpage}} {{translate|en}} 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, &lt;em&gt;and&lt;/em&gt; to do so in a serif font. This is &#039;&#039;specifically&#039;&#039; for the use of the characters &quot;I&quot; (upper-case i) and &quot;l&quot; (lower-case L), which in many sans-serif fonts can be difficu...»</title>
		<link rel="alternate" type="text/html" href="https://station14.ru/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Varserif/doc&amp;diff=77066&amp;oldid=prev"/>
		<updated>2025-04-05T14:02:49Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «{{docpage}} {{translate|en}} 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;lt;em&amp;gt;and&amp;lt;/em&amp;gt; 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 difficu...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{docpage}}&lt;br /&gt;
{{translate|en}}&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;lt;em&amp;gt;and&amp;lt;/em&amp;gt; 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|varserif|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|Varserif}} 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|varserif}} 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;{{varserif|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;
: {{varserif|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;{{varserif|I}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; = {{varserif|I}}&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{varserif|l}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; = {{varserif|l}}&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{varserif|1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; = {{varserif|1}}&lt;br /&gt;
&lt;br /&gt;
Please note that {{tnull|varserif}} 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;{{varserif|I}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; = {{varserif|I}}&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{varserif|l}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; = {{varserif|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;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Категория:Шаблоны:Оформление]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pok</name></author>
	</entry>
</feed>