Template:End of line character/Doc

From PCSAR

Revision as of 18:53, 31 December 2012 by Brett Wuth (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

The template {{End of line character}} produces a single end of line character.

This is the same thing as typing ENTER or RETURN on the keyboard. It produces exactly the same effect as if the line ended at the point of the call to the template and any remaining text started on a new line.

For convenience, this template has the alias template:$ and is more often called as:

{{$}}

So

one line{{$}}another line

is the same as

one line
another line

This template is typically used in other templates, when a normal end of line character would make the template difficult to read.


;;;;;;;;;;;; some comment about why we need to start a new line

</noinclude>{{$}}<noinclude>

as opposed to:


;;;;;;;;;;;; some comment about why we need to start a new line

</noinclude>
<noinclude>

This template is subst: clean. When called as:

{{subst:$}}

it will produce only an end of line character, with no embedded comments.