Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!
Difference between revisions of "Template:Recipe"
(add formatting options; use single parameter for ingredients and fail result) |
m |
||
Line 31: | Line 31: | ||
</div> | </div> | ||
{{clear}} | {{clear}} | ||
− | }} | + | }}{{#if:{{{proficiency|}}}|<div class="subheader">Recommended Training Level</div> |
− | {{#if:{{{proficiency|}}}|<div class="subheader">Recommended Training Level</div> | ||
<div style="padding: 5px 10px 0px 10px;">{{{proficiency}}} Lv. {{{proficiency level}}}</div> | <div style="padding: 5px 10px 0px 10px;">{{{proficiency}}} Lv. {{{proficiency level}}}</div> | ||
− | }} | + | }}<div class="subheader">Necessary Materials</div> |
− | <div class="subheader">Necessary Materials</div> | ||
<div class="materials"> | <div class="materials"> | ||
<dl>{{#arraymap: {{{ingredients|}}}|;|@@@| | <dl>{{#arraymap: {{{ingredients|}}}|;|@@@| |
Latest revision as of 19:37, 15 April 2016
Contents
Description
This template creates a recipe record and displays everything.
It creates a subobject with the following properties:
- Has recipe
- Has synthesizing npc
- Can be owned
- Has successful synthesis result
- Has failed synthesis result
- Has proficiency
- Has ingredient
Usage
{{Recipe | recipe = | npc = | ownable = | success result = | fail result = | proficiency = | proficiency level = | ingredients = | format = }}
Parameters
All parameters are optional unless stated otherwise.
- recipe
- Wiki page of the recipe item.
- npc
- Wiki page of the NPC synthesizing.
- ownable
- Required. Set to y if the recipe item can be consumed to learn the recipe. Defaults to n.
- success result
- Required. Quantity and wiki page of the item that is the result of a successful synthesis. Expected format is the quantity, followed by a space, followed by the item's wiki page.
- fail result
- Quantity and wiki page of the item that is the result of a failed synthesis. Expected format is the quantity, followed by a space, followed by the item's wiki page. Separate multiple with a semicolon.
- proficiency
- Required profession or recommended craft to use the recipe.
- proficiency level
- Profession tier or recommended craft level to use the recipe.
- recommended craft
- Craft that is recommended.
- ingredients
- Quantity and wiki page of the material that is used in the recipe. Expected format is the quantity, followed by a space, followed by the item's wiki page. Separate multiple with a semicolon.
- format
- Display format of the recipe. Set to box to display the recipe in an infobox, or to Recipe list row to display it as a row used in conjunction with Template:Recipe list header. Defaults to box.
Examples
{{Recipe | recipe = Recipe: Rookie Alchemy Extractor | ownable = y | success result = 1 Rookie Alchemy Extractor | proficiency = Alchemy | proficiency level = 1 | ingredients = 10 Low Grade Elemental Stone; 300 Clear Cube Fragment }}
Recipe: Rookie Alchemy Extractor
Successful Synthesis Result
Recommended Training Level
Alchemy Lv. 1
Necessary Materials
{{Recipe list header|show description=n}} {{Recipe | format = Recipe list row | npc = Roger Levin | ownable = n | success result = 1 Inferior Hardener | ingredients = 1 Raw Hardener; 50 Gold }} {{Recipe | format = Recipe list row | npc = Roger Levin | ownable = n | success result = 1 Stone of Delirium | ingredients = 10 Stone of Delirium Debris; 2500 Gold }} |}
Icon | Name | Binding | Recipe | Profession/Craft | Level | Materials |
---|---|---|---|---|---|---|
Inferior Hardener (1) | — | — | — |
| ||
Stone of Delirium (1) | — | — | — |
|