{{#replace:{{{1}}}|<nowiki> </nowiki>|<br />}} ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]
Platonides wrote: > 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. > -- ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l