Forum:Timestamp Help

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
Forums: Index > Help > Timestamp Help
Note: This topic has been unedited for 4976 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.

A little while ago I took the code that I used for my timestamp and made it into a template, here, in order to reduce code size. I thought it was working fine, but Why do I need to provide this? recently brought it to my attention that the dates are off. I tried using the {{CURRENTDAY}} templates and its cousins to sort it out, but now all my signatures are showing the current date, regardless of when I posted. Is there any way to solve this, or should I forget about using a template and just have the extra code? Necropaxx (T) {~} {{SUBST:CURRENTDAYNAME}}, {{SUBST:CURRENTTIME}}, {{SUBST:CURRENTMONTHABBREV}} {{SUBST:CURRENTDAY}} {{SUBST:CURRENTYEAR}} UTC

Have you considered having a cool, simple sig instead? People with think you're classy and from one of the good countries in Europe! Sir Modusoperandi Boinc! 23:21, March 8, 2010 (UTC)
Dagnabit, Ah was born Amer'c'n, 'n' Ah'll dah Amer'c'n, too! Necropaxx (T) {~} {{SUBST:CURRENTDAYNAME}}, {{SUBST:CURRENTTIME}}, {{SUBST:CURRENTMONTHABBREV}} {{SUBST:CURRENTDAY}} {{SUBST:CURRENTYEAR}} UTC
No. You broke the wiki and I hate you. You can't use a template to fetch the date and set it on the page permanently because that's not how templates work: when you put a template in a page, the template does its thing every time the page is loaded. You have it set to use {{CURRENTDAY}} etc, but there's no way to say "take the current day that it is right now and ignore all other current days for the rest of eternity" without SUBSTing the day in like you used to. --Pleb SYNDROME CUN medicate (butt poop!!!!) 23:35, March 8, 2010 (UTC)
PuppyOnTheRadio's preferences say
{{Subst:Nosubst|User:PuppyOnTheRadio/sigsmall}} <small>{{SUBST:CURRENTTIME}}, {{SUBST:CURRENTDAY}}/{{SUBST:CURRENTMONTH}}/{{SUBST:CURRENTYEAR}}</small>
Maybe you should use
{{Subst:Nosubst|User:Necropaxx/sig}} {{SUBST:User:Necropaxx/timestamp}}
Nominally Humane! some time 00:08, 9/03/2010
And change this to
<small><font color="darkred"><i>{{SUBST:CURRENTDAYNAME}}, {{SUBST:CURRENTTIME}}, {{SUBST:CURRENTMONTHABBREV}} {{SUBST:CURRENTDAY}} {{SUBST:CURRENTYEAR}}</i></font></small>
but of course it means you'll leave
<small><font color="darkred"><i>Tuesday, 00:12, Mar 9 2010</i></font></small>
behind at the end of your sig... Nominally Humane! some time 00:12, 9/03/2010
Actually, I think I've made a mistake... Experiment and see how it works for you, as I can't really while at work. Nominally Humane! some time 00:27, 9/03/2010
Really? We're pretending that we have jobs now? Sir Modusoperandi Boinc! 05:04, March 9, 2010 (UTC)
I'm pretending that I'm working while at my job... Nominally Humane! some time 05:38, 9/03/2010
I'm having trouble doing this as a template, as {{subst:}} keeps on subtituting, so I'm still trying to work out what I'm doing wrong, and my usual help resources are drying up. I'd just change sig preferences at the moment, but I'll work on it in the meantime. Nominally Humane! some time 05:42, 9/03/2010
Oh, you don't have to do all that, Puppy, but thanks for the thought. Necropaxx (T) {~} {{SUBST:CURRENTDAYNAME}}, {{SUBST:CURRENTTIME}}, {{SUBST:CURRENTMONTHABBREV}} {{SUBST:CURRENTDAY}} {{SUBST:CURRENTYEAR}} UTC
Are you kidding me? This is bugging me knowing that something should be doable but I can't do it. Somebody recently called me a perfectionist for exactly this reason. Who the hell was that wanker again? Good thing he didn't see the mispelled substituting from before. Nominally Humane! some time 06:23, 9/03/2010
Yeah! You oughta be perfect at this stuff! Come on! What's the matter with you? Necropaxx (T) {~} {{SUBST:CURRENTDAYNAME}}, {{SUBST:CURRENTTIME}}, {{SUBST:CURRENTMONTHABBREV}} {{SUBST:CURRENTDAY}} {{SUBST:CURRENTYEAR}} UTC
Sorry... are you impugning my calibre? User:PuppyOnTheRadio/timestamp Nominally Humane! some time Tuesday, 08:44, Mar 9 2010 UTC
I never doubted you for a second, Puppy! Thanks a bunch! Necropaxx (T) {~} {{SUBST:CURRENTDAYNAME}}, {{SUBST:CURRENTTIME}}, {{SUBST:CURRENTMONTHABBREV}} {{SUBST:CURRENTDAY}} {{SUBST:CURRENTYEAR}} UTC
Actually, I'll have to take that back for a moment, as I did a direct copy-paste and now I have the mess you see before you. I think the issue might be with my preferences. Tell me - how is yours set up? Is it Subst:Nosubst or something different? Necropaxx (T) {~} {{SUBST:CURRENTDAYNAME}}, {{SUBST:CURRENTTIME}}, {{SUBST:CURRENTMONTHABBREV}} {{SUBST:CURRENTDAY}} {{SUBST:CURRENTYEAR}} UTC
This is you two days in the future: "Oh, Syndrome, you magnificent beast! I never should have doubted you! Kiss me!" If you want to fix a date onto a page permanently, you'll have to put the date after your signature like everyone else, instead of using a dynamic template. You could try what Puppy said about changing your preferences but that still results in leaving the date behind your sig... --Pleb SYNDROME CUN medicate (butt poop!!!!) 17:28, March 9, 2010 (UTC)
I think this has started a trend. Sir Modusoperandi Boinc! {{SUBST:CURRENTDAYNAME}}, {{SUBST:CURRENTTIME}}, {{SUBST:CURRENTMONTHABBREV}} {{SUBST:CURRENTDAY}} {{SUBST:CURRENTYEAR}} UTC
I guess if you wanted to, you could create a timestamp template that takes the timestamp data as arguments, like {{User:Necropaxx/timestamp|{{SUBST:CURRENTDAYNAME}}|{{SUBST:CURRENTMONTHABBREV}}|{{ETCETRA}}}} but is that really a whole lot better than the traditional way? --Pleb SYNDROME CUN medicate (butt poop!!!!) 19:42, March 9, 2010 (UTC)

