Hi all,
is that have any suitable method to produce the current month (in number) without the leading zero? I've been found out in the MediaWiki software currently only have the magic word CURRENTMONTH which would generate the current month with leading zero. Is that have any other ways to generate the current month without the leading zero? or maybe I would like to submit a patch to BugZilla to resolve this issue?
regards
Shinjiman
On 4/9/06, Shinjiman shinjiman@gmail.com wrote:
is that have any suitable method to produce the current month (in number) without the leading zero? I've been found out in the MediaWiki software currently only have the magic word CURRENTMONTH which would generate the current month with leading zero. Is that have any other ways to generate the current month without the leading zero? or maybe I would like to submit a patch to BugZilla to resolve this issue?
There's CURRENTDAY (which does the day without a leading zero) and CURRENTDAY2 (which does the day *with* a leading zero). I suppose they could always add CURRENTMONTH2 (which would do the month without the leading zero). It would be backwards from the CURRENTDAY magic words, but at least you'd be able to get the month without the leading zero. =)
-L
Locke Cole <locke.cole.wiki@...> writes:
On 4/9/06, Shinjiman <shinjiman@...> wrote:
is that have any suitable method to produce the current month (in number) without the leading zero? I've been found out in the MediaWiki software currently only have the magic word CURRENTMONTH which would generate the current month with leading zero. Is that have any other ways to generate the current month without the leading zero? or maybe I would like to submit a patch to BugZilla to resolve this issue?
There's CURRENTDAY (which does the day without a leading zero) and CURRENTDAY2 (which does the day *with* a leading zero). I suppose they could always add CURRENTMONTH2 (which would do the month without the leading zero). It would be backwards from the CURRENTDAY magic words, but at least you'd be able to get the month without the leading zero. =)
-L
Since the CURRENTMONTH magic word is widely used in WikiCommons. If this word is changed, it will affect majorly affecting the pages as like in Commons I've stated. I think having a name called CURRENTMONTH1 is more suitable for this case. Is that will be okay?
On 4/10/06, Shinjiman shinjiman@gmail.com wrote:
Since the CURRENTMONTH magic word is widely used in WikiCommons. If this word is changed, it will affect majorly affecting the pages as like in Commons I've stated. I think having a name called CURRENTMONTH1 is more suitable for this case. Is that will be okay?
This was pretty much what I was suggesting. =) I just think CURRENTMONTH2 would be the logical choice (given the CURRENTDAY/CURRENTDAY2 naming).
-L
Outsider's view: you can achieve "logicalness" by using ...1: (currently defined terms asterisked)
*CURRENTDAY -> no zero CURRENTDAY1 -> no zero *CURRENTDAY2 -> leading zero
*CURRENTMONTH -> zero CURRENTMONTH1 -> no zero CURRENTMONTH2 -> leading zero
Then, if you deprecate the forms 'CURRENTDAY' and 'CURRENTMONTH', you have achieved spiritual consistency.
Steve
On 4/10/06, Locke Cole locke.cole.wiki@gmail.com wrote:
On 4/10/06, Shinjiman shinjiman@gmail.com wrote:
Since the CURRENTMONTH magic word is widely used in WikiCommons. If this word is changed, it will affect majorly affecting the pages as like in Commons I've stated. I think having a name called CURRENTMONTH1 is more suitable for this case. Is that will be okay?
This was pretty much what I was suggesting. =) I just think CURRENTMONTH2 would be the logical choice (given the CURRENTDAY/CURRENTDAY2 naming).
wikitech-l@lists.wikimedia.org