User:4madness/DPL/Infobox recipe/header/doc

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to navigation Jump to search
Information icon-grey.svg
This is a documentation subpage for User:4madness/DPL/Infobox recipe/header.
It contains usage information, categories, and other content that is not part of the original template page.

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 Herblore XP Primary ingredient Secondary ingredient(s) P2P icon.png Quests

To show the optional "Other XP" column, use {{User:4madness/DPL/Infobox recipe/header|allxp=yes}},,,|} instead.

Potion Level Herblore XP Primary ingredient Secondary ingredient(s) P2P icon.png Quests 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 Herblore XP Primary ingredient Secondary ingredient(s) P2P icon.png Quests
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 Herblore XP Primary ingredient Secondary ingredient(s) P2P icon.png Quests

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 Herblore XP Primary ingredient Secondary ingredient(s) P2P icon.png Quests Other XP