Template:Mono/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(←Created page with "{{Uses TemplateStyles| * Template:Mono/styles.css}} ==Description== This template is used to format short bits of content as monospaced text. It is a quick...") |
mNo edit summary |
||
Line 21: | Line 21: | ||
==Credits== |
==Credits== |
||
This template's code was taken from the [[w:en:Template:Mono|English Wikipedia]]. |
This template's code was taken from the [[w:en:Template:Mono|English Wikipedia]]. |
||
==References== |
|||
{{Reflist}} |
|||
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly> |
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly> |
Latest revision as of 01:56, 7 September 2019
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.