Actions

Template

Difference between revisions of "Pad"

From Sonic Retro

m (Text replace - "Category:Sonic Retro Templates" to "Category:Sonic Retro templates")
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span style="padding-left: {{{1|1em}}};">&nbsp;</span>
+
<includeonly><span style="padding-left: {{{1|1em}}};">&nbsp;</span></includeonly><noinclude>
<noinclude>
+
Inserts a horizontally padding span inline. It takes one unnamed parameter: a width value specified in px, em or ex. The default is 1 em. For example, the following code:
<!-- Adding documentation or etc. onto this page will make the template not function. -->
+
 
 +
<tt>This is a <nowiki>{{pad|6em}}</nowiki> padded sentence.</tt>
 +
 
 +
produces
 +
 
 +
This is a {{pad|6em}} padded sentence.
 +
 
 +
[[Category:Sonic Retro templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 01:05, 17 November 2014

Inserts a horizontally padding span inline. It takes one unnamed parameter: a width value specified in px, em or ex. The default is 1 em. For example, the following code:

This is a {{pad|6em}} padded sentence.

produces

This is a   padded sentence.