Template:Item Usage: Difference between revisions
Appearance
Created page with "<includeonly>{{#invoke:Item Usage|main|pages={{#DPL: |namespace= |category=Uses {{{1|{{#titleparts:{{PAGENAME}}}}}}} |category={{{category|}}} |notcategory={{{notcategory|}}} |notcategory={{{not|}}} |notcategory={{{not1|}}} |notcategory={{{not2|}}} |notcategory={{{not3|}}} |uses=Template:Recipe |format=,%PAGE%$$$,, |ordermethod=sortkey |noresultsheader=No recipes use this item. }}}}</includeonly><noinclude>{{Documentation|type=DPL Table}}</noinclude>" |
No edit summary Tag: Manual revert |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke:Item Usage|main|pages={{#DPL: | <includeonly>{{#invoke:Item Usage|main|pages={{#DPL: | ||
|namespace= | |namespace= | ||
|category=Uses {{{1|{{#titleparts:{{PAGENAME}}}}}}} | |category={{#if:{{{category|}}}||Uses {{{1|{{#titleparts:{{PAGENAME}}}}}}}}} | ||
|category={{{category|}}} | |category={{{category|}}} | ||
|notcategory={{{notcategory|}}} | |notcategory={{{notcategory|}}} | ||
Latest revision as of 19:52, 13 May 2026
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
This template uses Module:Item Usage, 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|Cactus Fruit}} yields:
There is 1 use for Cactus Fruit:
| Item | Craft Type | Kitchenware | Recipe |
|---|---|---|---|
| Cooking |
{{Item Usage|Wheat|not1 = Dishes}} yields:
There are 10 uses for Wheat:
Template Data
[edit source]Lists all pages that used the item page as an ingredient in {{Recipe}}.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Item | 1 | Name of item to get recipes that use it.
| Page name | optional |
| Category | category | Category to include. | String | optional |
| Not Category | notcategory | Category to exclude. | String | optional |
| Not | not | Category to exclude. | String | optional |
| Not1 | not1 | Category to exclude. | String | optional |
| Not2 | not2 | Category to exclude. | String | optional |
| Not3 | not3 | Category to exclude. | String | optional |
| Type | type | Set for different heading display.
| String | optional |