<?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%3APad%2Fdoc</id>
	<title>模板:Pad/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%3APad%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Pad/doc&amp;action=history"/>
	<updated>2026-05-14T18:49:12Z</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:Pad/doc&amp;diff=8234&amp;oldid=prev</id>
		<title>Zeroclanzhang：​创建页面，内容为“{{Documentation subpage}} {{High-use}} &lt;!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE. --&gt;  ==Usage== Use {{tl|pad}} to insert a horizontally padding HTML {{tag|span|open}} inline. The template takes one unnamed parameter; a width value specified in &lt;code&gt;px&lt;/code&gt;, &lt;code&gt;em&lt;/code&gt; or &lt;code&gt;ex&lt;/code&gt; (other CSS units&amp;nbsp;– in, cm, pc, pt&amp;nbsp;– are supported as well, but not recommended, typ…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Pad/doc&amp;diff=8234&amp;oldid=prev"/>
		<updated>2024-01-22T07:19:22Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{Documentation subpage}} {{High-use}} &amp;lt;!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE. --&amp;gt;  ==Usage== Use {{tl|pad}} to insert a horizontally padding HTML {{tag|span|open}} inline. The template takes one unnamed parameter; a width value specified in &amp;lt;code&amp;gt;&lt;a href=&quot;/index.php?title=Pixel&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Pixel（页面不存在）&quot;&gt;px&lt;/a&gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&lt;a href=&quot;/index.php?title=Em_(typography)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Em (typography)（页面不存在）&quot;&gt;em&lt;/a&gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&lt;a href=&quot;/index.php?title=X-height&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;X-height（页面不存在）&quot;&gt;ex&lt;/a&gt;&amp;lt;/code&amp;gt; (other CSS units – in, cm, pc, pt – are supported as well, but not recommended, typ…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{High-use}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
Use {{tl|pad}} to insert a horizontally padding HTML {{tag|span|open}} inline. The template takes one unnamed parameter; a width value specified in &amp;lt;code&amp;gt;[[Pixel|px]]&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;[[Em (typography)|em]]&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;[[x-height|ex]]&amp;lt;/code&amp;gt; (other CSS units&amp;amp;nbsp;– in, cm, pc, pt&amp;amp;nbsp;– are supported as well, but not recommended, typically at 96dpi conversion ratio). The default is &amp;lt;code&amp;gt;1.0em&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The result is the specified padding followed by an &amp;amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039; ([[non-breaking space]]&amp;amp;nbsp;– at 100% font size (8pt), typically 3px wide in narrow fonts like Arial and Tahoma, 4px in wider fonts like Arial Black and Verdana).&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
;{{para|1}}&lt;br /&gt;
:size of padding&lt;br /&gt;
;{{para|css}}&lt;br /&gt;
:optional additional [[CSS]] code&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
Indenting by 50 pixels plus an &amp;amp;amp;nbsp; (53px in Arial):&lt;br /&gt;
* &amp;lt;code&amp;gt;Indenting 50px causes&amp;lt;nowiki&amp;gt;&amp;lt;br /&amp;gt;{{pad|50px}}&amp;lt;/nowiki&amp;gt;this amount of space.&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;Produces:&amp;#039;&amp;#039;&lt;br /&gt;
* Indenting 50px causes&amp;lt;br /&amp;gt;{{pad|50px}}this amount of space.&lt;br /&gt;
&lt;br /&gt;
Width of a typical year-range in Arial font (4.8em plus an &amp;amp;amp;nbsp;):&lt;br /&gt;
* &amp;lt;code&amp;gt;1492–1540 Exploration by&amp;lt;nowiki&amp;gt;&amp;lt;br /&amp;gt;{{pad|4.8em}}&amp;lt;/nowiki&amp;gt;Columbus &amp;amp; others.&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;Produces:&amp;#039;&amp;#039;&lt;br /&gt;
* 1492–1540 Exploration by&amp;lt;br /&amp;gt;{{pad|4.8em}}Columbus &amp;amp; others.&lt;br /&gt;
&lt;br /&gt;
This is better produced by:&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; inline&amp;gt;1492–1540 Exploration by&amp;lt;br/&amp;gt;{{hidden text|1492–1540}} Columbus &amp;amp; others.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;Which produces:&amp;#039;&amp;#039;&lt;br /&gt;
* 1492–1540 Exploration by&amp;lt;br /&amp;gt;{{hidden text|1492–1540}} Columbus &amp;amp; others&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
However, some digits supposedly require less space:&lt;br /&gt;
* &amp;lt;code&amp;gt;1111–1117 Exploration by&amp;lt;nowiki&amp;gt;&amp;lt;br /&amp;gt;{{pad|4.4em}}&amp;lt;/nowiki&amp;gt;Explorer Bob.&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;Produces:&amp;#039;&amp;#039;&lt;br /&gt;
* 1111–1117 Exploration by&amp;lt;br /&amp;gt;{{pad|4.4em}}Explorer Bob.&lt;br /&gt;
&lt;br /&gt;
But actually not:&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; inline&amp;gt;1111–1117 Exploration by&amp;lt;br/&amp;gt;{{hidden text|9999–9999}} Explorer Bob.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;Produces:&amp;#039;&amp;#039;&lt;br /&gt;
* 1111–1117 Exploration by&amp;lt;br/&amp;gt;{{hidden text|9999–9999}} Explorer Bob.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Spacing is, of course, different between fonts, too:&lt;br /&gt;
* {{Font|This is text 0123456789 in Arial&amp;lt;br /&amp;gt;{{Pad|100px}}and this is indented by 100px + 1 &amp;amp;amp;nbsp;&amp;lt;br /&amp;gt;{{Pad|9em}}and this is indented by 9em + 1 &amp;amp;amp;nbsp;|font=Arial}}&lt;br /&gt;
* {{Font|This is text 0123456789 in Times New Roman&amp;lt;br /&amp;gt;{{Pad|100px}}and this is indented by 100px+ 1 &amp;amp;amp;nbsp;&amp;lt;br /&amp;gt;{{Pad|9em}}and this is indented by 9em + 1 &amp;amp;amp;nbsp;|font=Times New Roman}}&lt;br /&gt;
* {{Font|This is text 0123456789 in Arial Black&amp;lt;br /&amp;gt;{{Pad|100px}}and this is indented by 100px + 1 &amp;amp;amp;nbsp;&amp;lt;br /&amp;gt;{{Pad|9em}}and this is indented by 9em + 1 &amp;amp;amp;nbsp;|font=Arial Black}}&lt;br /&gt;
* {{Font|This is text 0123456789 in Lucida Console&amp;lt;br /&amp;gt;{{Pad|100px}}and this is indented by 100px+ 1 &amp;amp;amp;nbsp;&amp;lt;br /&amp;gt;{{Pad|9em}}and this is indented by 9em + 1 &amp;amp;amp;nbsp;|font=Lucida Console}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note: 1em is typically 11.2px at 100% font size (8 point), 21.3px at 200% font size (16 point), and 32px at 300% font size (24pt).&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Inline spacing templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other|&lt;br /&gt;
| &amp;lt;!-- CATEGORIES BELOW THIS LINE, PLEASE: --&amp;gt;&lt;br /&gt;
[[Category:Inline spacing templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zeroclanzhang</name></author>
	</entry>
</feed>