Anonymous user
Template:Tt/doc: Difference between revisions
m
Simplify
m (Allow for Template:( to be an escape for {. Template:(( has been updated to escape {{.) |
imported>FrozenPlum m (Simplify) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1:
{{Documentation subpage}}
<!-- Documentation here -->
== Usage ==
▲{{((}}tt|<var>text to format here</var>}}
renders as:
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
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
For example:
Line 24 ⟶ 25:
*123<br/>ABC
=== Parameter ===
<templatedata>
{
"description": "This template is for formatting short bits of content as monospaced (nonproportional) text.",
"format": "inline",
"params": {
"1": {
"label": "Content",
"description": "The content to format as monospaced.",
"required": true,
"type": "content"
}
}
}
</templatedata>
Note: Copied from [[wikipedia:Template:Mono]], renamed to 'tt' because it replaces the tt tag.<br/>▼
"monospace, monospace" needed per [[wikipedia:
<includeonly>
<!-- Template categories/interwikis here -->
▲Note: Copied from [[wikipedia:Template:Mono]], renamed to 'tt' because it replaces the tt tag.<br/>
[[Category:Templates]]
▲"monospace, monospace" needed per [[wikipedia:Wikipedia:Typography#The_monospace_'bug']]
[[Category:Formatting templates]]
</includeonly>
|