Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

~~~~ is used to leave your timestamp with your name and date. I want to put this in a template so that whoever uses the template will have have the timestamp printed out as well.

Is this possible?

share|improve this question

migrated from stackoverflow.com May 14 '11 at 14:35

This question came from our site for professional and enthusiast programmers.

up vote 3 down vote accepted

It is possible when substing the template. For example ~~<includeonly>~~</includeonly> will display as ~~~~ when the template is transcluded normally, and as a timestamp when substed.

share|improve this answer

This also may help and allows to format the timestamp more precisely:


And this describes how to use the above magic words referring another pages.

share|improve this answer

Not without rewriting some of the code I don't think. ~~~~ will always be changed by the parser into the signature, and not be saved in the wikitext as ~~~~

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.