Template:T\: Difference between revisions
Template page
More actions
m +parm |
m format |
||
| Line 1: | Line 1: | ||
{{#tag:span|{{{1}}}|style=font-family:monospace,monospace;font-size: | {{#tag:span|{{{1}}}|style=font-family:monospace,monospace;font-size:1{{#if:{{{2|}}}|{{{2}}}|28}}%;{{{style|}}}}}<noinclude> | ||
This template | This template formats the text to a larger <span style="font-family:monospace,monospace;font-size:128%">teletype</span> style (128%),<br> | ||
while the standard {{T\|<code><nowiki><tt></nowiki></code>}} displays the <tt>teletype</tt> always <tt>too small</tt>. | while the standard {{T\|<code><nowiki><tt></nowiki></code>}} displays the <tt>teletype</tt> always <tt>too small</tt>. | ||
With the teletype font 2×"monospace" the letters have less difference between {{W|Baseline (typography)|x-height}} and {{W|Baseline (typography)|cap heigt}};<br> | |||
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%) | |||
[[Category:Formatting templates|T\]] | [[Category:Formatting templates|T\]] | ||
</noinclude> | </noinclude> | ||
Revision as of 05:57, 18 September 2020
{{{1}}}
This template formats the text to a larger teletype style (128%),
while the standard <tt> displays the teletype always too small.
With the teletype font 2×"monospace" the letters have less difference between x-height and cap heigt;
compare «mmm» (128%) with «CCC» (128%) or «mmm» (114%) with «CCC» (124%)