Template:Dpl top/doc

This template is an alternative to dpl that allows listing multiple categories in the same table. It is to be used with dpl inner and dpl bottom.

Usage
... (more optional calls for listing more categories in the same table)

Parameter details
Required: The table's column headers. Use the same format as you would when declaring column headers in a manual table, eg. ! column1 !! column2
 * col

Optional: The table's classes. Enter bare, without quotes. If this parameter is used, you should also enter custom=yes in dpl bottom. See below. Default = terraria sortable lined.
 * class

Required: A category to list.
 * cat

Optional: The template from which values will be taken. This will usually be an infobox, like item infobox. Enter the bare template name without "[[Template:". This template must exist on each page in the category being listed. Default = item infobox.
 * template

Optional: A template that determines how rows will be formatted. This will not usually be in the Template: namespace, but rather a sub-page of the current page, eg. "/dpl" (enter the template's page name without quotes). The template should contain the table code for a single row, and this row code will be repeated for each page in the category. Within this template, use to display a value from the article's infobox. See Swords/dpl for an example. Default = /dpl.
 * format

Specify custom=yes in dpl bottom if custom classes were entered in dpl top. This is necessary because when the default classes are used, a second wrapper table is placed around the list (used to smooth row borders). Custom=yes indicates that no extra table close should be included. If no custom classes were entered, omit this parameter.
 * custom