Difference between revisions of "Template:Code"

Jump to: navigation, search
m (Fixing up template to use parameters)
m
Line 1: Line 1:
 
<div class="codebox">
 
<div class="codebox">
 
<div class="codebarbg">{{{title|Code}}}</div>
 
<div class="codebarbg">{{{title|Code}}}</div>
<code {{{args|cpp}}}>{{{code}}}</code>
+
<code {{{args|cpp}}}>{{{text}}}</code>
 
</div><noinclude>
 
</div><noinclude>
  
Line 14: Line 14:
 
| '''args''' || Highlighting type and line-numbering settings
 
| '''args''' || Highlighting type and line-numbering settings
 
|-
 
|-
| '''code''' || The code
+
| '''text''' || The code
 
|-
 
|-
 
|}
 
|}

Revision as of 17:47, 4 March 2007

Code

{{{text}}}

Parameters

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

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal