User:4madness/DPL/Infobox recipe/header
< User:4madness | DPL | Infobox recipe
Jump to navigation
Jump to search
Template documentation
This documentation is transcluded from User:4madness/DPL/Infobox recipe/header/doc. [edit] [history] [purge]
A header template for the table constructed by User:4madness/DPL/Infobox recipe/template.
Usage
To use the template, add {{User:4madness/DPL/Infobox recipe/header}},,,|}
to the format
line of a DPL query.
Potion | Level | ![]() |
Primary ingredient | Secondary ingredient(s) | ![]() |
![]() |
---|
To show the optional "Other XP" column, use {{User:4madness/DPL/Infobox recipe/header|allxp=yes}},,,|}
instead.
Potion | Level | ![]() |
Primary ingredient | Secondary ingredient(s) | ![]() |
![]() |
Other XP |
---|
Optionally, {{User:4madness/DPL/Infobox recipe/header|noresults=yes}}
can be added to the noresultsheader
line of a DPL query to show the following table when no matching potions are found.
Potion | Level | ![]() |
Primary ingredient | Secondary ingredient(s) | ![]() |
![]() |
---|---|---|---|---|---|---|
No potions found. |
Example
Default layout
Using template and the following code,
<dpl> namespace = category = Unfinished potions include = {Infobox recipe|User:4madness/DPL/Infobox recipe/template} count = 10 tablesortcol = 2 noresultsheader = {{User:4madness/DPL/Infobox recipe/header|noresults=yes}} format = {{User:4madness/DPL/Infobox recipe/header}},,,|} </dpl>
produces the following result:
Potion | Level | ![]() |
Primary ingredient | Secondary ingredient(s) | ![]() |
![]() |
---|
Extended layout
Using template2 and the following code,
<dpl> namespace = titlematch = Vial|Vial of water|Coconut milk|Potion flask|Crystal flask include = {Infobox recipe|User:4madness/DPL/Infobox recipe/template2} tablesortcol = 2 noresultsheader = {{User:4madness/DPL/Infobox recipe/header|allxp=yes|noresults=yes}} format = {{User:4madness/DPL/Infobox recipe/header|allxp=yes}},,,|} </dpl>
produces the following result:
Potion | Level | ![]() |
Primary ingredient | Secondary ingredient(s) | ![]() |
![]() |
Other XP |
---|