- merchant - Merchant of interest.
- item - Singular item for which to create a table.
- ingredient - Ingredient name. Used to filter the provided merchant's crafts for those which use the ingredient.
The Dark and Darker Wiki is made by and for the players. Do you want to contribute?
From Dark and Darker Wiki
Raw Salad (talk | contribs) Bureaucrats, commentadmin, csmoderator, editor, Interface administrators, moderator, Suppressors, Administrators, Widget editors 30,940 edits Added new functions to doc |
Raw Salad (talk | contribs) Bureaucrats, commentadmin, csmoderator, editor, Interface administrators, moderator, Suppressors, Administrators, Widget editors 30,940 edits m →page: typo |
||
| (One intermediate revision by the same user not shown) | |||
| Line 27: | Line 27: | ||
</tabber> | </tabber> | ||
== | ==page== | ||
Creates | Creates, if possible, two tables. The first presents recipes for if the given item is craftable. The second presents recipes that use the item to create other items. | ||
<tabber> | <tabber> | ||
|-| Parameters= | |-| Parameters= | ||
| Line 47: | Line 35: | ||
|-| Examples= | |-| Examples= | ||
<pre>{{#invoke:Craft| | <pre>{{#invoke:Craft|page|item=Void Blade|category=Weapon}}</pre> | ||
{{#invoke:Craft| | {{#invoke:Craft|page|item=Void Blade|category=Weapon}} | ||
---- | |||
<pre>{{#invoke:Craft|page|category=Misc|item=Iron Ingot}}</pre> | |||
{{#invoke:Craft|page|category=Misc|item=Iron Ingot}} | |||
---- | ---- | ||
<pre>{{#invoke:Craft| | <pre>{{#invoke:Craft|page|category=Misc|item=Iron Ore}}</pre> | ||
{{#invoke:Craft| | {{#invoke:Craft|page|category=Misc|item=Iron Ore}} | ||
</tabber> | </tabber> | ||
Functions for making Crafting table. Data comes from Data:Merchant.json.
Creates a table of craftables
{{#invoke:Craft|draw_table|item=Void Blade|merchant=Weaponsmith}}
| Name | Ingredients | Merchant |
|---|---|---|
{{#invoke:Craft|draw_table|merchant=Weaponsmith|ingredient=Iron Ingot}}
| Name | Ingredients | Merchant |
|---|---|---|
{{#invoke:Craft|draw_table|merchant=Weaponsmith}}
| Name | Ingredients | Merchant |
|---|---|---|
Creates, if possible, two tables. The first presents recipes for if the given item is craftable. The second presents recipes that use the item to create other items.
{{#invoke:Craft|page|item=Void Blade|category=Weapon}}
| Name | Ingredients | Merchant |
|---|---|---|
{{#invoke:Craft|page|category=Misc|item=Iron Ingot}}
| Name | Ingredients | Merchant |
|---|---|---|
| Name | Ingredients | Merchant |
|---|---|---|
{{#invoke:Craft|page|category=Misc|item=Iron Ore}}
| Name | Ingredients | Merchant |
|---|---|---|