Template:Mono: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(←Created page with "<templatestyles src="Mono/styles.css"/><span class="monospaced">{{{2|{{{1}}}}}}</span>") |
(way to copy from w:en:Template:Mono. without attribution.) |
||
Line 1: | Line 1: | ||
<templatestyles src="Mono/styles.css"/><span class="monospaced">{{{2|{{{1}}}}}}</span> |
<templatestyles src="Mono/styles.css"/><span class="monospaced">{{{2|{{{1}}}}}}</span><noinclude> |
||
{{Documentation}} |
|||
</noinclude> |
Latest revision as of 20:28, 6 September 2019
{{{1}}}
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.
References[edit source]
Visit Template:Mono/doc to edit this text! (How does this work?) (Refresh this text - why?)