Template:Tt/doc: Difference between revisions

m
Simplify
imported>FrozenPlum
m (5 revisions imported: Imported from help.fandom.com, Extension:DPL3 pages, which are for the obsolete version of DPL3 extension for MediaWiki 1.33, to adapt to forked (newer) extension version.)
imported>FrozenPlum
m (Simplify)
 
(2 intermediate revisions by the same user not shown)
Line 1:
{{Documentation subpage}}
{{doc/start}}
<!-- Documentation here -->
== Usage ==
 
== Usage ==
{{tlx|tt|<var>text to format here</var>}}
 
Line 8 ⟶ 9:
{{tt|text to format here}}
 
This template is for formatting short bits of content (the only parameter) as monospaced (nonproportional) text. It is simply a quick shorthand for the necessary CSS code. It is a replacement for {{tag|<code><nowiki><tt}}>...</tt></nowiki></code>, which is an obsolete element under HTML5. ([https://www.w3.org/TR/html5/obsolete.html#non-conforming-features 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 {{tag|<code><nowiki><span}}>...</span></nowiki></code>, which is an inline element.
 
{{tag|<code}}><nowiki><code>...</code></nowiki></code> is normally used to indicate source code and {{tag|<code><nowiki><var}}>...</var></nowiki></code> for variables or variable input.<br/>
{{tag|<code><nowiki><kbd}}>...</kbd></nowiki></code> and {{tag|<code><nowiki><samp>...</samp}}></nowiki></code> display similarly to {{tag|<code><nowiki><tt|o}}></nowiki></code>, and are normally used for keyboard and samples.
 
For example:
Line 43 ⟶ 44:
"monospace, monospace" needed per [[wikipedia:WP:MONO|WP:MONO]]
 
<includeonly>
<noinclude>
<!-- Template categories/interwikis here -->
[[tr:Şablon:Tt/belge]]
[[Category:Templates]]
</noinclude>
[[Category:Formatting templates]]
{{doc/end}}
</includeonly>
Anonymous user