Actions

Template

Difference between revisions of "Pad"

From Sonic Retro

(This should fix it)
(Added description)
Line 1: Line 1:
 
<includeonly><span style="padding-left: {{{1|1em}}};">&nbsp;</span></includeonly><noinclude>
 
<includeonly><span style="padding-left: {{{1|1em}}};">&nbsp;</span></includeonly><noinclude>
<!-- For some reason, adding anything to this page out of the scope of these tags (noinclude & invisible text) will make the desired function of the template to go piss on itself / not work. To see what the template is for, go to http://en.wikipedia.org/wiki/Template:Pad -->
+
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:
Test
+
 
 +
<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>

Revision as of 10:30, 3 August 2010

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.