Template talk:Quote box

Active discussions

SpacingEdit

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 sourceEdit

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 screenEdit

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)
Return to "Quote box" page.