Template:End of line character

From PCSAR

(Redirected from Template:$)
Jump to: navigation, search

This is the documentation for the template Template:End of line character

Template:End of line character/Doc:

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.


To see how this template is implemented, edit this page and examine the portion between <includeonly> and </includeonly>.

Personal tools