Editing Template:Pad

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
<span style="padding-left: {{{1|1em}}};">&nbsp;</span>
 
<span style="padding-left: {{{1|1em}}};">&nbsp;</span>
  +
  +
==Usage==
  +
  +
Use {{tl|pad}} to insert a horizontally padding HTML <nowiki><span></nowiki> inline. The template takes one unnamed parameter; a width value specified in <tt>px</tt>, <tt>em</tt> or <tt>ex</tt>. The default is <tt>1 em</tt>.
  +
  +
==Examples==
  +
  +
Indenting by 50 pixels (50px):
  +
* <code>Indenting 50px causes<nowiki><br />{{pad|50px}}</nowiki>this amount of space.</code>
  +
* Indenting 50px causes<br />{{pad|50px}}this amount of space.
  +
  +
Width of a year-range (4.8em):
  +
*<code>1492-1540 Exploration by<nowiki><br />{{pad|4.8em}}</nowiki>Columbus & others.</code>
  +
* 1492-1540 Exploration by<br />{{pad|4.8em}}Columbus & others.
  +
  +
For 1em and 6em:
  +
* <code>This is a <nowiki>{{pad|1em}}</nowiki> 1em padded sentence.</code>
  +
* <code>This is a <nowiki>{{pad|6em}}</nowiki> 6em padded example.</code>
  +
''Produces:''
  +
* This is a {{pad|1em}} 1em padded sentence.
  +
* This is a {{pad|6em}} 6em padded example.

Please note that all contributions to Baka-Tsuki are considered to be released under the TLG Translation Common Agreement v.0.4.1 (see Baka-Tsuki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)