Board Thread:Support Requests - Getting Technical/@comment-5706853-20140516183824/@comment-856287-20140516204705

Amateur Obsessive wrote: Yeah, I had assumed a page for every day in the year would probably be needed. Do the pages need to be template pages? They don't have to be templates. You can use sub-pages.

So, create Template:Onthisday

Then
 * Template:Onthisday/0101
 * Template:Onthisday/0102
 * Template:Onthisday/0103
 * …etc.

Template:Onthisday would transclude its own subpages, something like. That should automatically transclude the contents of a sub-page named with a zero-padded month number and a zero-padded day number.

I think you can use  to see if a page exists and then decide what to do. That way you don't have to have 300 blank sub-pages and only 65 with content ;D

So to put it all together, Template:Onthisday would look like this:

Something like that, anyway… 😃