Difference between revisions of "Template:Rule"

From Nynorn
Jump to navigation Jump to search
(includeonly)
(allow implicit width)
Line 1: Line 1:
<includeonly><div align="center"><hr style="background-color:#000; color:#000; {{#if:{{{width|}}}|width:{{{width}}}}}"/></div></includeonly><noinclude>
+
<includeonly><div align="center"><hr style="background-color:#000; color:#000; {{#if:{{{width|{{{1|}}}}}}|width:{{{width}}}}}"/></div></includeonly><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. Furthermore there can be no certainty that the rendering of "----" will not change in the future.
 
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. Furthermore there can be no certainty that the rendering of "----" will not change in the future.
  
Line 16: Line 16:
 
For example
 
For example
 
  <nowiki>{{rule|width=12em}}</nowiki>
 
  <nowiki>{{rule|width=12em}}</nowiki>
 +
and
 +
<nowiki>{{rule|12em}}</nowiki>
 
produces
 
produces
{{rule|width=12em}}
+
{{rule|12em}}
  
 
For an example of its use in an actual transcription, see [[The Perth gazette and Western Australian journal/Volume 1/Number 9]].
 
For an example of its use in an actual transcription, see [[The Perth gazette and Western Australian journal/Volume 1/Number 9]].
 
</noinclude>
 
</noinclude>

Revision as of 00:29, 22 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. Furthermore there can be no certainty that the rendering of "----" will not change in the future.

For example

{{rule}}

produces


The common case of a double-rule can be achieved by

{{rule}}{rule}}

which 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}}

and

{{rule|12em}}

produces


For an example of its use in an actual transcription, see The Perth gazette and Western Australian journal/Volume 1/Number 9.