Template:Pl2: Difference between revisions

From miki
Jump to navigation Jump to search
(Template to pad any element by 2em on the left)
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
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:
<pre>
<pre>
* An example of Bash script:
* An example of Bash script:
{{lp2|<source lang="bash">echo Hello, World!</source>}}
{{pl2|<source lang="bash">echo Hello, World!</source>}}
</pre>
</pre>
This gives:
This gives:
* An example of Bash script:
* An example of Bash script:
{{lp2|<source lang="bash">echo Hello, World!</source>}}
{{pl2|<source lang="bash">echo Hello, World!</source>}}
</noinclude>
</noinclude>

Latest revision as of 14:47, 16 November 2009

{{{1}}}



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

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

This gives:

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