Template:Code
Jump to navigation
Jump to search
| Template:Code | {{Code
|format=
|value=
|modifier=
}} |
|
<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 $format Preset 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 $value Code 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
- Template:Flag
- Template:Br
- Template:Case
- Template:Vehicle row
- Template:Vehicle table
- Template:Car Finder bio
- Template:Chase
- Template:Button
- Template:Pixarpedia bio
- Template:Cars Land plaque
- Template:Tooltip
- Template:H
- Template:Label
- Template:Table end
- Template:Ref
- Template:Infobox
- Template:Wayback
- Template:Series index
- Template:Vehicle list
- Template:Current case
- Template:Numbersort
- Template:Sortkey
- Template:Colno amend
- Template:Product number
- Template:Case/printContent
- Template:GetCaseStats
- Template:YT
- Template:Related models
- Template:Vehicle escape
- Template:Media types
- Template:Col
- Template:Model bio
- Template:Case/setFormat
- Template:SS
- Template:MakeSimpleString
- Template:Tref
- Template:Title prefix
- Template:Text tools
- Template:Merch table
- Template:Product label
- Template:FF
- Template:Gallery
- Template:Vehicles included
- Template:Service ref
- Template:Link color
- Template:MTP
- Template:Mainline listings
- Template:MTC
- Template:Case header/base
- Template:Case header
- Template:SWval
- Template:Banner notice
- Template:Exception
- Template:Msg
- Template:Msg group
- Template:Codeblock
- Template:Paramname