Template:DplParams/doc

This template is purely for storing the parameters needed for more easily using dpl with different infoboxes.

TODO: More directions

Documentation on the parameters of the DPL

ordermethod
ordermethod	Determines what criterion (resp. criteria) is (resp. are) used to order the list. Syntax:

ordermethod=method1,method2,... means ordered by method1 first, then by method2, etc. (like the ORDER BY clause in SQL)

methodN can be one of the following single tokens:

categoryadd
outputs list based on most recent addition to the first category (requires to include one category and one only using 'category' parameter)

counter
outputs list based on the number of times the page has been viewed (by ~popularity) : Attention: Requires the HitCounter Extension for wikis on MediaWiki 1.25.0 or higher since the counter feature was removed[1].

size
outputs list based on the size of the article (bytes of wiki text)

firstedit
outputs list based on first edit to the pages (creation)

lastedit
outputs list based on most recent edit to the pages

pagetouched
outputs list based on 'page_touched' timestamp. Read comment on page_touched field in Page_table to see the difference from most recent edit by an author.

pagesel
outputs list based on the names of the reference pages which are used in the selection of a linksfrom or linksto statement. pagesel only makes sense if there is more than one page mentioned in the linksfrom or linksto condition.

title
outputs list sorted by article (prefix +) title

titlewithoutnamespace
outputs list sorted by the article name regardless of namespace

Token combinations
methodN can also be one of the following token combinations (see also headingmode option):

category,firstedit
outputs list sorted by category, then by first edit

category,lastedit
outputs list sorted by category, then by last edit within a category

category,pagetouched
outputs list sorted by category, then by pagetouched

category,sortkey
outputs list sorted by title and sortkey, requires at least one category statement

user,firstedit
outputs list sorted by user, then by firstedit by the user

user,lastedit
outputs list sorted by user, then by lastedit by the user

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) Example:

This list will output pages that have showing most recently edited articles at the top.