Jump to content

Template:Truenewline/doc

From Wikipedia, the free encyclopedia

Transcludes a newline. Not HTML, no spaces, just a newline, nothing more. This allows a multiline #tag to be placed on a single line, even with indentation, which is otherwise impossible.

Usage

[edit]

{{#tag:syntaxhighlight|foo1 = 'bar1';{{Truenewline}}foo2 = 'bar2';|lang=javascript}}

Result:

foo1 = 'bar1';
foo2 = 'bar2';