2

~~~~ 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?

3 Answers 3

3

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.

1

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

  • {{REVISIONDAY}}
  • {{REVISIONDAY2}}
  • {{REVISIONMONTH}}
  • {{REVISIONMONTH1}}
  • {{REVISIONYEAR}}
  • {{REVISIONTIMESTAMP}}
  • {{REVISIONUSER}}

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

0

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 ~~~~

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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