Template:Code: Difference between revisions

From KDE TechBase
No edit summary
No edit summary
 
(34 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div class="codebarbg">Code</div>
<div class="codebox">
<div class="ToKeepThisInOnePiece"><div class="rtop"><span class="r1"></span><span class="r2"></span><span class="r3"></span><span class="r4"></span></div><div class="rmiddle"><div class="rcode">{{{1}}}</div><!--/rcode--></div><!--/rmiddle--><div class="rbottom"><span class="r4"></span><span class="r3"></span><span class="r2"></span><span class="r1"></span></div>
<div class="codebarbg">{{{title|Code}}}</div>
</div>
<code {{{args|cpp}}}>{{{text}}}</code>
</div><noinclude>
 
==Parameters==
 
{| class="wikitable"
|-
! Parameter !! Function
|-
| '''title''' || A label for the code
|-
| '''args''' || Highlighting type and line-numbering settings
|-
| '''text''' || The code
|-
|}
 
[[Category:Template]]
</noinclude>

Latest revision as of 21:49, 3 March 2011

Code

{{{text}}}

Parameters

Parameter Function
title A label for the code
args Highlighting type and line-numbering settings
text The code