Template:Recipe/doc: Difference between revisions
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | |||
<!-- Categories/interwikis for the template itself --> | |||
[[Category:Formatting templates]] | |||
</includeonly><noinclude> | |||
<!-- Categories/interwikis for this documentation itself --> | |||
[[Category:Template documentation|{{PAGENAME}}]] | |||
</noinclude> | |||
== Description == | == 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 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 [[Template:RecipeToItem]]. | |||
* 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 == | == Syntax == | ||
<pre>{{Recipe|recipeName}}</pre> | |||
== Parameters == | ===Parameters=== | ||
*First (only) parameter (required): The exact name of the recipe. | |||
: The | |||
== | == Example == | ||
===Example Code === | |||
<pre>{{Recipe|Whisky (Drinkable Cask)}}</pre> | |||
===Example Output === | |||
{{Recipe|Whisky (Drinkable Cask)}} | |||
== Note == | == Note == | ||
An old version of this template was partially implemented at one time, attempting to redirect users to recipe pages as found in [[:Category:Recipes]]. However only a small fraction of these individual recipe pages were ever created, and that project was abandoned. | |||
[[ | |||
Revision as of 18:02, 18 December 2020
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 Template:RecipeToItem.
- 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}}
Parameters
- First (only) parameter (required): The exact name of the recipe.
Example
Example Code
{{Recipe|Whisky (Drinkable Cask)}}
Example 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: http://cdn.projectgorgon.com/v456/icons/icon_5722.png | http://cdn.projectgorgon.com/v456/icons/icon_.png | Error: Item not found }} [[{{#replace:Whisky|#|}}|Whisky (Drinkable Cask)]]
Note
An old version of this template was partially implemented at one time, attempting to redirect users to recipe pages as found in Category:Recipes. However only a small fraction of these individual recipe pages were ever created, and that project was abandoned.