Template:Code: Difference between revisions

114 bytes added ,  10 years ago
allow class, id and style, like other shortcut templates.
m (Changed protection level of Template:Code: Enable access by template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
(allow class, id and style, like other shortcut templates.)
Line 1:
<code {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}}>{{#tag:syntaxhighlight|{{{code|{{{1}}}}}}|lang="{{{lang|{{{2|text}}}}}}"|enclose="none"}}</code><noinclude>
{{documentation}}
</noinclude>
Anonymous user