Use <figcaption> or <p> for the quote's source/author instead of <cite>

edit

Right now, this template uses <cite> for the quote's source. Not only <cite> shouldn't be used for this purpose if the source isn't a creative work, but <cite> in this template is used inside <blockquote>, as if the source of the quote is a part of the quote itself, which is a very, very wrong way to cite a quote's source, wrongfulness of which is outlined even in the HTML5 specification (Attribution for the quotation, if any, must be placed outside the blockquote element).

So I suggest to either use <figcaption>, and wrap <blockquote> in <figure>, or just <p> outside of <blockquote> - both ways to cite a quote's source are recommended by the aforementioned specification. Sapphaline (talk) 09:37, 15 July 2025 (UTC)Reply

Template:Blockquote/sandbox is available for anyone to edit. You'll be able to test new code at Template:Blockquote/testcases. – Jonesey95 (talk) 12:17, 15 July 2025 (UTC)Reply
Seems like <figure> and <figcaption> are not currently allowed by MediaWiki for use in wikitext, so <p> is the only way to do it properly here. @Jonesey95: done; do you think this can be merged into the main template? Sapphaline (talk) 09:54, 28 July 2025 (UTC)Reply
Some or all of the sandbox examples on the testcases page are missing the closing </blockquote> tag. – Jonesey95 (talk) 15:55, 28 July 2025 (UTC)Reply
Solved. Sapphaline (talk) 16:39, 28 July 2025 (UTC)Reply
Seeing no problems in the test cases, and being persuaded by the HTML specifications linked above, I have updated the code in the live template. Nice work. – Jonesey95 (talk) 20:26, 28 July 2025 (UTC)Reply
Did you check what it looks like on mobile? The left side of the attribution is now level with the surrounding text, except on the first line which is indented. Hairy Dude (talk) 23:21, 28 July 2025 (UTC)Reply
The testcases page looked (and looks) fine to me on mobile. It still uses the dumb gray line to the left of the blockquote, but I don't think I can control that. If you are reporting an issue, please link to an example page where we can see the problem. – Jonesey95 (talk) 00:55, 29 July 2025 (UTC)Reply
Did you check what it looks like on mobile? - yes. Looks fine for me using browser device emulation with a 160px wide viewport. Sapphaline (talk) 11:37, 29 July 2025 (UTC)Reply

Rquote broken

edit

{{Rquote/testcases}} appears to show that the above changes have broken the placement of source annotations. Sapphaline, would you like to take a look? – Jonesey95 (talk) 15:15, 3 August 2025 (UTC)Reply

Fixed at Rquote, I'm pretty sure. – Jonesey95 (talk) 15:44, 3 August 2025 (UTC)Reply

How to align right?

edit

Nimon (talk) 06:47, 29 July 2025 (UTC)Reply

Align right what? Sapphaline (talk) 11:38, 29 July 2025 (UTC)Reply

Error?

edit

Multiline parameter doesn't work on mobile version of Wikipedia. It doesn't show line break on mobile webpage. Can anyone fix this? Mehedi Abedin 05:23, 2 August 2025 (UTC)Reply

  Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format and provide a reliable source if appropriate. If you found a page, where the template works incorrectly, please link to the page. Providing concrete examples on the test cases page will also be helpful. —⁠andrybak (talk) 10:33, 2 August 2025 (UTC)Reply