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...")
 
 
(One intermediate revision by one other 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
+
{{#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}}}}}}
 
}}}}<noinclude>
 
}}}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 +
[[Category:Formatting templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 16:06, November 2, 2024

{{{1}}}

Template documentation (view)


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

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

Taken from MediaWiki.