Template:Code: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
(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: 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|}}}|id={{{id|}}}|style={{{style|}}}|inline=1}}<noinclude>
{{documentation}}
{{documentation}}
{{En-WP attribution notice|Template:Code}}
</noinclude>
</noinclude>

Latest revision as of 19:48, 31 May 2021

{{{1}}}

Wikipedia logo This template uses material from the Wikipedia template Template:Code, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors).