Changes

Jump to: navigation, search

User:Graham Phillips 110

16 bytes added, 00:06, 25 May 2017
testing
==Testing stuff==
 
{{#Time: F j}}
This section creates a link to the immediately preceding and following On This Day pages. To do this, it converts the current page name to a date, then checks the previous day's date for a corresponding page name. If it finds one, it creates the text & link. If not, it goes to the next previous day, and so on for ten days. It then does the same for the following ten days. It will only create one link in each direction, the first one it comes to, and if there are no pages within ten days of the start page, it returns a blank. There's probably a far more elegant and efficient way to do it, but hey ho, this is how bus mechanics write computer code.

Navigation menu