Difference between revisions of "Template:Code"

From Nookipedia, the Animal Crossing wiki
(Created page with "{{#if:{{{inline|}}}|<code {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}}>{{#tag:syntaxhighlight|{{{code|{{{1...")
 
(For our purposes I think inline should be default)
 
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
+
{{#if:{{{inline|n}}}|<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
 
|{{{code|{{{1}}}}}}
 
|{{{code|{{{1}}}}}}
 
|lang={{{lang|{{{2|bash}}}}}}
 
|lang={{{lang|{{{2|bash}}}}}}

Latest revision as of 04:17, October 21, 2021

{{{1}}}

Template documentation (view)


Wraps argument with <code> </code>tags.

Example: {{Code|test}} yields test.

Taken from MediaWiki.