Template:Crlf2/doc

From Absit Omen Lexicon
< Template:Crlf2
Revision as of 19:53, 5 December 2015 by Cody (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> == Usage == This template adds a true carriage return and line feed. It is useful...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Edit-copy green.png This is a documentation subpage for Template:Crlf2.
It contains usage information, categories and other content that is not part of the original template page.

Usage

This template adds a true carriage return and line feed. It is useful in markup when wikimarkup that must start on a new line such as #, * or ; is used in a table or template. For example, the {{markup}} template creates a table:

Including <syntaxhighlight lang="text" enclose="none">* Text</syntaxhighlight> causes the <syntaxhighlight lang="text" enclose="none">*</syntaxhighlight> bullet markup to not be parsed
Markup Renders as
* Text 
  • Text
Including <br /> parses the bullet markup, but adds a blank line
Markup Renders as
<br />
* Text 


  • Text
Using {{crlf2}} parses the bullet markup without extra white space
Markup Renders as
{{crlf2}}
* Text 

  • Text

See also