Difference between revisions of "Template:Break/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Mr. Guye
(Ongoing test to see if User:Pppery's proposal @ Wikipedia:Miscellany for deletion/Module:Break will actually work. The deletion of Module:Break is damaging since Template:Break relies on it and that template is transcluded onto mainspace.)
imported>Andrybak
m (sync with live version)
 
Line 1: Line 1:
{{<includeonly>safesubst:</includeonly>#invoke:String|rep|<br/>|{{{1|1}}}}}<noinclude>
+
{{<includeonly>safesubst:</includeonly>#invoke:string|rep|<br/>|{{<includeonly>safesubst:</includeonly>#iferror:{{<includeonly>safesubst:</includeonly>#expr:1*{{{1|1}}}}}|1}}}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 11:38, 2 August 2020


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