Template:Code: Difference between revisions

From KDE TechBase
No edit summary
No edit summary
 
(36 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| style="background: #F5F5FF;border: 1px solid #0B198C;" width=90% cellpadding=3 cellspacing=1
<div class="codebox">
| style="background: #334D80;color: #FFFFFF;font: bold 13px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; padding: 1 5px 3 5px; " align="center" | {{{title|Code}}}
<div class="codebarbg">{{{title|Code}}}</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
|-
|-
| style="font-size: 100%; padding: 0 5px 0 5px;background: #F5F5FF;color: #000000;" |
{{{1}}}
|}
|}
[[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