Difference between revisions of "Template:Code/doc"
From Autopilot Wiki
mediawiki>Samwilson |
m (1 revision imported) |
Latest revision as of 04:01, 31 December 2020
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Documentation subpage|noshift=1|uselang=⧼lang⧽}}
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=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}}