Difference between revisions of "Template:hline"
Jump to navigation
Jump to search
{{{text}}}
Patons & Baldwins
{{{text}}}
{{{text}}}
{{{text}}}
m (GrayanOne moved page Template:nutshell to Template:hline without leaving a redirect) |
|||
| Line 1: | Line 1: | ||
| − | <hr style="width:{{#if:{{{w|}}}|{{{w}}}|250px}}"/><noinclude>{{doc2}}</noinclude> | + | {{#if:{{{text}}}<!-- |
| + | -->|<div style="font-weight:bold;"><hr style="display:inline-block; width:20px;"/> {{{text}}} <hr style="display:inline-block; width:250px;"/></div><!-- | ||
| + | -->|<hr style="width:{{#if:{{{w|}}}|{{{w}}}|250px}}"/><!-- | ||
| + | -->}}<noinclude>{{doc2}}</noinclude> | ||
Revision as of 10:38, 25 January 2021
{{{text}}}
[edit] Documentation
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.
{{{text}}}
And here's another line.
{{{text}}}
Lines of text are good.
{{{text}}}