Template:Pad/doc: Difference between revisions
From Xen
Jump to navigationJump to search
Lars.kurth (talk | contribs) (Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> ==Usage== Use {{tl|pad}} to insert a horizontally-padding HTML {{tag|span|o…") |
Lars.kurth (talk | contribs) m (→See also) |
||
Line 26: | Line 26: | ||
==See also== |
==See also== |
||
* {{tlx|spaces|n}} - to space by a few spaces, such as <code><nowiki>{{spaces|7}}</nowiki></code> |
* {{tlx|spaces|n}} - to space by a few spaces, such as <code><nowiki>{{spaces|7}}</nowiki></code> |
||
* {{tlx|in5|n}} - to space by 1-to-n spaces, such as <code><nowiki>{{in5|29}}</nowiki></code> |
|||
* {{tlx|gapsize|n|x}} - to space by 1-to-n spaces |
Latest revision as of 01:16, 3 July 2012
This is a documentation subpage for Template:Pad. It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
Usage
Use {{pad}} to insert a horizontally-padding HTML <span>
inline. The template takes one unnamed parameter; a width value specified in px, em or ex. The default is 1 em.
Examples
Indenting by 50 pixels (50px):
Indenting 50px causes<br />{{pad|50px}}this amount of space.
- Indenting 50px causes
this amount of space.
Width of a year-range (4.8em):
1492-1540 Exploration by<br />{{pad|4.8em}}Columbus & others.
- 1492-1540 Exploration by
Columbus & others.
For 1em and 6em:
This is a {{pad|1em}} 1em padded sentence.
This is a {{pad|6em}} 6em padded example.
Produces:
- This is a 1em padded sentence.
- This is a 6em padded example.
See also
- {{spaces|n}} - to space by a few spaces, such as
{{spaces|7}}