Template:Item Usage/doc: Difference between revisions
Appearance
Created page with "{{Documentation/Header}} {{Lua}} Lists all pages that used the item page as an ingredient in {{T|Recipe}}. ==Syntax== {{T|Item Usage|v1=item|v2=category=extra categories|v3=notcategory=category to exclude}} * {{F|1}} — defaults to <nowiki>{{PAGENAME}}</nowiki> * {{F|not1}}/{{F|not2}}/{{F|not3}} — same function as {{F|notcategory}} as each can only accept one category * {{F|type}} — set to {{F|Furnishing Set}} for Furnishings. ==Examples== {{T|Item..." |
|||
| Line 10: | Line 10: | ||
==Examples== | ==Examples== | ||
{{T|Item Usage| | {{T|Item Usage|Cactus Fruit|_Ybr_=1}} | ||
---- | ---- | ||
{{T|Item Usage| | {{T|Item Usage|Wheat|_Ybr_=1|not1=Dishes}} | ||
==Template Data== | ==Template Data== | ||
Latest revision as of 13:01, 25 May 2026
This is the documentation page for Item Usage. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| 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 |