User talk:Gimmethegepgun/Updates

Tip
You might want to consider using  within your code instead of relying on the user to provide the current month as a parameter, plus has the added advantage that it will update as soon as the next month rolls over. More detail here if wanted. --Wolfie (talk|contribs) 03:58, 27 January 2008 (UTC)


 * Ah, thanks. I should bookmark that page or something... --Gimmethegepgun 04:01, 27 January 2008 (UTC)


 * Is a handy reference if doing templates often. (Sadly, wiki-code is deficient went it comes to variable manipulation, otherwise you could have used the "20080127" string and generated the "January 27th, 2008" within the script). Also, as noted on that page "Note that if the page was displayed by the same user and has not changed (has not been edited) since the last time it was displayed, it is possible that the page may be cached", this can be problematic for hour / minute stuff, but for "current month", no matter if that doesn't change the very second a new month rolls over. Besides, the "when" of a new month varies depending on which timezone the viewer is in anyway, so not going to overly matter if there's a few hours delay before the cached copy expires. --Wolfie [[Image:Wolfie_sig.jpg|19px]] (talk|contribs) 04:09, 27 January 2008 (UTC)
 * Ugh I can't get it to work right with the switches. The March - June switches are always returning false (so they turn into links), and so I'm assuming the July - November ones will end up returning true (so they'll never make a link). I tried turning them into strings as well and it didn't work --Gimmethegepgun 04:21, 27 January 2008 (UTC)
 * That's with CURRENTMONTH, with CURRENTMONTHNAME they also turn up the wrong results --Gimmethegepgun 04:22, 27 January 2008 (UTC)
 * Keep in mind that the "pipe" character is used to delineate between the if | then | else parts of a conditional, so if need to output a pipe for a table cell divider, need to use  ("|") or   (""), from a precursory look at your code, looks like that might be the prob. Also, you only seem to have "if month = january" logic, shouldn't there be "if month = february" and if month = march" etc? Am in the middle of some coding myself, but will give it a proper look later if you still stuck. --Wolfie [[Image:Wolfie_sig.jpg|19px]] (talk|contribs) 04:30, 27 January 2008 (UTC)
 * I thought that doing that inside the triple brackets set it as default? --Gimmethegepgun 04:36, 27 January 2008 (UTC)
 * Well, I found the reason why  wasn't working. I was using  ! So basically it was asking the user to input a value named CURRENTMONTHNAME. OOPS! --Gimmethegepgun 04:47, 27 January 2008 (UTC)