Template talk:CURRENTMINUTE

Latest comment: 7 years ago by Andy M. Wang in topic Deletion Request
WikiProject iconTime Template‑class
WikiProject iconThis template is within the scope of WikiProject Time, a collaborative effort to improve the coverage of Time on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Computed version edit

While the computed version is much simpler there is a problem in the logic. Seemingly at random the expression {{0expr|(({{CURRENTTIMESTAMP}} -30 round -2 ) mod 10000 ) div 100}} will evaluate to a number like -85.16, generally in the range -85 to -95. Likewise if a value like "20060617131818" is plugged in rather than 'CURRENTTIMESTAMP' it evaluates correctly in most cases, but then will at random display a negative value. I'm not sure what is causing this, but the effect can be seen in the two lines below. Just refresh the screen a few times (less than 10 usually) and you should see the values inexplicably go negative.

:{{0expr|(({{CURRENTTIMESTAMP}} -30 round -2 ) mod 10000 ) div 100}}
:{{0expr|((20060617131818 -30 round -2 ) mod 10000 ) div 100}}

Since this happens even with hard-coded text (the second line above has '20060617131818' manually plugged into the formula) it would seem to be a problem with the mathematical evaluation within the 0expr template. The same thing happens with 'CURRENTHOUR'. --CBD 13:23, 17 June 2006 (UTC)Reply

Update - I changed this and 'CURRENTHOUR' to use 'CURRENTTIMESTAMP', but breaking down to the relevant section through subtraction rather than modulus division. The 'negative result' problem is caused by modulus division of large values:
{{#expr: 20060617131818 mod 10}} = 8
The above demonstrates the simplest form of the problem. Refreshing will eventually show a negative result. --CBD 21:46, 17 June 2006 (UTC)Reply

Could this bug be fixed? --Meno25 15:09, 26 November 2006 (UTC)Reply

I'm going to assume that the bug has been fixed, because I refreshed 15 times cleared the cache 10 times, and clicked the discussion button 7 times. YamakiriTC 09-30-2007•17:38:07

Edit request edit

{{editprotected}} Please update {{/doc}} with {{documentation}}. Per Wikipedia:Template documentation/List Thankyou. -- αŁʰƏЩ @ 05:53, 28 April 2008 (UTC)Reply

Done. – Luna Santin (talk) 08:43, 28 April 2008 (UTC)Reply

Deletion Request edit

{{Template for discussion/dated|page=CURRENTMINUTE|link=Wikipedia:Templates for discussion/Log/2016 September 4#Template:CURRENTMINUTE}} Wetitpig0 (talk) 01:43, 4 September 2016 (UTC)Reply

  Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format. Izno (talk) 02:19, 4 September 2016 (UTC)Reply
Looks like a TfD tag request. Done — Andy W. (talk ·ctb) 02:32, 4 September 2016 (UTC)Reply