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
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:
{{#dpl: |category=Category:Dogmeat |ordermethod=lastedit }}
This list will output pages that have [[Category:Dogmeat]] showing most recently edited articles at the top.
- Dogmeat (Fallout)
- Dogmeat's Puppy
- Dogmeat (Fallout: Brotherhood of Steel)
- Dogmeat (Fallout: The Board Game)
- Dogmeat (Fallout 2)
- Dogmeat (Fallout Shelter)
- Dogmeat (Fallout: The Roleplaying Game)
- Dogmeat (Fallout 3)
- Dogmeat (Fallout 4)
Table sorting
Use |tablesortcol= plus a number to sort by a column, independently of whichever sorting you chose in the ordermethod.
The number you choose must be the number of the column you want to sort by.
Use positive numbers for descending order, or negative numbers for descending order.
Check out this Fallout Speedrunning page for an example.
Template
{{#dpl: |category=Category:Dogmeat |ordermethod=lastedit |tablesortcol=-3 }}
This means it will sort from the 3rd column in descending order.
Gallery mode
You can use this to display a bunch of images in gallery mode.
Template
{{#dpl: |category=Fallout Tactics key item images |mode=gallery }}
Looks like this: