Controlling output order: Difference between revisions

Content added Content deleted
imported>FrozenPlum
m (Hopefully this makes things somewhat clearer, order requires ordermethod to work, that was a big piece of missed information for most. XD)
imported>FrozenPlum
m (Fix (I think) the openreferences statement to make sense, the actual indication of openreferences=yes setting ordermethod=none should live in the openreferences page section.)
Line 37: Line 37:
'''''methodN''''' can be one of the following '''single''' values:
'''''methodN''''' can be one of the following '''single''' values:


{| class="wikitable"
{| class="wikitable" style="max-width:1200px;"
! Method
! Method
! Description
! Description
Line 71: Line 71:
|-
|-
|'''''sortkey'''''
|'''''sortkey'''''
|Outputs list sorted by [[mw:Help:Categories#Sort key|(category) sortkey]]; requires at least one category statement, and a sortkey can be manually specified on each page if desired rather than the category default sort order (see [[mw:Help:Categories#Sort key|(category) sortkey]]).
|Outputs list sorted by [[mw:Help:Categories#Sort key|(category) sortkey]] (order by sortkey of the first category specified, if there are multiple); requires at least one category statement. Sortkey serves either the default category sort order (alphabetical), or a sortkey can be manually specified on each page in the category. Since ''sortkey'' relates directly to the sorting order of pages in a category, ''sortkey'' functions as an alias of sorts for "category".
|-
|-
|'''''none'''''
|'''''none'''''
|Do not apply any ordering (except ordering by timestamp if you requested a list of revisions); this method '''must be used when you specify '''openreferences=yes'''. — '''(default)'''.
|Do not apply any ordering (except ordering by timestamp if you requested a list of revisions); this method is '''set by default if''' <code>openreferences=''yes''</code>.
|}
|}


Line 80: Line 80:
'''''methodN''''' can also be one of the following '''combination''' of values (see also [[Controlling output format#headingmode|''headingmode'']] option):
'''''methodN''''' can also be one of the following '''combination''' of values (see also [[Controlling output format#headingmode|''headingmode'']] option):


{| class="wikitable"
{| class="wikitable" style="max-width:1200px;"
! Method
! Method
! Description
! Description
Line 94: Line 94:
|-
|-
|'''''category,sortkey'''''
|'''''category,sortkey'''''
|Outputs list sorted by title and [[mw:Help:Categories#Sort key|(category) sortkey]], requires at least one category statement and a sortkey must be set on at least one of the output pages.
|Outputs list sorted by title and [[mw:Help:Categories#Sort key|(category) sortkey]]; requires at least one category statement and a sortkey must be set on at least one of the output pages.
|-
|-
|'''''user,firstedit'''''
|'''''user,firstedit'''''