Template:Artisan product by category table/doc: Difference between revisions
(Created page with " <templatedata> { "params": { "1": { "label": "Filter: Item Name", "description": "If set, limits the returned product recipes to those requiring these items. Multiple items should be separated by a semicolon. When not set, defaults to the name of the current page (the current item). Case-sensitive!", "example": "Egg;Milk", "type": "string" }, "category": { "label": "Filter: Belonging to category 1", "description": "If set, further limits results...") |
(Added examples) |
||
Line 1: | Line 1: | ||
{{Documentation/Header}} | |||
==Example 1== | |||
No parameters:<br/> | |||
{{T|Artisan product by category table|_Yn_=1}} | |||
==Example 2== | |||
Setting "Filter: Item name":<br/> | |||
{{T|Artisan product by category table|Egg|_Yn_=1}} | |||
==Example 3== | |||
Setting "Filter: Artisan equipment":<br/> | |||
{{T|Artisan product by category table||medium=Mason jar|_Yn_=1}} | |||
==Example 3== | |||
Setting both "Filter: Item name" and "Filter: Artisan equipment":<br/> | |||
{{T|Artisan product by category table|Egg|medium=Mason jar|_Yn_=1}} | |||
<templatedata> | <templatedata> | ||
Line 4: | Line 20: | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": "Filter: Item | "label": "Filter: Item name", | ||
"description": "If set, limits the returned product recipes to those requiring these items. Multiple items should be separated by a semicolon. When not set, defaults to the name of the current page (the current item). Case-sensitive!", | "description": "If set, limits the returned product recipes to those requiring these items. Multiple items should be separated by a semicolon. When not set, defaults to the name of the current page (the current item). Case-sensitive!", | ||
"example": "Egg;Milk", | "example": "Egg;Milk", |
Latest revision as of 22:03, 18 August 2024
This is the documentation page for Artisan product by category table. It contains usage information, categories, and other content not part of the original template page. | ||
---|---|---|
Main | Documentation | Usage |
Example 1
No parameters:
{{Artisan product by category table}}
yields:
No artisan product needs artisan product by category table/doc.
Example 2
Setting "Filter: Item name":
{{Artisan product by category table|Egg}}
yields:
Product | Ingredients | Crafting medium | Time | Sell price | Restores |
---|---|---|---|---|---|
5h | 100 | ||||
5h | 75 |
Example 3
Setting "Filter: Artisan equipment":
{{Artisan product by category table||medium = Mason jar}}
yields:
Product | Ingredients | Time | Sell price | Restores |
---|---|---|---|---|
6h | 220 | |||
6h | 105 | |||
6h | 90 | |||
6h | 75 | |||
6h | 75 | |||
5h | 135 | |||
5h | 135 | |||
6h | 130 | |||
6h | 40 | |||
6h | 115 | |||
6h | 250 | |||
6h | 85 | |||
5h | 330 | |||
6h | 125 | |||
6h | 125 | |||
6h | 70 | |||
5h | 210 | |||
5h | 210 | |||
5h | 540 | |||
7h | 250 | |||
5h | 115 | |||
7h | 595 | |||
6h | 105 | |||
6h | 135 | |||
6h | 220 | |||
6h | 105 | |||
6h | 365 | |||
6h | 220 | |||
6h | 115 | |||
6h | 245 | |||
6h | 115 | |||
6h | 60 | |||
6h | 70 | |||
6h | 95 | |||
6h | 85 | |||
6h | 85 | |||
6h | 205 | |||
6h | 60 | |||
6h | 130 | |||
6h | 280 | |||
6h | 45 | |||
6h | 180 | |||
6h | 50 | |||
6h | 75 | |||
6h | 70 | |||
6h | 180 | |||
6h | 85 | |||
6h | 150 | |||
6h | 60 | |||
6h | 85 | |||
6h | 105 | |||
6h | 105 | |||
6h | 130 | |||
6h | 195 | |||
6h | 175 | |||
6h | 60 | |||
6h | 75 | |||
6h | 90 | |||
6h | 315 | |||
6h | 115 | |||
6h | 125 | |||
6h | 55 | |||
7h | 150 | |||
5h | 75 | |||
7h | 370 | |||
6h | 115 | |||
6h | 175 | |||
6h | 170 | |||
6h | 60 | |||
5h | 55 | |||
6h | 65 | |||
6h | 175 |
Example 3
Setting both "Filter: Item name" and "Filter: Artisan equipment":
{{Artisan product by category table|Egg|medium = Mason jar}}
yields:
Product | Ingredients | Time | Sell price | Restores |
---|---|---|---|---|
5h | 75 |
Displays a table of artisan products that require a given item.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Filter: Item name | 1 | If set, limits the returned product recipes to those requiring these items. Multiple items should be separated by a semicolon. When not set, defaults to the name of the current page (the current item). Case-sensitive!
| String | optional |
Filter: Artisan equipment | medium | If set, limits the results to those that use these artisan equipments. Multiple names should be separated by a semicolon. Case-sensitive!
| String | optional |
Filter: Only these recipes | only | If set, limits the results to these recipes (other filters still apply and can exclude them). Multiple recipes should be separated by a semicolon. Case-sensitive! | String | optional |
Filter: Belonging to category 1 | category | If set, further limits results to those recipes that belong to this category. Only a single category name is allowed. | String | optional |
Filter: Belonging to category 2 | category2 | If set, further limits results to those recipes that belong to this category. Only a single category name is allowed. | Unknown | optional |
Display "Sell Price" column? | noprice | If set to a non-empty value, the sell price column will not be displayed. | Boolean | optional |
Display "Restores" column? | norestore | If set to a non-empty value, the "Restores" column will not be displayed. Depends on the visibility of the "Sell price" column; if "Sell price" is not displayed, "Restores" will also be hidden. | Boolean | optional |
Filter: Not belonging to category 1 | not | If set, further limits results to those recipes that do not belong to this category. Only a single category name is allowed. | Unknown | optional |
Filter: Not belonging to category 2 | not2 | If set, further limits results to those recipes that do not belong to this category. Only a single category name is allowed. | Unknown | optional |