Template talk:Quote box/Archive 3

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Archive 1 Archive 2 Archive 3

Extension dependencies

Could "Extension dependencies" be documented for Template:Quote_box?


One approach might be to include an Extension dependencies sub-section in the documentation (Template:Quote_box/doc).
Another option might be to add Categories for all Extension dependencies.


Extensions that are already listed as required for Template:Quote_box include:

However, as I'm working to get this template functioning on another MediaWiki instance, additional extensions required for Template:Quote_box appear to be:

Please be gentle, this is my first Wikipedia "contribution". Donfede~enwiki (talk) 02:09, 5 June 2020 (UTC)

It would be impractical to document extension dependencies for templates. mw:Extension:Scribunto, for example, is required for all Lua scripts, which means all pages and templates that transclude, directly or indirectly, pages in Module space. Likewise, parser functions are used in a vast array of templates. You might look around for a guide to setting up MediaWiki instances that would help you understand which extensions are typically required. If you can't find anything, ask at WP:VPT. – Jonesey95 (talk) 04:15, 5 June 2020 (UTC)

Spacing

When a source is added, some extra space is added at the bottom inside the border.

A quote without a source.

A quote with a source.

Source

A quote with a source and style=padding-bottom: 0;.

Source

Jroberson108 (talk) 10:37, 27 June 2020 (UTC)

Use of source= without author= does not display the source

I have created a new test case using |source= with a blank |author=. It should show the source but does not. I took a quick look at the if statements in the code, but I didn't see an obvious reason why this would happen. – Jonesey95 (talk) 01:21, 21 January 2021 (UTC)

Fix the display issue on mobile screen

I got the solution to improve the visual appearance of this template on mobile devices. In the @media rule while I make use of !important to set the width of template, the template could give wider space to display the quotation. Now you can copy the new code from Template:Quote box/sandbox/styles.css to improve compatibility with mobile view. -- Great Brightstar (talk) 10:31, 26 February 2021 (UTC)

Great Brightstar could you post a screenshot of the before/after on mobile? Elliot321 (talk | contribs) 01:25, 2 March 2021 (UTC)
OK, on Firefox I enabled the Responsive Design Mode view following their instructions from MDN, then I set the device as iPhone X/XS, the problem is happening to me in the section "Test Case Vode for Centered Box". On such device view the quote box could be extremely narrow, and it's slightly affect the article de Havilland Comet on my phone. So I made the fix at the sandbox, and take screenshots to you.
Main template: https://postimg.cc/tYYJHhXY
Sandbox: https://postimg.cc/8ff2ZPSP
-- Great Brightstar (talk) 05:55, 2 March 2021 (UTC)
Great Brightstar your sandbox version changed quite a lot of other stuff. can you just make the exact changes you want here, so I can implement exactly what is necessary? thanks. Elliot321 (talk | contribs) 04:43, 4 March 2021 (UTC)
OK, you can copy the @media rule to fix the main template. (I previously modified the color based the on codes used for <pre> tag, now I returned back to previous color.) -- Great Brightstar (talk) 15:10, 5 March 2021 (UTC)
Great Brightstar  Done Elli (talk | contribs) 01:39, 16 March 2021 (UTC)

Merge changes from /sandbox


I propose merging my changes from sandbox (including /styles.css) to the template:

  1. TemplateStyles declaration is moved to the start of the template to remove possible FOUC.
  2. The template text is rendered from a new line accommodate list insertion, e. g. in Member state of the European Union#Sovereignty.
  3. The margins of the first element and the last element in a quote are dropped to keep the look consistent for the change in (1).
  4. The quote text itself is wrapped in a semantic element <blockquote> with standard styles removed.

Both versions should look consistent, most differences are semantic. Both the template and template styles (/styles.css) need to be updated from the sandbox. Template styles need a change of .quotebox-sandbox to .quotebox throughout the text. Izno provided some feedback on the changes (thanks). stjn 19:44, 23 June 2021 (UTC)

