Difference between revisions of "Template:Break/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(category update)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(12 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{Lua|Module:Break}}
+
{{Lua|Module:String}}
 
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
Replaces <nowiki><br /></nowiki> where this is unsuitable, for example the rare cases where it is necessary to duplicate <nowiki><br /><br /></nowiki> which will be "fixed" by bots.
+
{{template shortcut|brk|crlf}}
 +
Replaces <code><nowiki><br /></nowiki></code> where this is unsuitable, for example the rare cases where it is necessary to duplicate <code><nowiki><br /><br /></nowiki></code> which will be "fixed" by bots.
  
 
Also avoids HTML mark-up in articles.
 
Also avoids HTML mark-up in articles.
  
 
== Usage ==
 
== Usage ==
* {{tl2|break}} = one <nowiki><br /></nowiki>
+
* {{tlx|break}} = one <code><nowiki><br /></nowiki></code>
* {{tl2|break|5}} = five <nowiki><br /><br /><br /><br /><br /></nowiki>
+
* {{tlx|break|5}} = <code><nowiki><br /><br /><br /><br /><br /></nowiki></code>
  
 
The parameter can be any integer.
 
The parameter can be any integer.
 +
 +
{{tlc|brk}} and {{tlc|crlf}} are also redirects (shortcuts), and may be used instead.
  
 
== See also ==
 
== See also ==
* [[:Template:Crlf]], which emits only one <code><nowiki><br /></nowiki></code>
+
* {{tlx|clear}} (shortcuts: {{tlc|-}}, {{tlc|br}}, and {{tlc|clr}})
* [[:Template:-]]
+
* [[Help:Line-break handling]]
* [[:Template:Clear]]
+
<includeonly>{{Sandbox other||
* [[Wikipedia:Line-break handling]]
 
 
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
 
<!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
 
<!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
 
[[Category:Line-handling templates]]
 
[[Category:Line-handling templates]]
 
[[Category:Wikipedia XHTML tag-replacing templates]]
 
[[Category:Wikipedia XHTML tag-replacing templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 00:19, 24 April 2020

Replaces <br /> where this is unsuitable, for example the rare cases where it is necessary to duplicate <br /><br /> which will be "fixed" by bots.

Also avoids HTML mark-up in articles.

Usage

  • {{break}} = one <br />
  • {{break|5}} = <br /><br /><br /><br /><br />

The parameter can be any integer.

{{brk}} and {{crlf}} are also redirects (shortcuts), and may be used instead.

See also