Template:Code: Difference between revisions
m (Fixing up template to use parameters) |
No edit summary |
||
(25 intermediate revisions by 2 users not shown) | |||
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 {{{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 | ||
|- | |- | ||
| ''' | | '''text''' || The code | ||
|- | |- | ||
|} | |} |
Latest revision as of 21:49, 3 March 2011
{{{text}}}
Parameters
Parameter | Function |
---|---|
title | A label for the code |
args | Highlighting type and line-numbering settings |
text | The code |