User talk:2257/test

Add topic
There are no discussions on this page.

Why do you want the absolute value of the day? It will always be positive. Also, use ( ). Wa Yoshihead.png TC@Y 00:41, 2 January 2009 (EST)

And why do you have "No" as an option for if it's true? That will cause problems, just leave it undefined. So maybe like this:

{{#ifexpr: ({{CURRENTDAY}}-7>2|* January 7: NES Classics: Dr. Mario released in Europe in 2005.}}
{{#ifexpr: ({{CURRENTDAY}}-11)<2|    * January 11: Dr. Mario (Super NES, Satellaview) released in Japan in 1997.}}

Let's see...


  • January 11: Dr. Mario (Super NES, Satellaview) released in Japan in 1997.
  • January 12: WarioWare: Smooth Moves released in Europe in 2007.
  • January 13: Mario Party Advance released in Japan in 2005.
  • January 15: WarioWare: Smooth Moves released in 2007. Play on Wii: Mario Tennis GC estimated to be released in Japan in 2009.
  • January 16: Mario Tennis (Game Boy Color) released 2001.
  • January 17: Mario & Sonic at the Olympic Games (Nintendo DS) released in Japan in 2008.
  • January 18: Thief Wario the Seven released in Japan in 2007. Mario vs. Donkey Kong 2: March of the Minis released in Australia in 2007.





Well I'll be booleanized...when the signs are switched, it inexplicably WORKS???? Wa Yoshihead.png TC@Y 00:50, 2 January 2009 (EST)

Yeah, except that's not what I was trying to do. :p What I was trying to do was make it render anything that happened within so many days of the present. So, for example abs({{CURRENTDAY}}-7)<2 would return true if {{CURRENTDAY}} is anything 6 through 8. The "no" thing was just a random thing to make sure that I didn't confuse an error with it returning "false." I planned to remove it, but when the "abs" operand didn't work, I didn't bother. Do we have an older version of ParserFunctions? - 2257(Talk) 00:56, 2 January 2009 (EST)
Also, I originally did use ( ), but I thought I might be misunderstanding the usage of "abs," so I tried it without. - 2257(Talk) 00:58, 2 January 2009 (EST)
Actually though, we wouldn't need abs if it supports, e.g. -2<({{CURRENTDAY}}-15)<2 - 2257(Talk) 01:04, 2 January 2009 (EST)

By the way...how did you get the line of edit to work backwards all the time?? Wa Yoshihead.png TC@Y 00:55, 2 January 2009 (EST)

hay man i discovered that :( Super-YoshiMust...eat...sig...Talk? C???
Some Unicode glitch. Look up "Cyrillic Combining Millions." - 2257(Talk) 01:01, 2 January 2009 (EST)

Here, this does what I was intending:

{{#ifexpr: ({{CURRENTDAY}}-1)>-3|{{#ifexpr: ({{CURRENTDAY}}-1)<3|1|Too Large}}|Too Small}}<br />

Here's a test, although you can't really see what it does this early in the month. Yes, you'd ideally remove the messages "too large" and "too small." {{CURRENTDAY}} = 21

Too Large
Too Large
Too Large
Too Large
Too Large
Too Large
Too Large
Too Large
Too Large
Too Large
Too Large
Too Large
Too Large
Too Large
Too Large
Too Large
Too Large
Too Large
19
20
21
22
23
Too Small
Too Small
Too Small
Too Small
Too Small
Too Small
Too Small
Too Small

- 2257(Talk) 01:25, 2 January 2009 (EST)

User:Twentytwofiftyseven/testUser:Twentytwofiftyseven/testUser:Twentytwofiftyseven/testUser:Twentytwofiftyseven/testUser:Twentytwofiftyseven/testUser:Twentytwofiftyseven/testUser:Twentytwofiftyseven/testUser:Twentytwofiftyseven/testUser:Twentytwofiftyseven/testUser:Twentytwofiftyseven/testUser:Twentytwofiftyseven/testUser:Twentytwofiftyseven/testUser:Twentytwofiftyseven/testUser:Twentytwofiftyseven/testUser:Twentytwofiftyseven/test

Oh! That was a clever use of absolute value...if only it existed. Mediawiki.org is good at their Help & manual, and there's no mention of absolute value as a function...anyways, that nesting does seem to work. Wa Yoshihead.png TC@Y 03:35, 2 January 2009 (EST)

Actually, they do mention it, here, (the table to the right, under "Unary") so I was surprised that it didn't work. Is there a way to find out which version of Parser Functions we have? - 2257(Talk)
Ah, I see what's going on. You need to install this to make absolute value work.  - 2257(Talk) 05:27, 2 January 2009 (EST)