[Mediawiki-l] Replacing Newline

Platonides Platonides at gmail.com
Tue Aug 25 12:44:39 UTC 2009


Waseem Sayegh wrote:
> How can you replace a newline with a line break? I tried
> {{#replace:{{{1}}}|\n|<br
> />}} but it doesn't seem to be picking up the '\n' at all. Is there a way,
> or even a workaround?

\n are the characters '\' and 'n'.
To pass a newline as a parameter, you'd write a newline:
{{#replace:{{{1}}}|
|<br />}}

But you could as well introduce a couple of new lines in the text
wherever you want to produce a new paragraph.




More information about the MediaWiki-l mailing list