Difference between revisions of "Template:Date"

From SkullSpace Wiki
Jump to navigation Jump to search
(Created page with "{{DEFAULTSORT:*{{{text|0000-00-00}}}}}<noinclude> ==Info== This template allows you to add a date for the category views to sort by. By default, the events would be sorted by ...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{DEFAULTSORT:*{{{text|0000-00-00}}}}}<noinclude>
+
{{DEFAULTSORT:*{{{1|0000-00-00}}}}}<noinclude>
 
==Info==
 
==Info==
 
This template allows you to add a date for the category views to sort by. By default, the events would be sorted by whatever crappy name we give our pages. With only a date, the articles would each be sorted under the heading "2" or "1"). The asterisk has been chosen as a good neutral heading, as it comes before numbers and letters.  
 
This template allows you to add a date for the category views to sort by. By default, the events would be sorted by whatever crappy name we give our pages. With only a date, the articles would each be sorted under the heading "2" or "1"). The asterisk has been chosen as a good neutral heading, as it comes before numbers and letters.  
Line 10: Line 10:
 
}}</pre>
 
}}</pre>
 
|}
 
|}
 +
<noinclude>Note: The "Date=" is not needed. Just use <nowiki>{{Date|YYYY-MM-DD}}</nowiki> as needed.</noinclude>

Latest revision as of 04:20, 12 April 2014

Info

This template allows you to add a date for the category views to sort by. By default, the events would be sorted by whatever crappy name we give our pages. With only a date, the articles would each be sorted under the heading "2" or "1"). The asterisk has been chosen as a good neutral heading, as it comes before numbers and letters.

Usage

{{Date
| date     = The date of the event in ISO8601 format (YYYY-MM-DD)
}}

Note: The "Date=" is not needed. Just use {{Date|YYYY-MM-DD}} as needed.