By default, MediaWiki ignores single line breaks, treating them as a single space. To insert a new line in a page, you must insert two consecutive line breaks in the source, which results in a new paragraph: </p><p>
. It's also possible to insert <br />
directly into the source.
How can I modify the MediaWiki parsing engine so single line breaks in the source are replaced automatically with a <br />
in the resulting HTML?
(Source: http://www.mediawiki.org/wiki/Help:Formatting)
The <br /> or <br> tags are used for a single forced line break.
Press ALT+ENTER to insert the line break.
To insert a new line in a page, you must insert two consecutive line breaks in the source, which results in a new paragraph: </p><p> . It's also possible to insert <br /> directly into the source.
Add two spaces at the end, to have a soft line break, that will just add a newline to the rendered text. Add a break and an extra empty line to start a new paragraph.
Use https://www.mediawiki.org/wiki/Extension:Poem
<poem>
Roses are red
Violets are blue
</poem>
<pre></pre>
This html tag seems to do the job for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With