Difference between revisions of "Template:Spacer/doc"
Jump to navigation
Jump to search
old>Realpsojed (Created page with "{{Doc/start}} A simple template that checks if provided parameter is empty. If not empty, returns the parameter with a '''line break''' at the end. Usage:<br> <nowiki>This...") |
m (2 revisions imported) |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
Usage:<br> | Usage:<br> | ||
<nowiki>This is a {{Spacer|simple}} text.</nowiki> | <nowiki>This is a {{Spacer|simple}} text.</nowiki> | ||
This is a {{Spacer|simple}} text. | |||
This is a {{Spacer| | |||
An empty example does not produce the line break: | |||
<nowiki>This is a {{Spacer|}} text.</nowiki> | |||
This is a {{Spacer|}} text. | |||
But When using empty HTML and CSS tags, the tags are resolved as not empty and return with the linebreak: | |||
<nowiki>This is a {{Spacer|<span></span>}} text.</nowiki> | |||
This is a {{Spacer|<span></span>}} text. | |||
{{Doc/end}} | {{Doc/end}} |
Latest revision as of 21:02, 21 November 2021
Documentation
[purge]
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.