Template:Code: Difference between revisions

From Guild of Archivists
(allow class, id and style, like other shortcut templates.)
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
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>
<code {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}}>{{{1}}}</code><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 00:16, 21 January 2018

{{{1}}}

Template documentation[create]