Notes:
This template can be used to generate tables with over 500 values using DPLs in an easier to read and edit format.
Syntax:
{{DPL Table|
| headers= !Header!!Header!!Header
| table_class = wikitable sortable
| table_style = text-align:left;
| caption_style = text-align:left;
| table_caption = <h3><strong>Table Caption<strong></h3>
| tablerow =
| no_results = There are no results.
| categories = Lists
| not_category = Deprecated
| uses_template = Template:Infobox NPC
| includes= {Infobox NPC}:job:buysell:location
}}
| Parameter | Required | Usage |
|---|---|---|
headers |
✓ | table headers. |
table_class |
✗ | table class in plain text, defaults to : wikitable sortable. |
table_style |
✗ | table class in plain text, defaults to : text-align:center;. |
table_caption |
✗ | table caption message can use %TOTALPAGES% variable. |
caption_style |
✗ | caption style in plain text, defaults to : text-align:center;. |
includes |
✓ | select what parameters are shown examples : 1:{Infobox Item}:name:weight.
2: %TITLE% |
tablerow |
✗ | leave blank if no row value formatting required, can use dpl variable such as %TITLE% and %NR%. |
sortcol |
✗ | column in the table to sort, defaults to no value [doesn't work for the first column, use 'order_method = title', works ok for other columns] |
uses_template |
✗ | select only pages that use specified template.[example :Template:Infobox Name] |
no_results |
✗ | what message appears when no results are found, defaults to "No Results.". |
categories |
✓ | what categories are searched. Example :
Magic Shopkeeper NPCs&Venore NPCs = [AND] will show magic shopkeeper npcs that are in Venore. |
not_category |
✓ | what category not to show (can only have one exact category). |
not_categorymatch |
✗ | sql query like matching of categories not to show : Category1¦Category2. |
title_match |
✗ | sql query like matching of titles to show : title1¦title2. |
not_titlematch |
✗ | sql query like matching of titles not to show : title1¦title2. |
order_method |
✗ | order list by variable, defaults to no value.[doesn't work well with long lists] |
namespaces |
✗ | what namespace the to look in, defaults to main (blank). |
cacheresults |
✗ | true / false, defaults to false. |
Example:
input:
{{DPL Table|
| headers= !Name!!!!Job!!Buy/Sell!!Location
| table_class = wikitable sortable
| table_style = text-align:left;
| caption_style = text-align:left;
| table_caption = <h3><strong>Table Caption<strong></h3>
| tablerow = [[%TITLE%]]¦¦²{NPC Icon¦%TITLE%}²¦¦(%%),[%%],{%%}
| no_results = There are no results.
| categories = NPCs&Animate Object NPCs
| not_category = Deprecated
| uses_template = Template:Infobox NPC
| includes= {Infobox NPC}:job:buysell:location
}}
output:
| Name | Job | Buy/Sell | Location | |
|---|---|---|---|---|
| The Oracle | ![]() |
(Clairvoyant) | [no] | {Rookgaard Academy, first floor} |
| Cobra (NPC) | ![]() |
(Guard) | [no] | {Stone Tomb, snake room before Thalas} |
| Denominator | ![]() |
() | [no] | {Museum of Tibian Arts.} |
| Dread Guardian | ![]() |
(Guard) | [yes] | {Vengoth, Devovorga's realm.} |
| Frans | ![]() |
(Magic Shopkeeper) | [yes] | {Venore magic shop, east of the depot and temple} |
| Frosty | ![]() |
() | [no] | {East on Percht Island.} |
| Mysterious Device | ![]() |
(Guard) | [no] | {Replica Dungeon (through the Energy Portal).} |
| Mysterious Ornate Chest (NPC) | ![]() |
(Guard) | [no] | {Ab'Dendriel Forge.} |
| Opticorder Forge (NPC) | ![]() |
(Guard) | [no] | {Kazordoon Forge.} |
| Scrutinon | ![]() |
(Clairvoyant) | [no] | {Gray Island} |
| Strange Pipe | ![]() |
(Guard) | [no] | {Underground Glooth Factory} |
| The Destiny Seer | ![]() |
(Clairvoyant) | [no] | {Island of Destiny, inside the last tent} |
| A Strange Chalice | ![]() |
(Scientist) | [no] | {Zao} |












