Difference between revisions of "Template:hline/doc"

From WikiCorporates
Jump to navigation Jump to search
m (→‎Usage)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
<small>[[Template:nutshell|<< Template:nutshell]]</small>
+
<small>[[Template:hline|<< Template:hline]]</small>
  
−
Small template to draw a horizonal line. Default width: 250px, but can be any length. Accepts %ages, eg. 50%.
+
Small dual-purpose template to draw either a simple horizonal line, or text with a line on either side.<br/>
 +
The simple line has a default width of 250px, but can be any length. Accepts %ages, eg. 50%.
  
 
=== Usage ===
 
=== Usage ===
 +
==== Text within Line ====
 +
<pre>
 +
{{hline|text=Patons & Baldwins}}
 +
</pre>
 +
{{hline|text=Patons & Baldwins}}
 +
 +
==== Simple Line ====
 
<pre>
 
<pre>
 
Here is a line of text.
 
Here is a line of text.
−
{{nutshell}}
+
{{hline}}
 
And here's another line.
 
And here's another line.
 +
{{hline|w=50%}}
 +
Lines of text are good.
 +
{{hline|w=150px}}
 
</pre>
 
</pre>
  
 
Here is a line of text.
 
Here is a line of text.
−
{{nutshell}}
+
{{hline}}
 
And here's another line.
 
And here's another line.
−
{{nutshell|w=50%}}
+
{{hline|w=50%}}
 +
Lines of text are good.
 +
{{hline|w=150px}}
  
−
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>
+
<includeonly>[[Category:WikiCorporates templates]]</includeonly>

Latest revision as of 10:41, 25 January 2021

<< Template:hline

Small dual-purpose template to draw either a simple horizonal line, or text with a line on either side.
The simple line has a default width of 250px, but can be any length. Accepts %ages, eg. 50%.

Usage

Text within Line

{{hline|text=Patons & Baldwins}}

Patons & Baldwins

Simple Line

Here is a line of text.
{{hline}}
And here's another line.
{{hline|w=50%}}
Lines of text are good.
{{hline|w=150px}}

Here is a line of text.


And here's another line.


Lines of text are good.