![]() | Text has been copied to or from this page; see the list below. The source pages now serve to
provide attribution for the content in the destination pages and must not be deleted as long as the copies exist. For attribution and to access older versions of the copied text, please see the history links below.
|
The documentation for this template currently says it should not be used for inline source code, but I and others have been using it for this purpose because <code> is so ugly. What should I do to get this changed? QVVERTYVS ( hm?) 10:45, 15 March 2015 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Why is "monospace" listed twice? List it once. Anomalocaris ( talk) 20:40, 3 November 2017 (UTC)
Izno, a search for the emitted templatestyles shows that this template has been substituted ca. 35 times since it was converted to use templatestyles. do we need to add some {{ ifsubst}} or unsubst logic to avoid unclean substitution? Frietjes ( talk) 16:54, 23 October 2018 (UTC)
Substituting a template which uses TemplateStyles leaves the <templatestyles />
tag in the resulting code, which may be confusing and negates many of the benefits of using TemplateStyles in the first place.
), so the issue here is resolved, assuming no one else tries to substitute it. for {{
smallcaps}} there is now {{
ifsubst}} to prevent unclean substitution. we could do that here as well.
Frietjes (
talk)
23:22, 24 October 2018 (UTC)This template does not work around or inside wikilinks and external links.
[[Fox|{{mono|The quick brown fox}}]]
:
The quick brown fox{{mono|[[Fox|The quick brown fox]]}}
:
The quick brown fox[https://www.harvard.edu/ {{mono|Harvard}}]
:
Harvard{{mono|[https://www.harvard.edu/ Harvard]}}
:
Harvard— Anomalocaris ( talk) 19:41, 16 May 2021 (UTC)
I had forgotten that I had posted the above, and I just edited and removed a bunch of edits to this talk page based on the belief that the template has problems around <nowiki>...</nowiki>
tags. I now believe the problem related to wikilinks. The problem with wikilinks and external links remains and should be fixed. —
Anomalocaris (
talk)
04:25, 13 July 2022 (UTC)
Addition text cases, with partial-monospacing of the link text:
[[Fox|The {{mono|quick brown}} fox]]
:
The quick brown fox[https://www.harvard.edu/ {{mono|Harvard}} University]
:
Harvard University[[Fox|<span style="font-family: monospace;">The quick brown fox</span>]]
:
The quick brown fox[https://www.harvard.edu/ <span style="font-family: monospace;">Harvard</span>
:
Harvard[[Fox|The <span style="font-family: monospace;">quick brown</span> fox]]
:
The quick brown fox[https://www.harvard.edu/ <span style="font-family: monospace;">Harvard</span> University]
:
Harvard UniversityJust curious. Currently, Template:Mono/styles.css has
font-family: monospace, monospace;
Is there a reason for this repetition? - DePiep ( talk) 18:15, 19 November 2021 (UTC)
font: family: monospace;
specially and reduces the font size. monospace, monospace
works around this. I'm not sure if this still is a problem in newer browsers. See also
T176636. --
Tholme (
talk)
15:15, 15 March 2022 (UTC)
T176636The font-family: monospace, monospace;
trick, to stop certain browsers from messing with the relative font size of monospaced text, reportedly no longer works across all browsers, while font-family: monospace, serif;
or font-family: monospace, sans-serif;
will work (and no browser will change the display to [sans-]serif, because "monospace" is matched first). NB: I got this from forums (StackExchange, I think, and some others, not from CSS books from Wiley or the like. —
SMcCandlish
☏
¢ 😼
11:31, 2 May 2024 (UTC)