Template:Mono/doc

From The Sims Wiki, a collaborative database for The Sims series
This is an old revision of this page, as edited by K6ka (talk | contribs) at 21:49, 6 September 2019 (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..."). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template uses TemplateStyles

Description

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

{{Mono|<text>}}

For example:

{{Mono|Foo Bar}}

Renders as:

Foo Bar

Credits

This template's code was taken from the English Wikipedia.