Template:Break lines/doc

From the AARoads Wiki: Read about the road before you go
Jump to navigation Jump to search

This template transforms line breaks into <br /> tags. It is very similar to the {{poem}} template, except that it does not invoke the <poem> MediaWiki extension. It may or may not be substituted.

Usage

Manuscript:

{{subst:Break lines|Arma virumque cano, Troiae qui primus ab oris
Italiam, fato profugus, Laviniaque venit
litora, multum ille et terris iactatus et alto
vi superum saevae memorem Iunonis ob iram;
multa quoque et bello passus, dum conderet urbem,
inferretque deos Latio, genus unde Latinum,
Albanique patres, atque altae moenia Romae.}}

HTML generated:

Arma virumque cano, Troiae qui primus ab oris<br />Italiam, fato profugus, Laviniaque venit<br />litora, multum ille et terris iactatus et alto<br />vi superum saevae memorem Iunonis ob iram;<br />multa quoque et bello passus, dum conderet urbem,<br />inferretque deos Latio, genus unde Latinum,<br />Albanique patres, atque altae moenia Romae.

Effect:

Arma virumque cano, Troiae qui primus ab oris
Italiam, fato profugus, Laviniaque venit
litora, multum ille et terris iactatus et alto
vi superum saevae memorem Iunonis ob iram;
multa quoque et bello passus, dum conderet urbem,
inferretque deos Latio, genus unde Latinum,
Albanique patres, atque altae moenia Romae.

If the |doublets=p parameter is given, double line breaks will be parsed as <p>, otherwise as <br /><br />.

See also