All the following are in 8A0010 color. For comparison…
The xt template is currently at 114%. The range of 111–114% if fine for me. Noetica likes 113%. PMAnderson, who has a common platform, likes 100% and can handle no more than 108%.
The following section uses <font> because I didn’t want to take the time to figure out how to make face="times new roman" to work with <span> commands. This is an experiment to see if we have more consistent results across different platforms by specifying the typeface rather than leaving it up to the browser preferences setting to substitute any given serif face for “serif”.
face="times new roman"
Let’s all weigh in. Greg L (talk) 20:54, 18 December 2008 (UTC)
The proposed color has to me an "alarming" tinge. Have you considered this better visible and less disquieting variant?:
<span>
face="times new roman, times, palatino"
<span style="color: #007300; font-family: times new roman, times, palatino; font-size: 108%;">
The color of Tony's sig works for me; and it has a name, "darkgreen", which makes for transparent code. Septentrionalis PMAnderson 04:02, 19 December 2008 (UTC)
<span style="color: darkgreen; font-family: times new roman, times, palatino; font-size: 108%;">
This paragraph has the proper span code for controlling serif for the greatest possible consistency in appearance and size. It does so using the following span code: <span style{{=}}"color: #900012; font-family: 'Times New Roman', Times, serif; font-size: 108%;">: Editors should write 5 cats and 32 dogs or five cats and thirty-two dogs, but do not write five cats and 32 dogs.
<span style{{=}}"color: #900012; font-family: 'Times New Roman', Times, serif; font-size: 108%;">
Note that it does so by specifying Times New Roman as the preferred typeface. If a computer doesn’t have that face installed, then the above span resorts to the second choice of Times. Failing that, the fall-back position is to default to the serif typestyle as directed by the browser’s preferences setting. By specifying Times New Roman, we have maximum confidence that our relative size specification is acting on a known typeface; in this case, Times New Roman, which has characters that are smaller than many typefaces. Adjusting Times New Roman to roughly 108% ensures it is displayed as closely as possible to the same size as the sans-serif typeface used for the rest of the text.
This paragraph is the same as above except that it uses a 39.2% green, which is precisely the same as Tony’s signature. It does so using the following span code: <span style{{=}}"color: #006400; font-family: 'Times New Roman', Times, serif; font-size: 108%;">: Editors should write 5 cats and 32 dogs or five cats and thirty-two dogs, but do not write five cats and 32 dogs.
<span style{{=}}"color: #006400; font-family: 'Times New Roman', Times, serif; font-size: 108%;">
I’ve taken the liberty of adjusting {{Example text}} for the Times New Roman preference at 108% but have left its color as is. We haven’t received hardly any feedback on the use of dark green. Given that PMAnderson and I (remarkably) agree on this point, suggests to me that a dark green is worth exploring. Greg L (talk) 16:09, 19 December 2008 (UTC)
Everyone should now go to MOS and look at the size of the example text. Is it about right? Greg L (talk) 16:39, 19 December 2008 (UTC)
The below “text” is a screen-capture image showing the appearance of text size on Macs running OS X 10.5.6. As you can see below, on Macs running OS X 10.5.6, 100% looks too small. Anything from 107% to 114% works for me. For those editors running Windows, or other OSs, you won’t be able to see the color as Mac users see it; just the absolute and relative sizes of the text. Greg L (talk) 01:34, 19 December 2008 (UTC)
For those who use a different default serif font than Times New Roman, I've made a new list of sizes at Template:Xt/Sandbox, using the current font-face specification. (FWIW, on my laptop 115% looks best...) -- Army1987 – Deeds, not words. 17:49, 19 December 2008 (UTC)
Army: I like your sandbox the sandbox you made. I find that the darkest I can tolerate is “darkgreen” which is 39.2%, decimal 100, and hex 64. As for size, my Mac bins the range of 107% to 114% at the same size, which all looks fine to me. PMAnderson seemed to be suggesting that 108% was the max he could go. But that might be old news because I didn’t get a distinct answer posting an example with force-Times New Roman. I’ll direct his attention to your sandbox. Greg L (talk) 18:29, 19 December 2008 (UTC)
On my laptop:
-- Army1987 – Deeds, not words. 22:29, 19 December 2008 (UTC)
Pretending I believed that rendering only depends on the browser (probably doesn't), it seems that the ones from 107% to 113% should look OK with Firefox, IE and Safari, which comprise about 98% of the usage share of web browsers. What browser are you using, PMA? -- Army1987 – Deeds, not words. 22:42, 19 December 2008 (UTC)
/* Font size: ** We take advantage of keyword scaling- browsers won't go below 9px ** More at http://www.w3.org/2003/07/30-font-size ** http://style.cleverchimp.com/font_size_intervals/altintervals.html */ body { font: x-small sans-serif; background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat; color: black; margin: 0; padding: 0; } /* scale back up to a sane default */ #globalWrapper { font-size: 127%; width: 100%; margin: 0; padding: 0; }
The following example text is coded as {{xt|1= This expression doesn’t contain an equal sign.}}: This expression doesn’t contain an equal sign. But, as you can see, it works. I am confused. Why not include that “1=” feature as a built-in capability? The downside is what?
{{xt|1= This expression doesn’t contain an equal sign.}}
With the “1=”, I can write e = mc2
A quotation box with “1=”? Let’s see…
Preceding text… This expression doesn’t contain an equal sign. And trailing text.
Please explain. Greg L (talk) 02:14, 20 December 2008 (UTC)
1=
If you get insomnia, try reading Help:Template. -- Army1987 – Deeds, not words. 02:31, 20 December 2008 (UTC)
I just saw this implemented while looking at Wikipedia:Lead_section#First_sentence_format. The combination of roman, bold and italic in green, intermixed with blue and purple links, and the contrast in font size with successive paragraphs, is very fragmented looking. With respect, it looks like an homage to the Batman's nemesis the Joker. I don't see the point in changing colour at all.
Regarding font choice: the Wikimedia philosophy for choice dictates that the monobook skin only specifies “sans-serif” font-family. It would make sense to specify only “serif” and respect the reader's choice of serif font, as well as his choice of serif and sans-serif font size.
If we must dictate our favourite font, then please don't start the list with Times New Roman. Better to put Times first. It has about identical metrics but looks much better on the Mac; it isn't found on most Winboxes, so it will fall back to TNR on those machines.
But why not at least start the list with a non-crappy screen font, like Georgia, which is found on every Mac and Win box? —Michael Z. 2008-12-28 23:14 z
<span style="font-family: 'Georgia', serif; color: darkgreen">
We must control the font if we are to overcome that fact that generic serif fonts are smaller than san-serif fonts. I think your suggestion of using Georgia @ 100% is a fine idea.
As for color, there is going to be a never-ending amount of opinion on this issue. Blue is taken. Red is too (broken link). Anything chosen must be a dark version of something so the text doesn’t “pop” and drive people crazy with a look like we’ve had an explosion at the Disney factory. Dark green seemed to make everyone else here happy. Yes, it is a distinct color from the others—but that is by design to avoid confusion; ergo, you’re “Joker” comment.
Bottom line: If there is a problem to fix (108% isn’t satisfactory for Army or Michael), then I propose we go to 100% Georgia. That should solve the lingering size issues. I rather dislike the descending numerals because it makes it look at first like my browser is getting screwed up by the change in typestyle, but that is a very minor issue. But, if this is largely academic (arguments about what official “rules and philosophy” are and what the most “pure, scientific method” for controlling fonts ought to be), then to blazes with all that(!); we follow WP:IGNORE. If it ain’t broke, don’t fix it.
So… fact finding first: Who here doesn’t like the size of 108% Times New Roman but does like the size of 100% Georgia? Let’s look at these:
Georgia @ 100% → Write 5 cats and 32 dogs or five cats and thirty-two dogs, not five cats and 32 dogs.TimesNR @ 108% → Write 5 cats and 32 dogs or five cats and thirty-two dogs, not five cats and 32 dogs
I like either just fine. Greg L (talk) 18:26, 30 December 2008 (UTC)
{{" ' "}}
Try marking up various examples of this code: TimesNR @ 108% → Write <span style{{=}}"color: #006400; font-family: 'Times New Roman', Times, serif; font-size: 108%;">5 cats and 32 dogs</span> or <span style{{=}}"color: #006400; font-family: 'Times New Roman', Times, serif; font-size: 108%;">five cats and thirty-two dogs</span>, not <span style{{=}}"color: #006400; font-family: 'Times New Roman', Times, serif; font-size: 108%;">five cats and 32 dogs</span>.. Make your various comparative versions, post them in live text below, and then follow up with a fixed screen shot of what that section appears like on your computer. Subtleties in color won’t translate, but everything else—and relative sizes—will be properly conveyed. Greg L (talk) 20:20, 30 December 2008 (UTC)
P.S. You were the one who suggested using Georgia, which Army now seems to have taken a shine on. Where are you now with your own original suggestion? Greg L (talk) 20:22, 30 December 2008 (UTC)
Search on "Times New Roman Times serif" (here) = 259,000 hits.Search on "Times Times New Roman serif" (here) = 1,980 hits.Search on "Times New Roman Times serif" HTML (here) = 126,000 hits.Search on "Times Times New Roman serif" HTML (here) = 571 hits.
This explains why when I researched “Specifying font” HTML on Google, the Times New Roman-first option is the only example I encountered. I don’t know why it is this way… it just is. I also don’t think it is an invalid stretch of faith to assume that the majority of Web masters know what they are doing and do things for a reason.
As for Georgia, I’m not so sure this will be problem-free for Linux users. See Linux Web Fonts. It seems, Linux users would only have Georgia if they installed Microsoft fonts for the Web. This might be common for Linux users, or not; I have no expertise in Linux. I do however, note this Google search:
Search on "Georgia Times serif" HTML (here) = 15,900 hits. So it seems that, though it is relatively rare to specify Georgia, it is far more common than specifying Times first.
I’m at a loss though to divine whether you have a solution in search of a problem. MOS has been using {xt} for a while now and there has been no complaints once we settled at Times New Roman → Times → serif @ 108%. If it ain’t broke, don’t fix it. We need stability in templates and shouldn’t mess with it unless there is a good, sound reason for doing so.
Finally, as I stated above, I have no problem—personally—with Georgia. But I think we need to listen to what Army1987 says about Georgia. As you can see above, he has carefully and thoroughly looked into the typeface and, at one point, seemed to be an advocate of it. I even see that he gave Georgia a whirl for four minutes on the {xt} template so he could apparently see how it looked on MOS. He backed out though. Given his thoroughness on this, his (very) logical mind, and his conservatism, I would put very great weight on his findings here. I have also advised him on his talk page that I think he should factor “stability” considerations into the equation and not unnecessarily mess with things without a good reason to do so. If there is anything at all that Wikipedians are adverse to, it is “change.” Greg L (talk) 03:18, 31 December 2008 (UTC)
← "Georgia serif" gives 91,200 hits—why would one explicitly specify Times as a fallback for Georgia? They're quite different serif fonts. -- Army1987 – Deeds, not words. 12:10, 31 December 2008 (UTC)
<span style="font-family: 'Georgia', serif; color: darkgreen;">
<code>
I had only seen this used in blocks of text, but from the examples on this page I realize that it is meant for inline examples, and the format is applied using an HTML span element. The span is a semantically empty element, and only used to apply formatting. To convey meaning through this technique contradicts important accessibility guidelines, specifically WCAG 6.1 “Organize documents so they may be read without style sheets.... [Priority 1].”[6]
Better for editors to use good written style, punctuation, paragraph breaks, and block quotations to show their examples, than to rely on this template and assume that everyone on the web will see green serif text. —Michael Z. 2008-12-30 19:20 z
Did you know we had lengthy discussions here on WT:MOS on this very subject? We even touched upon the subject of the totally blind and how voice-out screen readers might factor into all of this. I might add that my son-in-law has red-green color blindness. He and I looked at various options here, on two different monitors, on this very page when he was up here a few weeks ago. I know you are well-intentioned here. But you know as well as I do that you are new to this template and the discussions that lead up to it. So why are you creating a whole new discussion thread here and presuming to counsel and *enlighten* us on the subject of color and accessibility like we just fell off the turnip truck and don’t understand anything about accessibility? Perhaps you should read all the that has transpired on both WT:MOSNUM and WT:MOS, and then look at our sandbox, and then read the above. Seriously, we’re going over old territory and you might have a better appreciation for how we got to where we are. Greg L (talk) 20:44, 30 December 2008 (UTC)
<span class="example">
Write 5 cats and 32 dogs, or five cats and thirty-two dogs, not five cats and 32 dogs.
Symbols for variables are normally italicized, and symbols for units of measurement are usually upright, for example:
T = 293.15 K m = 5.4 kg
T = 293.15 K
For nested quotations, use double quotation marks for the outermost level, single quotes for the next inner level, and continue alternating. For example, The Dalai Lama stated in his book, The Universe in a Single Atom, “I am told that one of the greatest of all quantum theorists, Richard Feynman, wrote ‘I think I can safely say that nobody understands quantum mechanics’, so at least I feel I am in good company.”
For nested quotations, use double quotes for the outermost level, single quotes for the next inner level, and continue alternating. For example:
The Dalai Lama stated in his book, The Universe in a Single Atom, “I am told that one of the greatest of all quantum theorists, Richard Feynman, wrote ‘I think I can safely say that nobody understands quantum mechanics’, so at least I feel I am in good company.”
(unindent) I am a totally blind editor. User:Academic Challenger, User:Lalue]], and User:Fastfinge also use screen readers, and there are a few others out there whose names I've forgotten. So totally blind people are as rare as hens' teeth on Wikipedia, as they are in the general population of the developed world, but they are out there. The issue as far as I can tell is that the examples above won't degrade gracefully in browsers that don't support CSS. These days, not many blind people would have this problem - most modern screen readers at least support inline CSS. I can't check this easily, but I'm sure version 4.0 of the most popular screen reader, JAWS (released in 2001) would be able to tell that the text in the samples above was green and was in a different font to the other text. (Moving the classes to Monobook.css would cause JAWS versions below 6.0 (before 2004) to completely ignore it). I'm almost certain that NonVisual Desktop Access, a free Windows screen reader, would be able to figure out the font and colour change as well. Most creen readers don't read font and colour changes automatically - they have to be told to do it by the user. But I can tell which text is part of an example in the Manual of Style by context - I have no need for the fancy font and colour changes. Having said all that, I think that some form of emphasis should be used that doesn't rely on CSS. However the editor base that would benefit from this change is vanishingly small, so I don't see this as a high priority. Graham87 05:47, 1 January 2009 (UTC)
Q
Blockquote
<blockquote>
<blockquote class="example">
<q>
.example { font-family: sans; }
<samp>
← OK, OK. Considering that the <samp> element is disabled in wikitext, what "appropriate HTML element" would you use? See Help:HTML in wikitext for the list of HTML elements enabled in wikitext. It's way too easy to point out problems without suggesting solutions. Also note that {{xt2}} uses <blockquote> which is the appropriate element in that situation. -- Army1987 – Deeds, not words. 17:51, 27 January 2009 (UTC)
''
<i>
I don’t quite see the concern for a disastrous setback if Headbomb goes ahead and implements the use of [the template] on MOS. It is the biggest sandbox there is. [sic]
The descending numerals and other quirks of the serif font look stupid and confusing, like some kind of intentional subscripting or font miniaturization in source code examples, which run in bulky, monospace font:
{{FooTemplate|1=value}}
I've fixed this with templates {{bxt}} and {{!bxt}} that substitute the font family (typeface) change with a boldfacing (thus "b") font weight change (i.e., they don't depend just on color, so they're not an accessibility problem).
{{bxt}}
{{!bxt}}
They can also be used in running prose where the font family change is considered so distracting that it's causing editwars.
The templates use typographic boldfacing in CSS, not <strong>...</strong> since emphasis in the sense of importance is not generally intended (if it is, you can use a construction like Blah blah {{bxt|{{strong|yak yak yak}}}}. If you needed to differentiate between regular and emphasized text in a bxt string, try something like Blah blah {{bxt|{{em|yak yak yak}} woot woot}}.
<strong>...</strong>
Blah blah {{bxt|{{strong|yak yak yak}}}}.
Blah blah {{bxt|{{em|yak yak yak}} woot woot}}.
Oh, and the templates do not make use of <code>...</code>; while I created them for use in template documentation, the animals example demonstrates that we can't count on their use being restricted to code. So, for code do something like <code><nowiki>{{#if:</nowiki>{{bxt|<nowiki>{{{1|}}}</nowiki>}}|Foo|Bar}}</code> to get: {{#if:{{{1|}}}|Foo|Bar}}.
<code>...</code>
<code><nowiki>{{#if:</nowiki>{{bxt|<nowiki>{{{1|}}}</nowiki>}}|Foo|Bar}}</code>
{{#if:{{{1|}}}|Foo|Bar}}
PS: This template is actually necessary for code accessibility, since:
{{term|''{{lang|fr|esprit de corps}}''|esprit de corps}}
''{{term|esprit de corps}}''
{{term|esprit de corps}}
produces output that is only distinguished by color, because the font stuff of the {{xt}}/{{!xt}} templates is overridden by that of the later {{tnull}} template.
{{xt}}
{{!xt}}
{{tnull}}
— SMcCandlish Talk⇒ ʕ(Õلō)ˀ Contribs. 19:01, 2 February 2012 (UTC)
|answered=
Please add:
{{#if:{{{title|}}}|title="{{{title}}}"}}
to match all the other templates in this series. It goes just before the end of the opening <span>, before {{{1}}}. — SMcCandlish Talk⇒ ʕ(Õلō)ˀ Contribs. 00:14, 5 February 2012 (UTC)
{{{1}}}
I realize red and green are standard for forbidden and permitted, and that the great majority of people have normal color vision. However, I have deuteranomaly, so when I first saw these templates I had no idea the colors were different. I didn't realize it till I edited something and saw that there were different templates. Now if I look closely, I can barely see a difference. Maybe the colors could be changed according to this guideline, or something other than colors could be used. —JerryFriedman (Talk) 05:09, 19 February 2012 (UTC)
This template talk page probably doesn't have a lot of visibility. Perhaps try raising the issue on the talk pages of Wikipedia:WikiProject Accessibility and Wikipedia:Manual of Style/Accessibility#Color? Senator2029 (talk) 14:05, 8 May 2012 (UTC)
A comment at Wikipedia talk:Manual of Style/Dates and numbers#Feedback requested on formatting innovations posted by EEng has inspired this conversation. The suggestion was that lists of consecutive examples can become confusing as the comma between this may appear to be part of the example, and that it would be clearer to use semicolons and spacing between them:
The discussion was related to Wikipedia:Manual of Style/Dates and numbers but could have wider application.
I don't really notice it much since I customised my CSS with the following:
.example, .example-bold { border-style: dotted; border-width: 1px; border-color: #006400; padding: 0px 3px; background-color: #E8FFE8; } .bad-example, .bad-example-bold { border-style: dotted; border-width: 1px; border-color: #8B0000; padding: 0px 3px; background-color: #FFE8E8; } .neutral-example, .neutral-example-bold { border-style: dotted; border-width: 1px; border-color: #303030; padding: 0px 3px; background-color: #E8E8E8; } .deprecated-example, .deprecated-example-bold { border-style: dotted; border-width: 1px; border-color: #696969; padding: 0px 3px; background-color: #D0D0D0; }
Thus, the above examples appear to me as:
This formatting may be too garish for others' tastes, but I thought I would open the discussion to see whether anyone would be interesting in adjusting the style of the {{xt}} and related templates to make it clearer where they start and end. Perhaps with some light shading and a small amount of horizontal spacing? For example:
background-color: #F0FFF0; padding: 0px 1px;
background-color: #FFF8F8; padding: 0px 1px;
—sroc 💬 03:49, 19 January 2014 (UTC)
The bold asterisks (*****) are were I inserted a linebreak (the first using whitespace and the second using <br />).
<br />
padding: 0px 1px;
background-color: #F8FFF8; padding: 0px 1px;
background-color: #E8FFE8; padding: 0px 1px;
background-color: #E0FFE0; padding: 0px 1px;
background-color: #D8FFD8; padding: 0px 1px;
border-style: dotted; border-width: 1px; border-color: #006400; padding: 0px 1px;
border-style: dotted; border-width: 1px; border-color: #006400; background-color: #F8FFF8; padding: 0px 1px;
border-style: dotted; border-width: 1px; border-color: #006400; background-color: #F0FFF0; padding: 0px 1px;
border-style: dotted; border-width: 1px; border-color: #006400; background-color: #E8FFE8; padding: 0px 1px;
border-style: dotted; border-width: 1px; border-color: #006400; background-color: #E0FFE0; padding: 0px 1px;
border-style: dotted; border-width: 1px; border-color: #006400; background-color: #D8FFD8; padding: 0px 1px;
border-style: solid; border-width: 1px; border-color: #006400; padding: 0px 1px;
border-style: solid; border-width: 1px; border-color: #40A440; padding: 0px 1px;
border-style: solid; border-width: 1px; border-color: #80D080; padding: 0px 1px;
border-style: solid; border-width: 1px; border-color: #90F090; padding: 0px 1px;
border-style: solid; border-width: 1px; border-color: #D0F0D0; padding: 0px 1px;
—sroc 💬 12:40, 19 January 2014 (UTC)
I believe the font for all example templates should be changed to Times. The main reason is that the current Georgia has 'lower case' numerals, which is fairly problematic where examples using numbers is concerned. Compare these two examples:
I have created the .times-serif class which uses the same font stack ("Times New Roman", "Nimbus Roman No9 L", Times, serif;) already in used for .texhtml (inline math), which should render properly on all platforms. — Edokter (talk) — 15:40, 11 March 2014 (UTC)
.times-serif
<span style="font-family: 'Times New Roman', 'Nimbus Roman No9 L', Times, serif;">...</span>
<span style="font-family: 'Times New Roman', 'Nimbus Roman No9 L', Times, serif; font-size:110%; color: #006400;">...</span>
Having said all that, I'm now looking over this Talk and the very first section is a long, long discussion from years ago about -- ta da! -- whether to use Times or Georgia. I think you better look that over carefully, and maybe ping those involved there. EEng (talk) 16:38, 12 March 2014 (UTC)
times-serif
—sroc 💬 14:00, 12 March 2014 (UTC)
See the above table with guidelines for comparison. —sroc 💬 14:14, 12 March 2014 (UTC)
At some point, we may have to agree to disagree, but in the meantime, here's an example lifted from MOS:NUM#Unit names using Times New Roman at 115%:
It does have the unfortunate effect of adding to the line-spacing, especially with superscripts and fractions. —sroc 💬 15:23, 12 March 2014 (UTC)
font-size-adjust
Have you guys taken my advice to review this discussion? EEng (talk) 02:04, 17 March 2014 (UTC)
If we must dictate our favourite font, then please don't start the list with Times New Roman. Better to put Times first. It has about identical metrics but looks much better on the Mac; it isn't found on most Winboxes, so it will fall back to TNR on those machines.— User:Mzajac 2008-12-28 23:14 Z
This seems misguided.
Times has a smaller x-height and is therefore less readable than Georgia. —Michael Z. 2014-03-18 13:59 z