Page MenuHomePhabricator

time math, anotherDay, anotherMonth, anotherYear
Closed, ResolvedPublic

Description

Author: William.Allen.Simpson

Description:
Currently the magic words CURRENTDAY ... CURRENTYEAR allow only
a fixed time. For various pages such as daily boilterplate for
Categories for Discussion and Templates for Deletion, we need
to calculate the previous and next days, and days up to 2 weeks
in the past, for linking to the correct daily pages.

There are also an awful lot of time math templates doing things
the hard way, and not very well (not subst'able).

These functions accept one parameter after the colon, and that
should be a positive or negative number of seconds. These are
just a guess as to how they should be written and where they s
hould be placed. And I have no clue on how linking the new
CoreParserFunction system works.


Version: unspecified
Severity: normal

Details

Reference
bz6693

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:21 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz6693.
bzimport added a subscriber: Unknown Object (MLST).

William.Allen.Simpson wrote:

patch to CoreParserFunctions

attachment dCPF ignored as obsolete

William.Allen.Simpson wrote:

same with input range limited to abs(5 years)

somewhat less naive implementation with an input range limit of plus or minus 5
years, as that should be well within the actual needs of the community

Attached:

ayg wrote:

*** This bug has been marked as a duplicate of 7116 ***