Jump to content

Template talk:Blockquote

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Font-size of .templatequotecite in mobile view

[edit]

Can someone decrease font-size for the "— Template Quote Cite"-functionality so it matches the font-size of the quote itself. As of now, the correct font-size is only being displayed in desktop view, but not in mobile view. Infogiraffic (talk) 21:11, 2 January 2025 (UTC)[reply]

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]

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]