Difference between revisions of "Template:Rule"

From Nynorn
Jump to navigation Jump to search
(expand documentation)
m (49 revisions imported: Import templates for formatting Jakobsen snippets)
 
(45 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<div align="center"><hr style="background-color:#000; color:#000; {{#if:{{{width|}}}|width:{{{width}}}}}"/></div>
+
<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>
<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
 
 
 
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>
 
produces
 
{{rule|width=12em}}
 
 
 
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.