Template talk:CURRENTMINUTE

From The Urban Dead Wiki
Revision as of 04:23, 17 January 2011 by Vapor (talk | contribs) (→‎Size)
Jump to navigationJump to search

Darn. Was just trying to do the same thing and was stumbling over this one just as I was about to enter my own template. (And I had searched the template-space for "minute"...) -- Spiderzed 01:04, 13 January 2011 (UTC)

want me to delete yours? -- LEMON #1 01:06, 13 January 2011 (UTC)
Keep both and enter it as a new template. Your version is non-zero padded which could be useful. -MHSstaff 02:02, 13 January 2011 (UTC)
This template might be somewhat flawed. I made it specically for Gabba Gabba and at the time I was using another template I made {{LASTHOUR}}. I think I had to change it due to daylight savings. ~Vsig.png 02:21, 13 January 2011 (UTC)
Yeah, saw that you took a short-cut. I went the fool-proof way and entered every possible input from 00:00 to 23:59 manually (though with the help of Find&Replace to cut down work). -- Spiderzed 02:27, 13 January 2011 (UTC)
All I know is that the original code for this template worked using LASTHOUR instead of CURRENTHOUR and then sometime recently it broke. My thought when I fixed it was that CURRENTTIME did not account for daylight savings. So it is probably worth relacing code with your non-shortcutted version. And like MHS said a non zero padded might be helpful. ~Vsig.png 02:33, 13 January 2011 (UTC)

Update

Per conversation above, template now uses {{LOCALTIME}} and {{LOCALHOUR}} as template calls to calculate the minute. ~Vsig.png 03:49, 13 January 2011 (UTC)

Size

Isn't the sheer size of this going to bumfuck most pages it's going to end up used on? Remember that the size of myself and DDR's old image-link sigs killed A/VB on a few occasions and they weren't as big as this. Nothing to be done! 04:21, 17 January 2011 (UTC)

That's why I changed it to fewer template calls. It's used on a few pages already without too any trouble. Gabba Gabba is the one I'm worried about. What's your opinion on template calls versus extrenuous text? ~Vsig.png 04:23, 17 January 2011 (UTC)