Forum:How do I create a time tag in template?

In a template on Wikipedia, I have noticed that there is a time tag on it, example,, and I am wondaring how do I do it on a wikia that I have? Thanks for helping. Sundogs 17:35, 26 March 2007 (UTC)


 * Hello and Welcome to Wikia Sundogs. An automatic date for a template is actually fairly simple. For example if i wanted the year on a template i would insert 2024 which would produce 2024. Now if i wanted to insert the Month i have two options i could enter August which would produce August but if i wanted to have the name of the month i would use August which produces August. And for the day i would insert 27 which makes 27. Hope this helps Phillip (talk) 18:06, 26 March 2007 (UTC)


 * Yay, fast answering, Phillip :-) Now I understand your question, Sundogs. In addition, this help page on Wikipedia lists some more variables, if this is of interest. --rieke 18:12, 26 March 2007 (UTC)


 * I still need help! I can not write the script because of the thing. Please explain on a level that I can understand. Sundogs 19:26, 26 March 2007 (UTC)


 * See Meta-Wiki's page on parser functions for an explanation of #if:. – Smiddle 19:48, 26 March 2007 (UTC)


 * Thanks. That helped. Sundogs 19:52, 26 March 2007 (UTC)

Hm, maybe there is a way without #if. Sundogs, what exactly do you want to do with such a template? Adding just to a page so that the page gets listed in Category:Cleanup March, 2007 for example? Or should the template text show up with a date on the page? Or something else? Do you remember which template you saw on Wikipedia? Camparison would be easier in a specific case as there are very, very many options to work with templates and variables. Easy ones and complex ones ;-)

Please don't care about my questions if you already found out by yourself. --rieke 19:58, 26 March 2007 (UTC)


 * The easiest way to have a date parameter in a template is via a second template subsitution (you have to subst in the date and time anyways, or they change when the page is next edited). For example:


 * Template:Cleanup with contents:


 * When placed with would create:


 * (Which then could place it in categories based on parameters, such as == March) This would only work properly if the cleanup template was being subst'd though. --Splarka (talk) 01:32, 27 March 2007 (UTC)