Template:Code: Difference between revisions

From Nasqueron Agora
(Imported from MediaWiki site. Authors credit: https://www.mediawiki.org/w/index.php?title=Template:Code&action=history License: If eligible, CC BY-SA 3.0)
 
(CSS class .inline-code)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#if:{{{inline|}}}|<code {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}}>{{#tag:syntaxhighlight|{{{code|{{{1}}}}}}|lang="{{{lang|{{{2|text}}}}}}"|inline=true}}</code>|{{#if:{{{header|}}}|<u><small>{{{header}}}</small></u>}}{{#tag:syntaxhighlight
<div class="inline-code">{{#if:{{{inline|}}}|<code {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}}>{{#tag:syntaxhighlight|{{{code|{{{1}}}}}}|lang="{{{lang|{{{2|text}}}}}}"|inline=true}}</code></div>|{{#if:{{{header|}}}|<u><small>{{{header}}}</small></u>}}{{#tag:syntaxhighlight
|{{{code|{{{1}}}}}}
|{{{code|{{{1}}}}}}
|lang={{{lang|{{{2|bash}}}}}}
|lang={{{lang|{{{2|bash}}}}}}

Latest revision as of 08:27, 27 May 2023

{{{1}}}

Documentation: Template:Code on mediawiki.org