Template:Pl2: Difference between revisions

From miki
Jump to navigation Jump to search
({{{1}}} to a new line so that template works also with tables... (hopefully))
No edit summary
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
<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!