Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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

2 Answers 2

up vote 2 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

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

 
discard

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.