Template:Qotw/doc

Qotw is the driving engine behind the automatic replacement of the Quote of the Week section of the main page. It looks for a sub-template of this one labelled by the number of the current week, then transcludes that template on the main page. For instance if its Week 27, then this template looks for Qotw/27 and places it wherever Qotw is placed — namely, the main page.

This template is fully locked, because it is merely the conduit through which the actual quote of the week text passes. To change the QOTW, you must change one of the following sub templates. Today is 28 August, which is in Week. Week begins in  days, on the midnight (UTC) that divides Sunday from Monday.

53 weeks?
Although most years have only 52 weeks, some years — like 2009 — have 53, according to the software running this wiki. This is because the software employs what's called the.

If this revelation screws with your concept of time, don't sweat it. Only about 70 years out of every 400 have 53 weeks, and we've just had one. So we may never encounter another "leap week" as long as this wiki is running.

Obsolete functionality
Originally, it was envisioned that the individual week templates might not have been created until needed. For this reason, qotw includes "failsafe" coding to allow it to randomly select another week if it encounters an uncreated week template. If a week doesn't exist, then this template will come up with a sort of random number. So if the current week number is, then the "random" substitute would be

However, this has been obsoleted, since all weeks have been created.