Template talk:Blockquote
![]() | Template:Blockquote is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This is the talk page for discussing improvements to the Blockquote template. |
|
Archives: 1, 2, 3, 4Auto-archiving period: 28 days ![]() |
![]() | Text and/or other creative content from this version of Template:Quote was copied or moved into Template:Poemquote with this edit on 2015 December 14. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted as long as the latter page exists. |
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)
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)
- 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)
- 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)- 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)- Solved. Sapphaline (talk) 16:39, 28 July 2025 (UTC)
- 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)
- 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)
- 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)
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)
- 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)
- 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)
- Solved. Sapphaline (talk) 16:39, 28 July 2025 (UTC)
- Some or all of the sandbox examples on the testcases page are missing the closing
How to align right?
[edit]Nimon (talk) 06:47, 29 July 2025 (UTC)
- Align right what? Sapphaline (talk) 11:38, 29 July 2025 (UTC)