Jump to content

Template:Item Usage

From The Petit Planet Wiki
Template documentation
Note: parts of or the entire template might not be visible without values provided.
This template uses Module:Item Usage (edit | hist), a script written in Lua.

Lists all pages that used the item page as an ingredient in {{Recipe}}.

Syntax[edit source]

{{Item Usage|item|category = extra categories|notcategory = category to exclude}}

  • 1 — defaults to {{PAGENAME}}
  • not1/not2/not3 — same function as notcategory as each can only accept one category
  • type — set to Furnishing Set for Furnishings.

Examples[edit source]

{{Item Usage|Gingko Wood}} yields:
There are 5 uses for Gingko Wood:

ItemCraft TypeRecipe
Grainharvester's Heart-Shaped Charm Grainharvester's Heart-Shaped CharmCraftingNormal Wheat Normal Wheat ×?
Gingko Wood Gingko Wood ×?
Grainharvester's Parasol Grainharvester's ParasolCraftingNormal Wheat Normal Wheat ×8
Gingko Wood Gingko Wood ×10
Wildwinds Reedgrass Flooring Wildwinds Reedgrass FlooringCraftingGingko Wood Gingko Wood ×10
Broken Wood Broken Wood ×15
Wildwinds Sofa Wildwinds SofaCraftingGingko Wood Gingko Wood ×10
Fir Wood Fir Wood ×10
Wildwinds Wooden Wall Wildwinds Wooden WallCraftingGingko Wood Gingko Wood ×10
Fir Wood Fir Wood ×10

{{Item Usage|Synthetic Rubber}} yields:
No recipes use Synthetic Rubber as an ingredient.

Template Data[edit source]

Lists all pages that used the item page as an ingredient in {{Recipe}}.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Item1

Name of item to get recipes that use it.

Default
{{PAGENAME}}
Page nameoptional
Categorycategory

Category to include.

Stringoptional
Not Categorynotcategory

Category to exclude.

Stringoptional
Notnot

Category to exclude.

Stringoptional
Not1not1

Category to exclude.

Stringoptional
Not2not2

Category to exclude.

Stringoptional
Not3not3

Category to exclude.

Stringoptional
Typetype

Set for different heading display.

Suggested values
Item Furnishing Set
Default
Item
Stringoptional