Jump to content

Template:Break: Difference between revisions

From Wiki - Scioly.org
Undo revision 92687 by Jaspattack (talk)
Tag: Undo
Pi-Bot (talk | contribs)
m Replacing old documentation reference with new Documentation template.
 
Line 19: Line 19:
|19=<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
|19=<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
|20=<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
|20=<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
|<br />}}</includeonly><noinclude>{{Template:Break/doc}}[[Category:Templates]]</noinclude>
|<br />}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>

Latest revision as of 22:53, 5 August 2020

Template documentation

Adds <br /> (a line break) to where this template is referenced. The first (and only) argument is the number of times the tag is inserted.

Using this template is preferable to using the HTML because, in general, HTML markup should be avoided in articles to the highest extent possible.

Please note these line breaks are not the same as creating a new paragraph (aka, in wikitext, inserting two blank lines). For the differences, please see here.

Usage

{{break}} adds one line break (aka, the equivalent of <br />)
{{break|5}} adds five line breaks (aka, the equivalent of <br /><br /><br /><br /><br />)

Examples

Code Result
Scioly.org was founded in 1998.
{{break}}
Since then, it has evolved into an amazing community.

Scioly.org was founded in 1998.
Since then, it has evolved into an amazing community.

'''With paragraph break:'''

{{legend|red|Hey look it's a red legend!}}

{{legend|red|Hey look it's a red legend!}}

'''With <code><nowiki>{{break}}</nowiki></code> break:'''

{{legend|red|Hey look it's a red legend!}}
{{break}}
{{legend|red|Hey look it's a red legend!}}

With paragraph break:

Hey look it's a red legend! Hey look it's a red legend!

With {{break}} break:

Hey look it's a red legend!
Hey look it's a red legend!

What if we want a lot of space?
{{break|5}}
Well... we can have it!

What if we want a lot of space?




Well... we can have it!