Template:Code/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Code. It contains usage information, categories and other content that is not part of the original template page. |
Usage
This is a semantic markup wrapper template for the HTML element <code>...</code>
. It can be used without a parameter to wrap code in a formatted block, with syntax highlighting, or with |inline=
for a leaner presentation.
Example:
{{code|font-family: 'Times New Roman', serif;}}
produces:
font-family: 'Times New Roman', serif;
Inline:
{{code|inline
Template documentation[create]
y|font-family: 'Times New Roman', serif;}}
produces:
font-family: 'Times New Roman', serif;
and is equivalent to:
<code>font-family: 'Times New Roman', serif;</code>
See also
- {{inline-code}}