Template:Code: Difference between revisions

41 bytes removed ,  2 years ago
m
1 revision imported from wikipedia:Template:Code
(allow class, id and style, like other shortcut templates.)
m (1 revision imported from wikipedia:Template:Code)
 
(7 intermediate revisions by 4 users not shown)
Line 1:
<code {{#iftag:syntaxhighlight|{{{classcode|}}}|class="{{{class1}}}"}} }|lang={{#if:{{{idlang|}}}|id="{{{id2|text}}}"}} {{#if:{{{style|}}}|styleclass="{{{styleclass|}}}"}}>{{#tag:syntaxhighlight|id={{{codeid|{{{1}}}}}}|langstyle="{{{langstyle|{{{2|text}}}}}}"|encloseinline="none"1}}</code><noinclude>
{{documentation}}
{{En-WP attribution notice|Template:Code}}
</noinclude>