Template:Item Usage: Difference between revisions
Appearance
No edit summary |
No edit summary Tag: Manual revert |
||
| Line 3: | Line 3: | ||
|category={{#if:{{{category|}}}||Uses {{{1|{{#titleparts:{{PAGENAME}}}}}}}}} | |category={{#if:{{{category|}}}||Uses {{{1|{{#titleparts:{{PAGENAME}}}}}}}}} | ||
|category={{{category|}}} | |category={{{category|}}} | ||
|notcategory={{{notcategory|}}} | |notcategory={{{notcategory|}}} | ||
|notcategory={{{not|}}} | |notcategory={{{not|}}} | ||
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 |