Template:CraftingRecipe/doc: Difference between revisions
TheGmaster (talk | contribs) (Created page with "For any questions or concerns please contact @thegmaster1 on Discord. This template is designed to allow every page that has a crafting recipe to be updated from one template. By editing a crafting recipe in this template, every page using this template will also be updated simultaneously. = Parameters = Parameters can be passed to a template in two ways: - By listing the parameter after the template name: <nowiki>{{CraftingRecipe|Parameter1|Parameter2|Parameter3}}</...") |
TheGmaster (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
- By listing the parameter after the template name: <nowiki>{{CraftingRecipe|Parameter1|Parameter2|Parameter3}}</nowiki> | - By listing the parameter after the template name: <nowiki>{{CraftingRecipe|Parameter1|Parameter2|Parameter3}}</nowiki> | ||
- By setting a numbered parameter directly: <nowiki>{{CraftingRecipe|1=Parameter1|2=Parameter2|3=Parameter3}}</nowiki> | - By setting a numbered parameter directly: <nowiki>{{CraftingRecipe|1=Parameter1|2=Parameter2|3=Parameter3}}</nowiki> | ||
Line 55: | Line 56: | ||
| <nowiki>|</nowiki> | | <nowiki>|</nowiki> | ||
| <nowiki><td></nowiki> | | <nowiki><td></nowiki> | ||
|- | |||
| New Row | | New Row | ||
| <nowiki>|-</nowiki> | | <nowiki>|-</nowiki> | ||
| <nowiki><tr></nowiki> | | <nowiki><tr></nowiki> | ||
|} | |} |
Latest revision as of 03:24, 18 August 2024
For any questions or concerns please contact @thegmaster1 on Discord.
This template is designed to allow every page that has a crafting recipe to be updated from one template. By editing a crafting recipe in this template, every page using this template will also be updated simultaneously.
Parameters
Parameters can be passed to a template in two ways:
- By listing the parameter after the template name: {{CraftingRecipe|Parameter1|Parameter2|Parameter3}}
- By setting a numbered parameter directly: {{CraftingRecipe|1=Parameter1|2=Parameter2|3=Parameter3}}
The first option is easier to type out, but an issues rises if you only need parameter 3 but not 2.
1
Parameter 1 is the query made against each item in the table, which serves as text to filter items by. The query is case-sensitive and can be any of the second parameter's options below. The query will also display any items that have the string inside of them: i.e. Heal Potion will also display Greater Heal Potion and Lesser Heal Potion. This is the purpose of the third parameter.
2
Parameter 2 is the mode, or the column that the query is being made against modes are not case-sensitive but must be one of the options below:
Mode | Description |
---|---|
Skill | Displays all items crafted using the given skill. |
Ingredient | Displays all items with the given ingredient. |
Item | Displays all items with then given name, will also show any item's that contain the name. |
Category | Displays all items in a given crafting category |
All | Displays all items regardless of the filter |
3
Parameter 3 is an optional parameter which takes text that if found in the item column will cause the item to be ignored entirely.
4
Parameter 4 can optionally be used to add a custom header to the table, although it must be done with HTML table tags:
Name | Markup | HTML |
---|---|---|
Header | ! | <th> |
Row | | | <td> |
New Row | |- | <tr> |