User:JL-Bot/Project content/documentation: Difference between revisions

Content deleted Content added
new options for sorting and displaying the date on main page
add support for reverse date sorting
Line 79:
*<code>|dates</code> -- specifies including in the output the date the content was on the Main Page (where applicable)
*<code>|sorting = <value></code> -- specifies the sorting to use (see below)
*<code>|date-order = <value></code> -- specifies the sorting order for dates (see below)
 
The <code>compact</code> option overrides the <code>columns</code> and <code>icons</code> options.
Line 89 ⟶ 90:
 
The <code>sorting</code> option may be set to <code>default</code> (sort by DEFAULTSORT key), <code>alpha</code> (sort alphabetically), <code>date-default</code> (sort Main Page content by date, remainder by DEFAULTSORT key), and <code>date-alpha</code> (sort Main Page content by date, remainder alphabetically). The <code>default</code> is default if not specified.
 
The <code>date-order</code> option may be set to <code>increasing</code> or <code>decreasing</code>. This option only applies when the <code>sorting</code> option is set to <code>date-default</code> or <code>date-alpha</code>. The <code>increasing</code> is default if not specified.
 
===Output===