Template:ItemRecipe/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "== ItemRecipe Module Variables == === Main Item Variables === * '''item1''', '''item2''', '''item3''', etc. - The names of the items that can be obtained * '''image1''', '''image2''', '''image3''', etc. - The images for each corresponding item * '''level1''', '''level2''', '''level3''', etc. - The level requirement for each item * '''skill1''', '''skill2''', '''skill3''', etc. - The skill associated with each item (inserts image) * '''chance1''', '''chance2''', '''chanc..." |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=How to use this Template= | |||
==Syntax== | |||
To make an entry for an item recipe, use the Template call <pre>{{ItemRecipe}}</pre> | |||
Inside of the template you'll enter parameters to fill in the template with the appropriate information. | |||
== ItemRecipe Module Variables == | == ItemRecipe Module Variables == | ||
Line 5: | Line 10: | ||
* '''image1''', '''image2''', '''image3''', etc. - The images for each corresponding item | * '''image1''', '''image2''', '''image3''', etc. - The images for each corresponding item | ||
* '''level1''', '''level2''', '''level3''', etc. - The level requirement for each item | * '''level1''', '''level2''', '''level3''', etc. - The level requirement for each item | ||
** Levels can also have secondary parameters in the event of an item having multiple level/skill requirements. | |||
** use '''level1''' as the first level, and then '''level1_1''' as the second item. Go up from there. | |||
* '''skill1''', '''skill2''', '''skill3''', etc. - The skill associated with each item (inserts image) | * '''skill1''', '''skill2''', '''skill3''', etc. - The skill associated with each item (inserts image) | ||
** Skills can also have secondary parameters in the event of an item having multiple level/skill requirements. | |||
** use '''skill1''' as the first skill, and then '''skill1_1''' as the second item. Go up from there. | |||
* '''chance1''', '''chance2''', '''chance3''', etc. - The success chance for completing the craft | * '''chance1''', '''chance2''', '''chance3''', etc. - The success chance for completing the craft | ||
Line 31: | Line 40: | ||
* First number (after variable name): Sequential item number (item1, item2, etc.) | * First number (after variable name): Sequential item number (item1, item2, etc.) | ||
* Second number (after underscore): Material number for that item (material1_1, material2_1, etc.) | * Second number (after underscore): Material number for that item (material1_1, material2_1, etc.) | ||
==Example== | |||
Below is an example of the syntax, and the resulting table that is created. | |||
IMPORTANT: The first item, "material1_1", will be highlighted green automatically to indicate it is not lost of craft failure. | |||
NOTE 2: The line of text you see above the table is automatically inserted every time this template is used. | |||
<pre> | |||
{{ItemRecipe | |||
| item1 = Dragon warhammer | |||
| image1 = Dragon_warhammer.png | |||
| skill1 = Smithing | |||
| level1 = 90 | |||
| skill1_1 = Woodcutting | |||
| level1_1 = 50 | |||
| quantity1_1 = 1 | |||
| material1_1 = Cerberus' tooth | |||
| quantity2_1 = 1 | |||
| material2_1 = Dragon metal lump | |||
| quantity3_1 = 1 | |||
| material3_1 = Dragon metal shard | |||
| quantity4_1 = 1 | |||
| material4_1 = Dragon metal slice | |||
| quantity5_1 = 15 | |||
| material5_1 = Dragon bar | |||
| quantity6_1 = 1,000 | |||
| material6_1 = Luminite flux | |||
| quantity7_1 = 2,500 | |||
| material7_1 = [[Upgrade gems]] | |||
| chance1 = 80% | |||
}} | |||
</pre> | |||
{{ItemRecipe | |||
| item1 = Dragon warhammer | |||
| image1 = Dragon_warhammer.png | |||
| skill1 = Smithing | |||
| level1 = 90 | |||
| skill1_1 = Woodcutting | |||
| level1_1 = 50 | |||
| quantity1_1 = 1 | |||
| material1_1 = Cerberus' tooth | |||
| quantity2_1 = 1 | |||
| material2_1 = Dragon metal lump | |||
| quantity3_1 = 1 | |||
| material3_1 = Dragon metal shard | |||
| quantity4_1 = 1 | |||
| material4_1 = Dragon metal slice | |||
| quantity5_1 = 15 | |||
| material5_1 = Dragon bar | |||
| quantity6_1 = 1,000 | |||
| material6_1 = Luminite flux | |||
| quantity7_1 = 2,500 | |||
| material7_1 = [[Upgrade gems]] | |||
| chance1 = 80% | |||
}} | |||
[[Category:Templates]] |
Latest revision as of 06:25, 16 March 2025
How to use this Template
Syntax
To make an entry for an item recipe, use the Template call
{{ItemRecipe}}
Inside of the template you'll enter parameters to fill in the template with the appropriate information.
ItemRecipe Module Variables
Main Item Variables
- item1, item2, item3, etc. - The names of the items that can be obtained
- image1, image2, image3, etc. - The images for each corresponding item
- level1, level2, level3, etc. - The level requirement for each item
- Levels can also have secondary parameters in the event of an item having multiple level/skill requirements.
- use level1 as the first level, and then level1_1 as the second item. Go up from there.
- skill1, skill2, skill3, etc. - The skill associated with each item (inserts image)
- Skills can also have secondary parameters in the event of an item having multiple level/skill requirements.
- use skill1 as the first skill, and then skill1_1 as the second item. Go up from there.
- chance1, chance2, chance3, etc. - The success chance for completing the craft
Material Variables
- material1_1, material2_1, material3_1, etc. - First material for each item
- material1_2, material2_2, material3_2, etc. - Second material for each item
- material1_3, material2_3, material3_3, etc. - Third material for each item
- material1_4, material2_4, material3_4, etc. - Fourth material for each item
- material1_5, material2_5, material3_5, etc. - Fifth material for each item
- material1_6, material2_6, material3_6, etc. - Sixth material for each item
- material1_7, material2_7, material3_7, etc. - Seventh material for each item
Quantity Variables
- quantity1_1, quantity2_1, quantity3_1, etc. - Quantity of first material for each item
- quantity1_2, quantity2_2, quantity3_2, etc. - Quantity of second material for each item
- quantity1_3, quantity2_3, quantity3_3, etc. - Quantity of third material for each item
- quantity1_4, quantity2_4, quantity3_4, etc. - Quantity of fourth material for each item
- quantity1_5, quantity2_5, quantity3_5, etc. - Quantity of fifth material for each item
- quantity1_6, quantity2_6, quantity3_6, etc. - Quantity of sixth material for each item
- quantity1_7, quantity2_7, quantity3_7, etc. - Quantity of seventh material for each item
Format Note
The numbering convention uses two indices:
- First number (after variable name): Sequential item number (item1, item2, etc.)
- Second number (after underscore): Material number for that item (material1_1, material2_1, etc.)
Example
Below is an example of the syntax, and the resulting table that is created.
IMPORTANT: The first item, "material1_1", will be highlighted green automatically to indicate it is not lost of craft failure.
NOTE 2: The line of text you see above the table is automatically inserted every time this template is used.
{{ItemRecipe | item1 = Dragon warhammer | image1 = Dragon_warhammer.png | skill1 = Smithing | level1 = 90 | skill1_1 = Woodcutting | level1_1 = 50 | quantity1_1 = 1 | material1_1 = Cerberus' tooth | quantity2_1 = 1 | material2_1 = Dragon metal lump | quantity3_1 = 1 | material3_1 = Dragon metal shard | quantity4_1 = 1 | material4_1 = Dragon metal slice | quantity5_1 = 15 | material5_1 = Dragon bar | quantity6_1 = 1,000 | material6_1 = Luminite flux | quantity7_1 = 2,500 | material7_1 = [[Upgrade gems]] | chance1 = 80% }}
Note: The ingredient highlighted green is always kept on crafting failure.
Item | Level | Success Chance | Materials | ||||
---|---|---|---|---|---|---|---|
![]() |
Dragon warhammer | 80% |
|