Difference between revisions of "Template:Break"

From blackwiki
Jump to navigation Jump to search
imported>Fuhghettaboutit
m (Changed protection level of Template:Break: Enable access by template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
imported>Frietjes
Line 1: Line 1:
{{<includeonly>safesubst:</includeonly>#invoke:Break|main|1={{{1|}}}}}<noinclude>
+
{{<includeonly>safesubst:</includeonly>#invoke:string|rep|<br/>|{{#iferror:{{#expr:1*{{{1|1}}}}}|1}}}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 17:01, 4 January 2018


Template documentation[view] [edit] [history] [purge]

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