User:4madness/DPL/Infobox recipe/header

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
Template documentation
This documentation is transcluded from User:4madness/DPL/Infobox recipe/header/doc. [edit] [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 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
Rogue's purse potion (unf).png: RS3 Inventory image of Rogue's purse potion (unf) Rogue's purse potion (unf) 5 1 Vial of water.png: RS3 Inventory image of Vial of water Vial of water Clean rogue's purse.png: RS3 Inventory image of Clean rogue's purse Clean rogue's purse Yes No
Tarromin potion (unf).png: RS3 Inventory image of Tarromin potion (unf) Tarromin potion (unf) 5 1 Vial of water.png: RS3 Inventory image of Vial of water Vial of water Clean tarromin.png: RS3 Inventory image of Clean tarromin Clean tarromin No No
Marrentill potion (unf).png: RS3 Inventory image of Marrentill potion (unf) Marrentill potion (unf) 9 1 Vial of water.png: RS3 Inventory image of Vial of water Vial of water Clean marrentill.png: RS3 Inventory image of Clean marrentill Clean marrentill Yes No
Harralander potion (unf).png: RS3 Inventory image of Harralander potion (unf) Harralander potion (unf) 20 1 Vial of water.png: RS3 Inventory image of Vial of water Vial of water Clean harralander.png: RS3 Inventory image of Clean harralander Clean harralander Yes No
Mountain irit potion (unf).png: RS3 Inventory image of Mountain irit potion (unf) Mountain irit potion (unf) 43 0 Vial of mountain water.png: RS3 Inventory image of Vial of mountain water Vial of mountain water Clean irit.png: RS3 Inventory image of Clean irit Clean irit Yes No
Diamond dust potion (unf).png: RS3 Inventory image of Diamond dust potion (unf) Diamond dust potion (unf) 43 0 Mountain irit potion (unf).png: RS3 Inventory image of Mountain irit potion (unf) Mountain irit potion (unf) Enchanted diamond root dust.png: RS3 Inventory image of Enchanted diamond root dust Enchanted diamond root dust Yes Yes
Avantoe potion (unf).png: RS3 Inventory image of Avantoe potion (unf) Avantoe potion (unf) 48 1 Vial of water.png: RS3 Inventory image of Vial of water Vial of water Clean avantoe.png: RS3 Inventory image of Clean avantoe Clean avantoe Yes No
Kwuarm potion (unf).png: RS3 Inventory image of Kwuarm potion (unf) Kwuarm potion (unf) 54 1 Vial of water.png: RS3 Inventory image of Vial of water Vial of water Clean kwuarm.png: RS3 Inventory image of Clean kwuarm Clean kwuarm Yes No
Cadantine potion (unf).png: RS3 Inventory image of Cadantine potion (unf) Cadantine potion (unf) 65 1 Vial of water.png: RS3 Inventory image of Vial of water Vial of water Clean cadantine.png: RS3 Inventory image of Clean cadantine Clean cadantine Yes No
Torstol potion (unf).png: RS3 Inventory image of Torstol potion (unf) Torstol potion (unf) 75 1 Vial of water.png: RS3 Inventory image of Vial of water Vial of water Clean torstol.png: RS3 Inventory image of Clean torstol Clean torstol Yes No

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
Coconut milk.png: RS3 Inventory image of Coconut milk Coconut milk 1 1 Vial.png: RS3 Inventory image of Vial Vial Coconut (open).png: RS3 Inventory image of Coconut (open) Coconut (open) Yes No None
Vial of water.png: RS3 Inventory image of Vial of water Vial of water 1 N/A Vial.png: RS3 Inventory image of Vial Vial None No No 0 Cooking
Vial.png: RS3 Inventory image of Vial Vial 33 N/A Molten glass.png: RS3 Inventory image of Molten glass Molten glass None Yes No 35.0 Crafting
Crystal flask.png: RS3 Inventory image of Crystal flask Crystal flask 89 N/A Crystal glass.png: RS3 Inventory image of Crystal glass Crystal glass None Yes Yes 150.0 Crafting
Potion flask.png: RS3 Inventory image of Potion flask Potion flask 89 N/A Robust glass.png: RS3 Inventory image of Robust glass Robust glass None Yes Yes 100.0 Crafting