Template:Mono/doc
Jump to navigation
Jump to search
Description[edit source]
This template is used to format short bits of content as monospaced text. It is a quick and simple shorthand for the necessary CSS code. It is a replacement for <tt> ... </tt>
which is obsolete in HTML5.[1]
It should be used for purely stylistic reasons only. For programming code, use <code> ... </code>
. For variables or variable input, use <var> ... </var>
. For keyboard inputs, use <kbd> ... </kbd>
.
This template should not be used with citation templates as it can pollute the COinS metadata they produce.
Usage[edit source]
{{Mono|<text>}}
For example:
{{Mono|Foo Bar}}
Renders as:
Foo Bar
Credits[edit source]
This template's code was taken from the English Wikipedia.