Jump to content

Talk:Main Page/Quote of the day

Page contents not supported in other languages.
Add topic
From Wikiquote, the free quote compendium

Centering

[edit]

The code currently used here is no longer displaying the QOTD in properly centered fashion. I have noticed this for the last two days now, but an admin will need to make any necessary revisions. ~ Kalki·· 13:44, 19 September 2012 (UTC)Reply

Sample 1

[edit]
Quote of the day
The ending of the dream,
the beginning of the wide awake

something big is coming...

Alicia Witt

There is a page for each month where previous "Quotes of the Day" for each date are listed, and where registered users can make suggestions or rank suggestions for upcoming dates. The Quotes of the Year page and other archives contain more extensive listings of quotes that have already been used. See also the QOTD by month and email options.

I am not seeing the problem. Heading, quote, and author all appear centered as usual. Is there a specific code tweak that works better for you? ~ Ningauble (talk) 18:52, 19 September 2012 (UTC)Reply
I do see the problem when I look at the Main Page - although I have no idea how to fix it. :-) ~ UDScott (talk) 20:06, 19 September 2012 (UTC)Reply
I'm seeing the same problem; what are everyone's browsers? (Safari 6/Mac 10.8) I took a look at the code and couldn't immediately find where the problem was. Odd. EVula // talk // // 20:10, 19 September 2012 (UTC)Reply
I am using Firefox on a PC. ~ UDScott (talk) 20:12, 19 September 2012 (UTC)Reply
I have a theory about what is happening. The MediaWiki programmers have been experimenting with upgrading from HTML 4.01 to HTML 5. The Align and Valign attributes of the <td> element were supported but deprecated in HTML 4.01, and may not be supported any more. (I am using IE7 which tends to center table cell contents even without the attribute, by default – which has always been wrong.) Therefore, I tried moving the Center attribute from the <td> element to a <div>. Does the following "Sample 2" look any better in your browsers? ~ Ningauble (talk) 21:30, 19 September 2012 (UTC)Reply
I think you're on to something, as I just noticed that {{quotation limit}} was no longer centering (as the template's author, I know for a fact that I wouldn't have had it left-aligned). Sure enough, the centering code was for the table itself; deleting that didn't make a difference, and adding a bit of CSS to achieve the centering [if an element has a defined width, you can just set the left and right margins to auto] got it to work again. EVula // talk // // 22:59, 19 September 2012 (UTC)Reply
Independently of Ningauble's edits, I added a bit of code to {{Quote of the day}} to force the width; I noticed that long quotes worked just fine, but the shorter quotes didn't. That seems to have done the trick. (though I think Ningauble's would have as well) EVula // talk // // 22:50, 19 September 2012 (UTC)Reply
Works for me. ~ Ningauble (talk) 15:19, 20 September 2012 (UTC)Reply
I guess I'm not sure if this would be better as a new topic or not, but I'll add a second thing that makes it on topic for "centering" beyond what I was originally going to mention.
  • Original reason for this message eight years after the most recent one:
Can someone please change the link for "a page for each month" so the "a" is also bolded?
I would do it myself since it is a super easy edit but I am unable to do so.
Please. It bothers me greatly lol.
  • To keep things "on topic" for "centering":
If we all are in agreement that it looks better, and assuming it is possible(?) - I propose changing the centering of the quotes from the haphazard way almost all text on every site I have ever seen is formatted to a much better and more high quality formatting. If using CSS it is done using the following:
text-align: justify;
text-align-last: center;
Thanks! Relevantusername2020 (talk) 10:46, 17 February 2025 (UTC)Reply

Sample 2

[edit]
Quote of the day
The ending of the dream,
the beginning of the wide awake

something big is coming...

Alicia Witt

There is a page for each month where previous "Quotes of the Day" for each date are listed, and where registered users can make suggestions or rank suggestions for upcoming dates. The Quotes of the Year page and other archives contain more extensive listings of quotes that have already been used. See also the QOTD by month and email options.

[edit]

Newbie (to Wikiquote, at least) perspective: linkify the “Quote of the day” title to point to Wikiquote:Quote of the day, to enable curious visitors to find more info about QotD, and other quotes. Else, if not the title, then the phrase in explanatory text at the bottom. — Lee Carré (talk) 01:38, 3 January 2026 (UTC)Reply