(unindent) Test {{User:Syndrome/timestamp|{{SUBST:CURRENTDAYNAME}}, {{SUBST:CURRENTTIME}}, {{SUBST:CURRENTMONTHABBREV}} {{SUBST:CURRENTDAY}} {{SUBST:CURRENTYEAR}}}} : Tuesday, 21:00, Mar 9 2010 UTC. If this works, then I guess you should set your preferences to sign as {{SUBST:nosubst|User:Necropaxx/sig}} {{SUBST:nosubst|User:Necropaxx/timestamp|{{SUBST:CURRENTDAYNAME}}, {{SUBST:CURRENTTIME}}, {{SUBST:CURRENTMONTHABBREV}} {{SUBST:CURRENTDAY}} {{SUBST:CURRENTYEAR}}}}. --Pleb SYNDROME CUN medicate (butt poop!!!!) 21:00, March 9, 2010 (UTC)

Okay, the template has to include {{<includeonly>subst:</includeonly>CURRENTDAYNAME}} in the template as it's the way to stop it changing within the template on save, and have the preferences set up as {{subst:template name}} in the preferences for the sig. Is it better than having the code in your sig? Probably not, but there is a possibility that this raises.
Say for argument's sake you have a signature that changes so often that it has an independent life of its own. Now you like the idea of having your timestamp changing with your signature. So you set you sig preferences up as:
{{Subst:Nosubst|User:Necropaxx/metasig|{{SUBST:CURRENTDAYNAME}|{{SUBST:CURRENTTIME}}| {{SUBST:CURRENTMONTHABBREV}}|{{SUBST:CURRENTDAY}}|{{SUBST:CURRENTYEAR}}}}
And your sig itself is:
[[User:Necropaxx|<span style="color:red;">I'm a sig whore</span>]] <small><span style="color:red;"> {{{2}}}, {{{1}}}, {{{4}}} {{{3}}} {{{5}}}</span></small>
Then what ends up left on the page is
{{User:Necropaxx| Tuesday|12:15|Feb|9|2010}}
Which displays as:
I'm a sig whore 12:15, Tuesday, 9 Feb 2010
And you then decide for St Patrick's day that you want your sig to change to green. So you go into you metasig and change it to
[[User:Necropaxx|<span style="color:green;">top o' the morning</span>]] <small><span style="color:green;"> {{{2}}}, {{{1}}}, {{{4}}} {{{3}}} {{{5}}}</span></small>
As a result all the sigs you've left behind change to
top o' the morning 12:15, Tuesday, 9 Feb 2010
Does that all make sense to people? Nominally Humane! some time Tuesday, 21:13, Mar 9 2010 UTC
No. It doesn't matter anyway, as we're going in a different direction. Sir Modusoperandi Boinc! {{SUBST:CURRENTDAYNAME}}, {{SUBST:CURRENTTIME}}, {{SUBST:CURRENTMONTHABBREV}} {{SUBST:CURRENTDAY}} {{SUBST:CURRENTYEAR}} UTC
Hey, It was worth a shot Nominally Humane! some time User:PuppyOnTheRadio/timestamp

All right, all right, I get it. "Necro, don't use a template." I was only trying to reduce code size! I'm so misunderstood! Necropaxx (T) {~} {{SUBST:CURRENTDAYNAME}}, {{SUBST:CURRENTTIME}}, {{SUBST:CURRENTMONTHABBREV}} {{SUBST:CURRENTDAY}} {{SUBST:CURRENTYEAR}} UTC

I think it's working. Necropaxx (T) {~}Wednesday, 15:59, Mar 10 2010
And now to see if the date is adjusting properly. Necropaxx (T) {~}Wednesday, 16:03, Mar 10 2010
Yay! Necropaxx (T) {~}Wednesday, 16:03, Mar 10 2010