Template:Today/doc: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia
(New page: {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> ==Usage== <nowiki>{{subst:Today}}</nowiki> The above will transclude into today's date,...)
 
imported>Zombie Man
m (+Cat:Editors Tags Template)
 
Line 8: Line 8:
<includeonly><!--
<includeonly><!--
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
</includeonly>
[[Category:Editors Tags Templates]]</includeonly>

Latest revision as of 02:12, 19 February 2010

This is a documentation subpage for Template:Today (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

Usage

{{subst:Today}}

The above will transclude into today's date, in YYYY-MM-DD format (which is handy for sorting). By using subst:, it will transclude into text that won't change. If you omit subst:, it will look like garbage: {{subst:LOCALYEAR}}-{{subst:LOCALMONTH}}-{{subst:LOCALDAY2}}.