Jump to content

Template:Tt

From DynamicPageList4 Manual
Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this template's documentation (edit) (about template documentation).
No TemplateStyles exist (create). Remember to add after the opening <includeonly> tag:
<templatestyles src="Template:Tt/styles.css" />


Examples

[edit source]
  • {{Tt|term}} gives:

term

{{tt|text to format here}}

renders as:

text to format here

It is a replacement for <tt>...</tt>, which is an obsolete element under HTML5. (Non-conforming features)

This template should be used where the content is being rendered in monospaced text for purely stylistic/display reasons, where this display has no particular semantic significance.

It cannot be used to mark up multiple paragraphs, sections or other block elements, as it uses <span>...</span>, which is an inline element.

<code>...</code> is normally used to indicate source code and <var>...</var> for variables or variable input.
<kbd>...</kbd> and <samp>...</samp> display similarly to <tt>, and are normally used for keyboard and samples.

For example
  • {{tt|123<br/>ABC}}
produces
  • 123
    ABC
rather than
  • 123
    ABC

Note: Copied from wikipedia:Template:Mono, renamed to 'tt' because it replaces the tt tag.
"monospace, monospace" needed per WP:MONO

Template Data

[edit source]

This template is for formatting short bits of content as monospaced (nonproportional) text. It is a replacement for <code><nowiki><tt>...</tt></nowiki></code>, which is an obsolete element under HTML5.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Content1

The content to format as monospaced.

Contentrequired


Cookies help us deliver our services. By using our services, you agree to our use of cookies.