Difference between revisions of "Template:Spacer"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(Created page with "{{#if: {{{1|}}} | {{{1}}}<br> | }}<noinclude>{{Doc}} Category:Templates</noinclude>")
 
m (1 revision imported)
 
(No difference)

Latest revision as of 21:02, 21 November 2021

Template-info.png Documentation

A simple template that checks if provided parameter is empty. If not empty, returns the parameter with a line break at the end.


Usage:

This is a {{Spacer|simple}} text.

This is a simple
text.


An empty example does not produce the line break:

This is a {{Spacer|}} text.

This is a text.


But When using empty HTML and CSS tags, the tags are resolved as not empty and return with the linebreak:

This is a {{Spacer|<span></span>}} text.

This is a
text.