Template:Pl2: Difference between revisions

From miki
Jump to navigation Jump to search
(Template to pad any element by 2em on the left)
 
({{{1}}} to a new line so that template works also with tables... (hopefully))
Line 1: Line 1:
<div style="padding-left:2em;">{{{1}}}</div><noinclude>
<div style="padding-left:2em;">
{{{1}}}</div><noinclude>
<br/><br/>
<br/><br/>
The template '''{{PAGENAME}}''' can be used to pad any element on the left by '''2em'''. Example:
The template '''{{PAGENAME}}''' can be used to pad any element on the left by '''2em'''. Example:

Revision as of 15:03, 27 October 2009

{{{1}}}



The template Pl2 can be used to pad any element on the left by 2em. Example:

* An example of Bash script:
{{lp2|<source lang="bash">echo Hello, World!</source>}}

This gives:

  • An example of Bash script:
echo Hello, World!