Template:Code

From Disney•Pixar CARS Wiki
Jump to navigation Jump to search
Template:Code
{{Code
|format=
|value=
|modifier=
}}
Help

<code> element wrapper, used to display an inline code block for clarity and visual benefit in documentation. Several different formats/styles are registered via {{#switch:}} statement.

Parameters
string$formatPreset to use, automating wrapper keys, links, CSS classes, or whatever else. If not recognized, the standard version will be used, with the contents treated as the $value .
string$valueCode to display. Use of <nowiki> can be consistent even with {{#tag:}} (clarification) and usually should be manually included.
string$modifier(optional) Type/context-dependent. See switch statement.
Returns
string <code> block element
Example
{{code|Insert [[Wikitext]] here}} --> Insert Wikitext here
See also
<syntaxhighlight>

Used by