Template:T\: Difference between revisions
Template page
More actions
mNo edit summary |
simplify |
||
| (7 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{#tag:span|{{{1}}}|style=font-family:monospace,monospace;font-size:1{{#if:{{{2|}}}|{{{2}}}|28}}%;{{{style|}}}}}<noinclude>{{documentation|content= | |||
This template | |||
while the | This template formats the text to a larger <span style="font-family:monospace,monospace;font-size:128%">teletype</span> style (128%), while the obsolete {{T\|<code><nowiki><tt></nowiki></code>}} displays the {{T\|teletype|00}} always {{T\|too small|00}}. | ||
See also the CSS tags <kbd>kbd for "keyboard"</kbd>, or <var>var for variables</var>.<!-- <tt>oooo</tt><var>o</var><kbd>oooo</kbd> --> | |||
With the teletype font 2×"monospace" the letters have less difference between {{W|Baseline (typography)|x-height}} and {{W|Baseline (typography)|cap height}}: | |||
compare «m{{T\|m}}m» (128%) with «C{{T\|C}}C» (128%) or «m{{T\|m|14}}m» (114%) with «C{{T\|C|24}}C» (124%) or «C{{T\|C|32}}C» (1'''32'''%) | |||
[[Category:Formatting templates|T\]] | [[Category:Formatting templates|T\]] | ||
</noinclude> | }}</noinclude> | ||
Latest revision as of 10:51, 12 March 2023
{{{1}}}
This template formats the text to a larger teletype style (128%), while the obsolete <tt> displays the teletype always too small.
See also the CSS tags kbd for "keyboard", or var for variables.
With the teletype font 2×"monospace" the letters have less difference between x-height and cap height:
compare «mmm» (128%) with «CCC» (128%) or «mmm» (114%) with «CCC» (124%) or «CCC» (132%)