Template:Code: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
allow class, id and style, like other shortcut templates.
Update from sandbox
Line 1: 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>
{{#tag:syntaxhighlight|{{{code|{{{1}}}}}}|lang="{{{lang|{{{2|text}}}}}}"|class="{{{class|}}}"|{{#if:{{{id|}}}|id="{{{id}}}"}}|{{#if:{{{style|}}}|style="{{{style}}}"}}|inline=1}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>