Template:Pad/doc: Difference between revisions

From Theosophy Wiki
Jump to navigation Jump to search
m (1 revision)
 
No edit summary
 
Line 33: Line 33:


[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
[[ar: قالب:Pad]]
[[cy:Nodyn:Pad]]
[[et:Mall:Pad]]
[[eo:Ŝablono:Pad]]
[[es:Plantilla:Pad]]
[[hsb:Předłoha:Pad]]
[[id:Templat:Pad]]
[[ko:틀:여백]]
[[ja:Template:Pad]]
[[mk:Шаблон:Фатирање]]
[[pl:Szablon:Pad]]
[[pt:Predefinição:Pad]]
[[sl:Predloga:pad]]
[[uk:Шаблон:Pad]]
</includeonly>
</includeonly>

Latest revision as of 14:18, 11 July 2012


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}}
  • {{in5|n}} - to space by 1-to-n spaces, such as {{in5|29}}