Difference between revisions of "Template:Recipe"
Jump to navigation
Jump to search
m (smw-fied) |
m |
||
Line 18: | Line 18: | ||
| Requires crafting level = {{{level|1}}} | | Requires crafting level = {{{level|1}}} | ||
| Requires class = {{{class|}}} |+sep=, | | Requires class = {{{class|}}} |+sep=, | ||
| Class count = | | Class count = {{#len:{{#arraymap:{{{class|}}}|,|@@@|.|}}}} | ||
<!-- | Is time gated = {{#ifeq:{{lc:{{{timegate|n}}}}}|y|Y}} --> | <!-- | Is time gated = {{#ifeq:{{lc:{{{timegate|n}}}}}|y|Y}} --> | ||
| Has ingredient = {{#if: {{{ingredient1|}}} | 1;{{#explode:{{{ingredient1}}}| |0}};{{#sub:{{{ingredient1}}}|{{#pos:{{{ingredient1}}}| }}}} }} | | Has ingredient = {{#if: {{{ingredient1|}}} | 1;{{#explode:{{{ingredient1}}}| |0}};{{#sub:{{{ingredient1}}}|{{#pos:{{{ingredient1}}}| }}}} }} | ||
Line 41: | Line 41: | ||
; Output qty. | ; Output qty. | ||
: {{#if: {{{upper quantity|}}} | <span style="border-bottom:1px dotted silver" title="The output quantity varies between these two values for this recipe.">{{{quantity|1}}} – {{{upper quantity|}}}</span> | {{{quantity|1}}} }} | : {{#if: {{{upper quantity|}}} | <span style="border-bottom:1px dotted silver" title="The output quantity varies between these two values for this recipe.">{{{quantity|1}}} – {{{upper quantity|}}}</span> | {{{quantity|1}}} }} | ||
{{#if: {{{class|}}} | ; Class{{#ifexpr:{{# | {{#if: {{{class|}}} | ; Class{{#ifexpr:{{#len:{{#arraymap:{{{class}}}|,|@@@|.|}}}}} > 1|es}} | ||
: {{#arraymap:{{{class|}}}|,|@@@|{{@@@|name=y}}|<br>}} | : {{#arraymap:{{{class|}}}|,|@@@|{{@@@|name=y}}|<br>}} | ||
; Durability | ; Durability |
Revision as of 17:43, 14 July 2017
Recipe
- Source
- Unspecified
- Output qty.
- 1
Ingredients
Parameters
- id
- The recipe ID
- name
- The recipe name (defaults to
BASEPAGENAME
) - source
- How the recipe is learned:
class
- Learned automatically by levelling a class.recipe sheet
- Learned from a recipe sheet; requires parametersheet
below.
- sheet
- The name of the recipe sheet item that teaches the recipe; only use for
source = recipe sheet
. If learnt by multiple sources, separate sources with a semicolon ";". - type
- The recipe type, i.e. the header it appears under in the recipe list.
- quantity
- The number of items produced from the recipe. Defaults to 1.
- upper quantity
- Optional. Use when the number of output items varies.
- class
- The classes that can use the recipe. Accepts a comma-separated list (e.g.
class = culinarian, alchemist
). - level
- The level required in a class to use the recipe.
- crystal1
- crystal2
- Optional. The crystals the recipe requires. Value should be a quantity followed by an item name.
<quantity> <item name>
, e.g.1 Water Shard
- ingredient1
- Required. The ingredients of the recipe. Value should be a quantity followed by an item name.
<quantity> <item name>
, e.g.1 Lowland Grapes
- ingredient2
- ingredient3
- ingredient4
- Optional. Same functionality as ingredient1.
Example
{{Recipe | name = Raisins | source = Class | type = Meal | class = Culinarian | level = 3 | quantity = 3 | difficulty = 10 | durability = 40 | max-quality = 339 | crystal1 = 1 Fire Shard | ingredient1 = 1 Lowland Grapes }}
Raisins
- Source
- Class
- Type
- Meal
- Output qty.
- 3
- ClassExpression error: Unrecognized punctuation character "}".
- CUL
- Durability
- 40
- Difficulty
- 10
- Max. quality
- 339
- Req. level
- 3
- Quick synthesis
- Available
Ingredients