Open main menu

Project: Gorgon Wiki β

Changes

Template:Recipe/doc

1,097 bytes added, 20:36, 1 April 2021
m
no edit summary
<includeonly>
<!-- Categories/interwikis for the template itself -->
[[Category:Formatting templates]]
</includeonly><noinclude>
<!-- Categories/interwikis for this documentation itself -->
[[Category:Template documentation|{{PAGENAME}}]]
</noinclude>
 
== 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:Use this * If the recipe produces an item, the template outputs that icon's icon and a link to the item page. Uses a helper template whenever you want for each letter, e.g. [[Template:RecipeToItem/A]].* Otherwise the recipe 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 displayAugmentation instead of Lore).
== Syntax ==
:Type *<pre>{{t|ItemRecipe|Item namerecipeName}} where you want </pre>*or, to omit the recipe leading scroll icon and link to display."Recipe:" text: <pre>{{Recipe|recipeName|noscroll}}</pre>=== Parameters ===; Item name*First parameter (required): The correct capitalized exact name of the itemrecipe.*Second parameter (optional): If this parameter is present (can be any non-empty string), the leading scroll icon and "Recipe:" text are omitted.
== Sample output Example =={| class="wikitable"| ==Example 1 Code===| <pre>{{=Recipe|Whisky (Drinkable Cask)}}</pre>| ===Example 1 Output===|-| {{tlc|Recipe|Basic RennetWhisky (Drinkable Cask)}}| &rArr;===Example 2 Code ===| <pre>{{Recipe|Basic RennetWhisky (Drinkable Cask)|x}}</pre>===Example 2 Output ==={{Recipe|Whisky (Drinkable Cask)|x}}
== Note ==
: Uses the new [[Template:Item icon]] template.<includeonly><!-- Categories/interwikis for the An old version of this template itself -->was partially implemented at one time, attempting to redirect users to recipe pages as found in [[Category:Formatting templates|Recipe]]</includeonly><noinclude><!-- Categories/interwikis for this documentation itself -->[[Category:Template documentation|{{PAGENAME}}Recipes]]</noinclude>. However only a small fraction of these individual recipe pages were ever created, and that project was abandoned.
5,698
edits