| DDO Server Transfers 2025: | 32b World Packing: Open | 32b → 64b World Transferring: Open | 64b World Unpacking: Open |
|---|---|---|---|
| 32-bit server "ghost worlds" are available to Prepare, Pack, & Transfer to the new 64-bit game worlds until October 1, 2027. See Ghost worlds for more details. | |||
| Newbie guide • In development • DDO Store (Coupons) • Social media |
|---|
| Classes • Crafting • Enhancements • Epic Destinies • Favor • Feats • Items Maps • Monsters • Places • Quests • Races • Reincarnation • Skills • Spells |
| Please create an account or log in to get the most updated information (this is up to 6 hours old), remove ads, access dark mode or the mobile friendly Timeless skin, and build a reputation to unlock more editing privileges. Please visit DDO wiki's Discord chat server if you need any help! |
Template:DPL category table
Usage[edit]
This template performs a DPL query to find and list all pages that use the template specified in |template= under one or more categories. It then uses a given phantom template to display the results.
{{DPL category table
| categories =
| andcategories =
| notcategories =
| template =
| phantom =
| tablesortcol =
| debug = 0
}}
- categories is a set of categories to search in. Separated by the character
¦. - andcategories is an optional list of categories that the pages selected should also be part of. Separated with the character
¦. - notcategories is optional and contains a list of categories that the selected pages shouldn't belong to. Separated by the character
¦. - template is the full template name (including "Template:") that the pages selected will be using.
- phantom is the name of the phantom template that should be used to parse and display quest information.
- tablesortcol is an optional parameter. In case your phantom template generates a sortable table,
|tablesortcol=can specify an initial column to be sorted. Columns start from 1 and are sorted with ascending values. A negative number means the column will be sorted with descending values. - debug default is 0 (which means no debug). This sets a debug mode to the DPL call. See the DPL manual for details.
Phantom template format[edit]
The phantom template must have a certain format.
- It must generate the table heading when asked to
- It must generate the table footer when asked to.
- It must generate one table row otherwise.
To better generate the table heading and footer, it is passed additional parameters
{{My_phantom_template
|tableheadings= <!-- If this parameter contains something, the template should only produce the table headers -->
|tablefooter= <!-- If this parameter contains something, the template should only produce the ending of the table -->
|categories= <!-- In case one of the above parameters contains something, this parameter will contain categories-->
|andcategories= <!-- Same as categories -->
|notcategories= <!-- Same as categories -->
<!--
Any of the parameters of the chosen template (from the "template" parameter)
-->
}}
- tableheadings If it contains something, the phantom template should only produce the table headers as well as the table start symbol
{|. So, it can produce things before the table starts, the class of the table and the headers. - tablefooter If it contains something, the phantom template should only produce the table ending with the table end symbol
|}. So, it can enter more table rows till the table closes and more things after the table closes. - categories/andcategories/notcategories In case one of the above contains something, those parameters will contain the
|categories=,|andcategories=and|notcategories=passed to this template respectively. This should help the phantom template produce better headings and footer. - If none of the above parameters contain anything, then the template should produce table rows starting from the row start symbol
|-followed by lines containing the contents of the cells of that row. The contents of the cells can be generated using any of the parameters that the template specified in|template=uses.
List of phantom templates[edit]
See Category:DPL table phantom templates
Examples[edit]
For a list of examples, you can check the pages that transclude this template: Special:WhatLinksHere/Template:DPL_category_table
CODE[edit]
Specify a category or categories in {{{categories}}} (separated with ¦) to select pages from.
Specify the template that the selected pages use in {{{template}}}. Use the full name of the template (including the namespace "Template:").
Specify a phantom template in the parameter {{{phantom}}} that will parse the parameters of {{[[Template:{{{template}}} |{{{template}}} ]]}} and display them in table columns.
DPL not executed.