Difference between revisions of "Template:Crlf2/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(category)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 27: Line 27:
 
== See also ==
 
== See also ==
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
 
[[Category:Line-handling templates]]
 
[[Category:Line-handling templates]]
  
 
[[no:Mal:Crlf2]]
 
[[no:Mal:Crlf2]]
</includeonly>
+
}}</includeonly>

Latest revision as of 22:15, 24 April 2020

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 * Text causes the * 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