tibia
Lock Icon

This page is protected to prevent harmful edits. Contact an administrator if you want to suggest changes to the page.

If you think this page should be unprotected, then use {{unprotect}} on the talk page.

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.
Magic Shopkeeper NPCs¦Venore NPCs = [OR] will show all the magic shopkeeper npcs and all the Venore NPCs.

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:

Table Caption

Name Job Buy/Sell Location
The Oracle The Oracle (Clairvoyant) [no] {Rookgaard Academy, first floor}
Cobra (NPC) Cobra (NPC) (Guard) [no] {Stone Tomb, snake room before Thalas}
Denominator Denominator () [no] {Museum of Tibian Arts.}
Dread Guardian Dread Guardian (Guard) [yes] {Vengoth, Devovorga's realm.}
Frans Frans (Magic Shopkeeper) [yes] {Venore magic shop, east of the depot and temple}
Frosty Frosty () [no] {East on Percht Island.}
Mysterious Device Mysterious Device (Guard) [no] {Replica Dungeon (through the Energy Portal).}
Mysterious Ornate Chest (NPC) Mysterious Ornate Chest (NPC) (Guard) [no] {Ab'Dendriel Forge.}
Opticorder Forge (NPC) Opticorder Forge (NPC) (Guard) [no] {Kazordoon Forge.}
Scrutinon Scrutinon (Clairvoyant) [no] {Gray Island}
Strange Pipe Strange Pipe (Guard) [no] {Underground Glooth Factory}
The Destiny Seer The Destiny Seer (Clairvoyant) [no] {Island of Destiny, inside the last tent}
A Strange Chalice A Strange Chalice (Scientist) [no] {Zao}

No Results. |}