Template:Truenewline/doc
Appearance
This is a documentation subpage for Template:Truenewline. It may contain usage information, categories and other content that is not part of the original template page. |
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';