Difference between revisions of "Template:Rule"

From Nynorn
Jump to navigation Jump to search
m (49 revisions imported: Import templates for formatting Jakobsen snippets)
 
(38 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<includeonly><div align="center">
+
<hr class="__rule" style="{{#if:{{{color|}}}|border-color: {{{color}}};}} background-color: {{{color|#000}}}; color: #000; width: {{{width|{{{1|auto}}}}}}; max-width: 100%; {{#switch:{{{align}}}|left=margin: 2px auto 2px 0px|right=margin: 2px 0px 2px auto|#default=margin: 2px auto 2px auto}}; height: {{{height|1px}}}; {{#if:{{{style|}}}|{{{style}}};|}}" /><noinclude>{{documentation}}</noinclude>
<hr style="background-color:#000; color:#000;  {{#if:{{{width|{{{1|}}}}}}|width:{{{width|{{{1}}}}}}}} {{#if:{{{size|{{{1|}}}}}}|size:{{{size|{{{1}}}}}}}}"/>
 
</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.
 
 
 
For example
 
<nowiki>{{rule}}</nowiki>
 
produces
 
{{rule}}
 
 
 
The common case of a double-rule can be achieved by
 
<nowiki>{{rule}}{rule}}</nowiki>
 
which produces
 
{{rule}}{{rule}}
 
 
 
A width may optionally be provided, in which case a black horizontal rule of that width is centered on the line.
 
 
 
For example
 
<nowiki>{{rule|width=12em}}</nowiki>
 
and
 
<nowiki>{{rule|12em}}</nowiki>
 
both produce
 
{{rule|12em}}
 
 
 
A height value may also be added with the size param.
 
 
 
 
 
 
 
For an example of its use in an actual transcription, see [[The Perth gazette and Western Australian journal/Volume 1/Number 9]].
 
</noinclude>
 

Latest revision as of 22:43, 11 March 2021


Co dovran ins quest model?
La chascha alva cuntegna infurmaziuns davart il scopo ed il diever da quest model.

Fin ussa n'existan anc naginas instrucziun per quest model.
Agiunscha ina descripziun da sias funcziuns.

Questa bordura na cumpara betg en l'artitgel.
Ils editurs pon experimentar sin la pagina da provas.
Per plaschair agiunscha las categorias sin la sutpagina da documentaziun ed ils interwikis sin Wikidata. Sutpaginas da quest model.