Template:Recipe: Difference between revisions
Jump to navigation
Jump to search
m better spacing |
mNo edit summary |
||
| Line 348: | Line 348: | ||
| Poisoned Crab Roll | | Poisoned Crab Roll | ||
| Iocaine Milk Smoothie = [[Mycology|{{{1}}}]] | | Iocaine Milk Smoothie = [[Mycology|{{{1}}}]] | ||
| Summon Druidic Storage (12-slot) = | | Summon Druidic Storage (12-slot) = | ||
| Summon Druidic Storage (20-slot) = | | Summon Druidic Storage (20-slot) = [[Storage|{{{1}}}]] | ||
| #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem|{{{1}}}}}|#|}}|{{{1}}}]]}}</includeonly><noinclude> | | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem|{{{1}}}}}|#|}}|{{{1}}}]]}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 16:38, 20 December 2020
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Description
Takes the name of a recipe. as found in-game in the crafting menu or an NPC's training menu, or in the "Name" field in recipes.json (at http://cdn.projectgorgon.com) and outputs a link and sometimes an icon:
- If the recipe produces an item, the template outputs that icon's icon and a link to the item page. Uses a helper template for each letter, e.g. Template:RecipeToItem/A.
- Otherwise the template outputs no icon and a link to a relevant page, usually the page of the skill-line, with a few exceptions (for example the apply augment recipes link to Augmentation instead of Lore).
Syntax
{{Recipe|recipeName}}- or, to omit the leading scroll icon and "Recipe:" text:
{{Recipe|recipeName|noscroll}}
Parameters
- First parameter (required): The exact name of the recipe.
- Second parameter (optional): If this parameter is present (can be any non-empty string), the leading scroll icon and "Recipe:" text are omitted.
Example
Example 1 Code
{{Recipe|Whisky (Drinkable Cask)}}
Example 1 Output
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_4003.png
| http://cdn.projectgorgon.com/v456/icons/icon_.png
| Error: Item not found }} Recipe:
[[{{#replace:|#|}}|Whisky (Drinkable Cask)]]
Example 2 Code
{{Recipe|Whisky (Drinkable Cask)|x}}
Example 2 Output
[[{{#replace:|#|}}|Whisky (Drinkable Cask)]]
Note
The above text is transcluded from Template:Recipe/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:Recipe/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:Recipe/doc. (View all subpages of this page.)