Difference between revisions of "Template:Rule"

From Nynorn
Jump to navigation Jump to search
(fix)
(documentation)
Line 1: Line 1:
 
<div align="center"><hr style="background-color:#000; color:#000; {{#if:{{{width|}}}|width:{{{width}}}}}"/></div>
 
<div align="center"><hr style="background-color:#000; color:#000; {{#if:{{{width|}}}|width:{{{width}}}}}"/></div>
 
<noinclude>
 
<noinclude>
<!--
 
 
This template inserts a black horizontal rule. It should be used in transcriptions in preference to wiki syntax "----", which inserts a rule but in a lighter colour
 
This template inserts a black horizontal rule. It should be used in transcriptions in preference to wiki syntax "----", which inserts a rule but in a lighter colour
  
Line 13: Line 12:
 
For example
 
For example
 
  <nowiki>{{rule|width=12em}}</nowiki>
 
  <nowiki>{{rule|width=12em}}</nowiki>
produce
+
produces
 
  {{rule|width=12em}}
 
  {{rule|width=12em}}
  
Dingbats can be included by use of a table. For example
 
{|
 
|-
 
<nowiki>|{{rule|4em}}|| ||{{rule|4em}}</nowiki>
 
|}
 
produces
 
{|
 
|-
 
|{{rule|4em}}|| ||{{rule|4em}}
 
|}
 
-->
 
 
</noinclude>
 
</noinclude>

Revision as of 05:51, 4 October 2008


This template inserts a black horizontal rule. It should be used in transcriptions in preference to wiki syntax "----", which inserts a rule but in a lighter colour

For example

{{rule}}

produces



A width may optionally be provided, in which case a black horizontal rule of that width is centered on the line.

For example

{{rule|width=12em}}

produces