<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-CA">
	<id>http://docs.fox-labs.io/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AHr%2Fdoc</id>
	<title>Template:Hr/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://docs.fox-labs.io/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AHr%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://docs.fox-labs.io/wiki/index.php?title=Template:Hr/doc&amp;action=history"/>
	<updated>2026-07-17T02:11:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://docs.fox-labs.io/wiki/index.php?title=Template:Hr/doc&amp;diff=550&amp;oldid=prev</id>
		<title>Inari: Created page with &quot;{{Short description|Displays a horizontal line}} {{Documentation subpage}} {{vpad|1.5em}}&lt;!-- to separate body text from the banner above --&gt;  &#039;&#039;&#039;&lt;nowiki&gt;{{Hr}}&lt;/nowiki&gt;&#039;&#039;&#039; displays a &#039;&#039;&#039;horizontal rule&#039;&#039;&#039; (horizontal line) which by default looks like this: {{hr}} and whose height can be adjusted if desired. The rule appears on a line of its own, creating a line break if used mid-paragraph.  == Usage ==  For the default appearance, insert &lt;code&gt;&lt;nowiki&gt;{{hr}}&lt;/nowiki&gt;&lt;/c...&quot;</title>
		<link rel="alternate" type="text/html" href="http://docs.fox-labs.io/wiki/index.php?title=Template:Hr/doc&amp;diff=550&amp;oldid=prev"/>
		<updated>2026-06-04T12:47:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Short description|Displays a horizontal line}} {{Documentation subpage}} {{vpad|1.5em}}&amp;lt;!-- to separate body text from the banner above --&amp;gt;  &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;{{Hr}}&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039; displays a &amp;#039;&amp;#039;&amp;#039;horizontal rule&amp;#039;&amp;#039;&amp;#039; (horizontal line) which by default looks like this: {{hr}} and whose height can be adjusted if desired. The rule appears on a line of its own, creating a line break if used mid-paragraph.  == Usage ==  For the default appearance, insert &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr}}&amp;lt;/nowiki&amp;gt;&amp;lt;/c...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Displays a horizontal line}}&lt;br /&gt;
{{Documentation subpage}}&lt;br /&gt;
{{vpad|1.5em}}&amp;lt;!-- to separate body text from the banner above --&amp;gt; &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;{{Hr}}&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039; displays a &amp;#039;&amp;#039;&amp;#039;horizontal rule&amp;#039;&amp;#039;&amp;#039; (horizontal line) which by default looks like this: {{hr}} and whose height can be adjusted if desired. The rule appears on a line of its own, creating a line break if used mid-paragraph.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
For the default appearance, insert &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; where you want the horizontal rule to appear. Text before &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will appear above the rule, and text after it below.&lt;br /&gt;
&lt;br /&gt;
To change the rule&amp;#039;s height, use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;hr|&amp;#039;&amp;#039;height&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, where &amp;lt;code&amp;gt;&amp;#039;&amp;#039;height&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; is the thickness in [[Pixel#Logical|pixels]]: for example {{nowrap|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr|2}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;}} creates a rule two pixels high.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.5em&amp;quot;&amp;gt;&lt;br /&gt;
* The &amp;lt;code&amp;gt;&amp;#039;&amp;#039;height&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; value need not be a whole number.&lt;br /&gt;
* To make the rule thicker (taller) than the default, use a value greater than&amp;amp;nbsp;1.&lt;br /&gt;
* To make it thinner than the default, use a value between 0 and 1, exclusive.&lt;br /&gt;
* On lower-resolution displays:&lt;br /&gt;
** Small &amp;lt;code&amp;gt;&amp;#039;&amp;#039;height&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; differences might render the same.&lt;br /&gt;
** A &amp;lt;code&amp;gt;&amp;#039;&amp;#039;height&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; less than 1 might render nothing (an &amp;quot;invisible line&amp;quot;).&lt;br /&gt;
*** For any given device, a visible line might become invisible, or vice versa, depending on what precedes it on the page. Thus, unrelated edits can affect the rendering.&lt;br /&gt;
** All of these effects were seen on a Windows laptop display, at 1366x768 resolution, in [[Anno Domini|AD]] 2025. For these reasons, a &amp;lt;code&amp;gt;&amp;#039;&amp;#039;height&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; less than 1 is not recommended. See [[#Examples and testing|Examples and testing]] for the current renderings on your particular device.&lt;br /&gt;
* Enter just the number; don&amp;#039;t add a unit such as &amp;lt;code&amp;gt;px&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;em&amp;lt;/code&amp;gt; after&amp;amp;nbsp;it.&lt;br /&gt;
* Placing the template within a line of text,&lt;br /&gt;
:: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;like {{hr}} this&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;,&lt;br /&gt;
: will split the text at the rule,&lt;br /&gt;
:: like {{hr}} this&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples and testing &amp;lt;span class=&amp;quot;anchor&amp;quot; id=&amp;quot;Examples&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
Rendering varies slightly depending on display resolution; see [[#Usage|Usage]].&lt;br /&gt;
{|&lt;br /&gt;
|+ &lt;br /&gt;
|-&lt;br /&gt;
! Coding !! Resulting line height on your display, today&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr|0.5}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{hr|0.5}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr|1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{hr}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr|1.5}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{hr|1.5}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr|2}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{hr|2}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr|2.5}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{hr|2.5}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr|3}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{hr|3}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr|4}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{hr|4}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr|5}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{hr|5}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr|10}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || {{hr|10}}&lt;br /&gt;
|}&lt;br /&gt;
(At this point, we have a horizontal bar, not a horizontal rule. Some judicious restraint is recommended, making the line height proportional to [not &amp;#039;&amp;#039;equal to&amp;#039;&amp;#039;] that of the nearby text. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr|10}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is excessive for most uses.)&lt;br /&gt;
&lt;br /&gt;
== Alternatives ==&lt;br /&gt;
&lt;br /&gt;
A horizontal rule with the default appearance can also be produced by&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.5em&amp;quot;&amp;gt;&lt;br /&gt;
* typing four hyphens &amp;lt;code&amp;gt;----&amp;lt;/code&amp;gt; on a new line, or by&lt;br /&gt;
* using an HTML {{tag|hr|e}} tag.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The template inserts the HTML tag and gives it a &amp;lt;code&amp;gt;style=&amp;lt;/code&amp;gt; attribute if the height is specified. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hr|3}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; adds &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;hr style=&amp;quot;height:3px&amp;quot; /&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to the HTML for the page.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
[[wp:TemplateData|The information]] in this section is used by [[wp:VisualEditor|VisualEditor]] and tools such as [[mw:Extension:TemplateWizard|TemplateWizard]].&lt;br /&gt;
{{TemplateData header|noheader=yes}}&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;label&amp;quot;: &amp;quot;Height&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The thickness of the rule, in pixels.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;1&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;1.5&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Displays a horizontal rule (horizontal line).&amp;quot;,&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories and interwikis go here: --&amp;gt;&lt;br /&gt;
[[Category:Wikipedia HTML tag-replacing templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Inari</name></author>
	</entry>
</feed>