Community Central
Community Central
m (Corrected grammar.)
No edit summary
Line 22: Line 22:
 
:::<pre>{{#ifexist:User:Example/Sig | REAL SIG HERE | PROVISIONARY SIG HERE}}</pre>
 
:::<pre>{{#ifexist:User:Example/Sig | REAL SIG HERE | PROVISIONARY SIG HERE}}</pre>
 
:::With that in your preferences, the server checks to see if [[User:Example/Sig]] exists. If it does, the entire signature is used. If it doesn't, a shorter one is used (that doesn't require any local pages to function). This way, if you need to use your signature on a wiki that you haven't yet ported it onto, you can. Mine does this: [[User:Dzylon|Dzylon]] [[User_talk:Dzylon|(Talk)]] 10:37:28/June 06, 2012
 
:::With that in your preferences, the server checks to see if [[User:Example/Sig]] exists. If it does, the entire signature is used. If it doesn't, a shorter one is used (that doesn't require any local pages to function). This way, if you need to use your signature on a wiki that you haven't yet ported it onto, you can. Mine does this: [[User:Dzylon|Dzylon]] [[User_talk:Dzylon|(Talk)]] 10:37:28/June 06, 2012
  +
  +
:::Edit: I looked at your SigReal page and noticed you were using two unnamed parameters right next to each other. This isn't necessary in your case; you could just use one. I need to have two with mine because there's a border between the time and date.<br>{{User:Dzylon/SigReal|10:41:42|June 06, 2012}}

Revision as of 22:41, 6 June 2012

Forums: Admin Central Index Technical Help Signature Timestamp
Central's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 4334 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.



Hi there,

I wanted to ask if anyone has a way to have a timestamp work properly for custom signatures. I've attempted quite a few times to get it to work, but the code that I put in often immediately turns into a timestamp, meaning that my signatures are given an incorrect time. Is there any way to get a piece of code that will make each of my signatures give a correct time-stamp, or do I need to change the way I use the signature itself? ~ Demise101 ♥ Lets Talk! ♥ Blogs! ~

This is how I have mine set up:
  1. My signature has two unnamed parsers, one each for both time and date.
  2. My signature redirect passes those two parameters.
  3. In my preferences, I substitute those two parameters, expressing them as the correct time and date:
{{SUBST:User:Dzylon/Sig|{{SUBST:#time: h:i:s}}|{{SUBST:#time: F d, Y}}}}
It's also a good idea to have an #if parser function in your preferences, so you don't need to port your signature everywhere you edit.
Edit: I see you have a smaller sig, so the redirect thing isn't really necessary (though not a bad idea, as it decreases talk page clutter). You can just skip step two.
Oh, I see. Thanks! I do have a question though; what does the #if parser do? ~ Demise101 ♥ Lets Talk! ♥ Blogs! ~
Oops! I'm using the Nosubst template, so I'll have to change it. Thanks again, ~ Demise101 ♥ Lets Talk! ♥ Blogs! ~
{{#ifexist:User:Example/Sig | REAL SIG HERE | PROVISIONARY SIG HERE}}
With that in your preferences, the server checks to see if User:Example/Sig exists. If it does, the entire signature is used. If it doesn't, a shorter one is used (that doesn't require any local pages to function). This way, if you need to use your signature on a wiki that you haven't yet ported it onto, you can. Mine does this: Dzylon (Talk) 10:37:28/June 06, 2012
Edit: I looked at your SigReal page and noticed you were using two unnamed parameters right next to each other. This isn't necessary in your case; you could just use one. I need to have two with mine because there's a border between the time and date.