@Stjn: I've added a test case for the template, using an abbreviated version of the sovereignty quote box, to help illustrate the effects of your changes. -- FeRDNYC (talk) 02:21, 4 July 2021 (UTC)
Stjn, looking at the testcases it appears the sandbox version adds padding around the quote content - was this intentional? firefly ( t · c ) 09:11, 16 July 2021 (UTC)
@Firefly: I don't seem to be seeing that, here (Google Chrome 91, Linux x86_64). Which cases did you notice added padding on? Chrome's inspector view shows the <div>s for the live template and the sandbox have identical layout dimensions, with the exception of the cases where formatting differs. (Wikilist, collapsible text.) The difference there can be attributed to the those differences in formatting. -- FeRDNYC (talk) 09:27, 16 July 2021 (UTC)
FeRDNYC, pretty much all of them (Firefox 89, Linux x86_64). See here for an example. The blockquote element appears to end up with a margin: 1em 1.6em; style. If I manually override that to none it appears identical to the live template. firefly ( t · c ) 09:34, 16 July 2021 (UTC)
@Firefly: Wow, those are very different. That's the second test case in "Parameters: border, width, alignment", right? Here's how that looks for me in Chrome, both at my normal browsing width and then with the browser fullscreened: https://imgur.com/a/MtYpIpp -- FeRDNYC (talk) 09:59, 16 July 2021 (UTC)
I think you’re using Monobook. Monobook has a style for blockquotes that has really high specificity that I did not account for. If we can get to fix it via an edit in MediaWiki:Monobook.css (by changing div#content to div[id="content"] to decrease specificity), the rendering would be more similar to default skin. stjn 11:07, 16 July 2021 (UTC)
 Done Now that the Monobook style issues are resolved and I couldn't see any others. Thanks! firefly ( t · c ) 15:06, 18 July 2021 (UTC)

Image appearing blank beside quote box

On my user page User:Thincat the image that used to appear beside a {{quote box}} has just disappeared. Removing the quote box restores the image.diff The user page layout is just frippery and it doesn't matter but I thought it worth reporting. I suppose this is due to the change reported in the section immediately above. If anyone is investigating please do not change my user page – ask me to do it. Thincat (talk) 05:19, 19 July 2021 (UTC)

This applies on Windows Chrome and Firefox and Android Chrome. Logged in to WP and logged out. No other environments tested. Thincat (talk) 05:30, 19 July 2021 (UTC)

Thincat, I've copied the pre-change versions of the template and TemplateStyles CSS to the template's sandbox for testing, and cannot see any difference in how your userpage displays when using it e.g. here in my sandbox. firefly ( t · c ) 13:17, 19 July 2021 (UTC)
No, That rev. of your sandbox for me shows blank where the image should be. Windows 10: Chrome, Firefox (and now I've tested Edge). All when logged out from WP. Thincat (talk) 14:26, 19 July 2021 (UTC)
I've just realised the TOC underneath the image wasn't displaying either (the box extends the full window width but the text in the box has a reduced right margin). Thincat (talk) 14:32, 19 July 2021 (UTC)
Oh, I now see it blanks out infoboxes as well (no saved example). I like it! Just leave it as it is. Thincat (talk) 15:20, 19 July 2021 (UTC)

Breaking change

@Firefly: the July 18th edit appears to be a breaking change in articles. Whenever an image and quote boxes are used, the article's rendering is now problematic. See Morgan le Fay#French prose cycles. The quote box goes fullwidth and overlaps the image and/or its caption whith empty whitespace. I'm pinging you so you can fix it instead of reverting the edit wholesale right away. Ben · Salvidrim!  13:38, 28 July 2021 (UTC)

Same issue as your sandbox diff [1]. Quotebox goes out of bounds and overlaps images with empty space. I'm using the primary skin (Vector) on latest Chrome on Win10. Ben · Salvidrim!  13:40, 28 July 2021 (UTC)
Salvidrim!,  Investigating... firefly ( t · c ) 14:21, 28 July 2021 (UTC)
Reverted change for now as it's causing issues in mainspace and I cannot immediately determine the cause. Will re-apply once I've figured out what is going on here. firefly ( t · c ) 14:32, 28 July 2021 (UTC)
Just noting that with the "old" (now current) setup, the quotebox extends under the image (tested Monobook, legacy Vector and New Vector) - while this is obviously preferable to it overlapping the image, I'm not sure this is the best look. firefly ( t · c ) 14:53, 28 July 2021 (UTC)
I can't see the error now that the template has been reverted, but can one of you please add a relevant test case to Template:Quote box/testcases? Thanks. – Jonesey95 (talk) 15:50, 28 July 2021 (UTC)
Jonesey95, done. I believe I've fixed the issue in the sandbox with a tweak to the CSS, however the previous behaviour around images seems less than ideal regardless, perhaps we should figure out how to make it "behave" properly? The overlapping issue is particularly noticeable in MinervaNeue... firefly ( t · c ) 16:35, 28 July 2021 (UTC)
The new test case looks fine to me in Monobook and legacy Vector, but I see the problem in MinervaNeue. Is it a bug in the MinervaNeue skin (maybe related to T244848?), or a bug in the template? I feel like we might be bending over backwards to support a non-standard skin, like supporting Internet Explorer in the old days. – Jonesey95 (talk) 17:55, 28 July 2021 (UTC)
Basically, this is due to the original styling lacking overflow: hidden, and not due to my change per se. If it will be added, the change can be restored without issues. stjn 20:40, 30 July 2021 (UTC)
I have added the CSS stjn mentions above and this does indeed appear to resolve the issue. Any objections to me re-implementing the change with this fix? c/p Salvidrim! Jonesey95 firefly ( t · c ) 12:52, 14 August 2021 (UTC)
Fine with me, as long as the test cases look good. I haven't bothered to jump through the hoops of changing my skin again to check. – Jonesey95 (talk) 13:52, 14 August 2021 (UTC)
Go ahead, I'll check to make sure the few affected examples I was aware of remain fine and will let y'all know if anything breaks again. :) Ben · Salvidrim!  14:51, 14 August 2021 (UTC)
@Salvidrim!, Jonesey95, and Stjn:,  Done. Looks good to me. firefly ( t · c ) 16:48, 14 August 2021 (UTC)

Quote box interfering with reflist

On the page for "Vanessa Low", the Quote Box seems to be interfering with the listing of references. Currently the references are listed as a single character width column under the quote. If I add "| align=left" to the Quote Box, the ref list completely disappears but there is lots of blank lines. For this reason, I suspect it is the Quote Box that is at fault, not the reflist. - 58.179.183.147 (talk) 12:21, 25 September 2021 (UTC)

That looks like a bug in mobile view. I worked around it by adding {{clear}} before the reflist. – Jonesey95 (talk) 14:22, 25 September 2021 (UTC)

Border colour

Could anyone create an option by which the border colour could be changed? Peter Ormond 💬 17:31, 9 February 2022 (UTC)

If someone decides to do this, please ensure that the color is not displayed in article space, per MOS:BLOCKQUOTE. – Jonesey95 (talk) 17:40, 9 February 2022 (UTC)

Date or year parameter

Would a date parameter be a reasonable addition to the template? I noticed that, for example, a quote like the one at Kanye West#Legacy would be better contextualized as coming from 2013. But according to this template’s doc, the example appears to recommend using |source= for the year. — HTGS (talk) 23:05, 31 October 2022 (UTC)

Accessibility of font-size: 88%

Why does the CSS for this template display the quoted text smaller than usual, setting it to font-size: 88%;? Shouldn't an embedded quote (or {{tweet}}, which I think uses the same CSS) be as easy to read as any other article text? Lord Belbury (talk) 09:46, 8 September 2022 (UTC)

You can set the size with |fontsize= if you want something different. For accessibility, do not go below 85%. – Jonesey95 (talk) 12:43, 8 September 2022 (UTC)
I'm asking this from the perspective of all Wikipedia articles, not a specific individual case. Why does the template default to being slightly smaller and harder to read than regular article text? --Lord Belbury (talk) 17:22, 8 September 2022 (UTC)
I don't know. You'd have to dig back in the history of this template and its talk page to see if there is an explanation. In general on the English Wikipedia, auxiliary text is rendered smaller than the prose in the main body of the article. Text in infoboxes, navboxes, sidebars, and references and notes, among other elements, is rendered smaller than the default. This template may have been designed to that de facto standard. – Jonesey95 (talk) 20:24, 8 September 2022 (UTC)
Setting off quotations (whether un block quotes inserted in the article proper, or in boxed quotes etc.) is commonly found in publications' house style. EEng 23:40, 31 October 2022 (UTC)

Feature request revisited: one box, multiple quotes

This was requested over 8 years ago and got no response.

When using a single box I needed to improvise the separation of two quotes on Nandi Bushell (because separate boxes made for poor formatting). This would not be necessary if the template had additional options such as quote1=, quote2=, source1=, source2=, and so on. Can this be done, Jonesey95 et al.?

Thanks for your attention. —DaydreamBelizer (chat) 16:22, 12 January 2023 (UTC)

What say you, firefly? —DaydreamBelizer (chat) 19:12, 14 January 2023 (UTC)
@DaydreamBelizer I'm sure it's possible, but I have no real opinion on whether it's a good idea or not. I'd recommend working something out in the sandbox for the template and seeing how it goes - if it seems to work you can make an edit request and someone can assess it. firefly ( t · c ) 19:48, 14 January 2023 (UTC)

About a ¿unclear? sentence

There seems to be a word missing from the sentence «The "class=" parameter can be used add a generic CSS class to this template». Maybe «to» («The "class=" parameter can be used to add a generic CSS class this template»)? LauraFarina (talk) 10:24, 29 July 2023 (UTC)

 Fixed. – Jonesey95 (talk) 11:02, 29 July 2023 (UTC)

The lack of an mdash

Looks like this template started life in 2005 with an mdash (actually two hyphens) at the start of the source line, to distinguish it from the quotation.

From the talk page archives this was removed unilaterally in 2007, added back as a proper mdash in 2008, removed in 2010 when merging templates (with a straw poll on whether to add it back apparently petering out), suggested again in 2013 (with no response) and briefly added and reverted in 2015 (with some discussion of how to handle double mdashes where the article template call also has one).

That last thread suggests using Module:String#replace to handle the double mdash issue. Should we do this? In the 2010 straw poll nobody was actually in favour of the current mdashless layout, which can be misread as a single quotation with a paragraph break. Belbury (talk) 12:23, 20 September 2023 (UTC)

Template-protected edit request on 14 October 2023

Add |4= as an alias for |source=. This would make the parameter easier to specify and enhance parity with {{blockquote}}. Aaron Liu (talk) 00:50, 14 October 2023 (UTC)

 Not done: |source= already has an alias of |3=. Let's not make it worse. – Jonesey95 (talk) 14:00, 14 October 2023 (UTC)
Ah, thanks. Aaron Liu (talk) 15:07, 14 October 2023 (UTC)

This template would be more clear if it included quotation marks

As it is, there is no explicit indication that this is a quotation rather than additional article text. Other things appear in boxes. This is essentially a pull quote and those generally include quotation marks. Sometimes they are styled as part of the frame rather than as part of the text. (See example at pull quote.) The lack of an em dash exacerbates potential confusion. ---Vroo (talk) 23:34, 14 October 2023 (UTC)

See MOS:BLOCKQUOTE. I do wonder if the author should be indented, though. The 2010 straw poll linked above didn't go anywhere, but we could try again. – Jonesey95 (talk) 01:42, 15 October 2023 (UTC)

Background color

This current version with a white background doesn't look good, it makes the body of the pages look cluttered. I suggest that the article space boxes get locked with the default grey colour (#F9F9F9). It's a very neutral tone and different just enough to not look visually appalling. GustavoCza (talkcontribs) 17:08, 29 January 2024 (UTC)

The transparent background is applied only in article space, where this template is not supposed to be used, per the template's documentation. The lack of color is per MOS:BLOCKQUOTE: Block quotations using a colored background are also discouraged. The default background color everywhere else is #F9F9F9, as requested. Please link to a page where something is not working as expected. – Jonesey95 (talk) 21:34, 29 January 2024 (UTC)
The template might be "rarely appropriate" for article pages, but it's currently used 22,000 times on them, and a lot of that usage is for floating sidebar quotes, which I'm not sure that MOS:BLOCKQUOTE is taking a view on.
Even if background colour is discouraged, some articles may be using it meaningfully. I know I've often seen biographies switching between different colours for different quote boxes (possibly to distinguish between quoted works by the subject and quotes from third parties?), and wondered if an informal rule was being followed there. If it was, this has been lost with yesterday's template change. Belbury (talk) 10:00, 30 January 2024 (UTC)
Please link to such a page. I would be curious to see how such a page complies with our the accessibility policies and guidelines such as MOS:COLOR.
We can't entirely control the ways in which editors misuse templates, even widely. Coding templates is one way to help articles comply with MOS. Recoding {{cquote}} is how we got rid of a large batch of decorative curly quotes in article space. – Jonesey95 (talk) 13:15, 30 January 2024 (UTC)
Elie Wiesel is one I noticed that was using a LightCyan background for a quote from one of his books, and CornSilk for a quote from somebody else about him. Looking back at the edits that added the templates in 2016 ([2], [3]) they were both from User:Light show, if they can give any input on the colour choices. Belbury (talk) 13:38, 30 January 2024 (UTC)
My choices of light background colors was random, but having them seems to help to break up long pages of text, making the document easier to read. Readers can more easily focus on these areas and that visual distinction can help guide readers through the document. The TOC, infoboxes, paragraph spaces, and photos are helpful for the same reason.
In addition, light background colors can make a document more visually appealing by adding a layer of design and sophistication, which can make the text more engaging to readers. But generally, IMO, large pages of black and white text can be monotonous to read, so having some light background colors for block quotes with borders can break this monotony, making the reading experience more pleasant and less tiresome. Light show (talk) 23:27, 1 February 2024 (UTC)
That sounds like a good suggestion to take to a MOS talk page to see if there is a community consensus to change such guidance as do not use colored text or background unless its status is also indicated using another method, such as an accessible symbol matched to a legend, or footnote labels (MOS:COLOR) and Block quotations using a colored background are also discouraged (MOS:BLOCKQUOTE). – Jonesey95 (talk) 02:44, 2 February 2024 (UTC)
Has there been some site-wide action to remove the shading from quoteboxes? I use them quite frequently, and I can't say I think the white background is an improvement. KJP1 (talk) 18:21, 7 February 2024 (UTC)
This is from a comment I made at MoS talk back in 2017: "browsing the beginning of the list of Featured Articles on literature and theatre, I found quote boxes used in All God's Children Need Traveling Shoes, The Autobiography of Malcolm X, Big Two-Hearted River, Burger's Daughter, Candide, Casino Royale (novel), and Cento Vergilianus de laudibus Christi (about 22% of the ones I checked)... I think in literature-related articles at least, short excerpts of the work can help give the reader an idea of what the work is like, much like how images are used in articles about paintings." Since such excerpts are serving the same illustrative purpose as images, it would make sense for the text to be formatted the same way image captions are. They're not block quotes (which are expected to be placed within the flow of text and read in that order) and so shouldn't be bound by the same guidance. As the change to the template was a bold edit following personal interpretation of the MOS and not explicit consensus, I suggest it be reverted per the WP:BRD. --Paul_012 (talk) 18:30, 7 February 2024 (UTC)
I absolutely agree that they are more illustrative than narrative. An example is here. WSC's chair quote is pretty incidental to the main article, but it is illustrative of the wide range of things that took his interest. It just looked much better shaded, and broke up the text. I appreciate that there may be accessibility issues that could be discussed, but I think a site-wide change - if that is what has happened - was a bit bold. KJP1 (talk) 18:38, 7 February 2024 (UTC)
Again, if you have a problem with the wording I quoted from two sections of MOS above, please take it to the relevant MOS talk page(s). If consensus there is that this template is an exception to the guideline, we can document that exception here and provide options for accessible background colors in article space. As far as I know, I have not performed any personal interpretation of the MOS here or elsewhere. Feel free to ping me from any discussion that you start. – Jonesey95 (talk) 18:47, 7 February 2024 (UTC)
Hi - when I wrote the article(s), and when they went through FAC, the quote boxes had coloured backgrounds. Now they don’t. Can you just clarify what action made the change? Many thanks. KJP1 (talk) 20:35, 7 February 2024 (UTC)
The change was made in this edit on 28 January 2024. The change is limited to article space, since there is general consensus that MOS applies primarily to article space and I did not want to overreach without consensus either at MOS or here. If editors here wish to apply the change to all namespaces, I will be happy to make that additional edit. This change is analogous to a change in June 2020 that removed decorative curly quotes, also per MOS. – Jonesey95 (talk) 21:05, 7 February 2024 (UTC)
That’s helpful. And could you point me to the discussion that occurred before you made that change - which must affect many hundreds/thousands? of pages. KJP1 (talk) 21:25, 7 February 2024 (UTC)
I have linked to and quoted from the relevant MOS pages above. – Jonesey95 (talk) 04:59, 8 February 2024 (UTC)
So you didn't discuss it. KJP1 (talk) 06:53, 8 February 2024 (UTC)

Template-protected edit request on 8 February 2024

Requesting reversion to the August 2021 version. As noted in the above discussion and at WT:Manual of Style#MOS:BLOCKQUOTE, the recent changes were bold edits by Jonesey95 based on their own understanding of the Manual of Style, which does not appear to have consensus in support. Per WP:BRD, the edits should be reverted until consensus is actually achieved. --Paul_012 (talk) 17:00, 8 February 2024 (UTC)

The MOS talk page discussion is ongoing, and the text of MOS hasn't been changed yet. The assertion that recent changes are based on my "understanding" of the MOS has been contradicted above with direct quotations from two MOS pages; no guideline text in support of arbitrary background colors has been put forward here or at the MOS talk page. A change can wait for the MOS talk page discussion to bear fruit. That said, any other template editor, upon reviewing the two discussions, is welcome to make a change to the template if they feel that consensus merits it. – Jonesey95 (talk) 00:44, 9 February 2024 (UTC)
Nearly everyone participating in the discussion has been of the opinion that the prescription on block quotations does not apply to quote boxes, which makes those cited passages irrelevant to this template. --Paul_012 (talk) 01:13, 9 February 2024 (UTC)
 Done * Pppery * it has begun... 18:43, 9 February 2024 (UTC)
That is much appreciated. We can discuss the wider issues raised by the earlier change to this template over at the MoS page. KJP1 (talk) 18:49, 9 February 2024 (UTC)