Difference between revisions of "Template:Recipe"

From Project: Gorgon Wiki
Jump to: navigation, search
(Split switches to improve performance)
(fixed (hopefully) forgotten RecipeToItem -> RecipeToItem<letter> changes from yesterday's attempt at performance improvement via branching the switch)
Line 47: Line 47:
 
   | Acidic Wax: Advanced Flesh-Melter
 
   | Acidic Wax: Advanced Flesh-Melter
 
   | Acidic Wax: Fancy Flesh-Melter = [[Armor Patching|{{{1}}}]]
 
   | Acidic Wax: Fancy Flesh-Melter = [[Armor Patching|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/A|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/A|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/A|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | b = {{#switch: {{{1}}}
 
  | b = {{#switch: {{{1}}}
 
   | Beginner's Tailoring Practice (Yarn)
 
   | Beginner's Tailoring Practice (Yarn)
Line 65: Line 65:
 
   | Beginner's Wing-Leg Infusion = [[Shamanic Infusion|{{{1}}}]]
 
   | Beginner's Wing-Leg Infusion = [[Shamanic Infusion|{{{1}}}]]
 
   | Bind Alternate Circle = [[Teleportation|{{{1}}}]]
 
   | Bind Alternate Circle = [[Teleportation|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/B|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/B|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/B|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | c = {{#switch: {{{1}}}   
 
  | c = {{#switch: {{{1}}}   
 
   | Check Active Warden Alerts = [[Lore|{{{1}}}]]  
 
   | Check Active Warden Alerts = [[Lore|{{{1}}}]]  
Line 82: Line 82:
 
   | Calligraphy: Sandstorm
 
   | Calligraphy: Sandstorm
 
   | Calligraphy: Sandstorm+ = [[Calligraphy|{{{1}}}]]
 
   | Calligraphy: Sandstorm+ = [[Calligraphy|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/C|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/C|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/C|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | d = {{#switch: {{{1}}}   
 
  | d = {{#switch: {{{1}}}   
 
   | Decompose Main-Hand Weapon
 
   | Decompose Main-Hand Weapon
Line 127: Line 127:
 
   | Deep Wolf Chest Infusion
 
   | Deep Wolf Chest Infusion
 
   | Deep Wolf Headgear Infusion = [[Shamanic Infusion|{{{1}}}]]  
 
   | Deep Wolf Headgear Infusion = [[Shamanic Infusion|{{{1}}}]]  
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/D|{{{1}}}}}|#|}}|{{{1}}}]]}}  
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/D|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/D|{{{1}}}}}|#|}}|{{{1}}}]]}}  
 
  | e = {{#switch: {{{1}}}     
 
  | e = {{#switch: {{{1}}}     
 
   | Enhance Darkness Damage of Cloth Pants
 
   | Enhance Darkness Damage of Cloth Pants
Line 147: Line 147:
 
   | Elven Sexual Energy Cantrip
 
   | Elven Sexual Energy Cantrip
 
   | Expert Augury = [[Lore|{{{1}}}]]
 
   | Expert Augury = [[Lore|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/E|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/E|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/E|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | f = {{#switch: {{{1}}}   
 
  | f = {{#switch: {{{1}}}   
 
   | Fae Phrenology Research
 
   | Fae Phrenology Research
Line 168: Line 168:
 
   | Fire Magic Research Level 75
 
   | Fire Magic Research Level 75
 
   | Fire Magic Research Level 80 = [[Fire Magic|{{{1}}}]]
 
   | Fire Magic Research Level 80 = [[Fire Magic|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/F|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/F|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/F|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | g = {{#switch: {{{1}}}
 
  | g = {{#switch: {{{1}}}
 
   | Goblin Phrenology Research
 
   | Goblin Phrenology Research
Line 176: Line 176:
 
   | Giant Phrenology Research 2
 
   | Giant Phrenology Research 2
 
   | Giant Phrenology Research 3 = [[Phrenology|{{{1}}}]]
 
   | Giant Phrenology Research 3 = [[Phrenology|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/G|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/G|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/G|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | h = {{#switch: {{{1}}}   
 
  | h = {{#switch: {{{1}}}   
 
   | Human Phrenology Research
 
   | Human Phrenology Research
Line 184: Line 184:
 
   | Human Hair-Cleaning Cantrip
 
   | Human Hair-Cleaning Cantrip
 
   | Human Anti-Drowsy Cantrip = [[Lore|{{{1}}}]]
 
   | Human Anti-Drowsy Cantrip = [[Lore|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/H|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/H|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/H|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | i = {{#switch: {{{1}}}   
 
  | i = {{#switch: {{{1}}}   
 
   | Idiot-Proof Safety Wax #1
 
   | Idiot-Proof Safety Wax #1
Line 208: Line 208:
 
   | Ice Magic Research Level 80 = [[Ice Magic|{{{1}}}]]
 
   | Ice Magic Research Level 80 = [[Ice Magic|{{{1}}}]]
 
   | Iocaine Milk Smoothie = [[Mycology|{{{1}}}]]
 
   | Iocaine Milk Smoothie = [[Mycology|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/I|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/I|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/I|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | j = {{#switch: {{{1}}}  
 
  | j = {{#switch: {{{1}}}  
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/J|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/J|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/J|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | l = {{#switch: {{{1}}}
 
  | l = {{#switch: {{{1}}}
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/L|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/L|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/L|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | m = {{#switch: {{{1}}}  
 
  | m = {{#switch: {{{1}}}  
 
   | Meditation #52
 
   | Meditation #52
Line 267: Line 267:
 
   | Mushroom-Circle Recall (Wizard's Mushroom)
 
   | Mushroom-Circle Recall (Wizard's Mushroom)
 
   | Mushroom-Circle Un-Recall (Wizard's Mushroom) = [[Teleportation|{{{1}}}]]  
 
   | Mushroom-Circle Un-Recall (Wizard's Mushroom) = [[Teleportation|{{{1}}}]]  
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/M|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/M|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/M|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | n = {{#switch: {{{1}}}   
 
  | n = {{#switch: {{{1}}}   
 
   | Neophyte's Tailoring Practice
 
   | Neophyte's Tailoring Practice
Line 285: Line 285:
 
   | Novice's Viper Headgear Infusion
 
   | Novice's Viper Headgear Infusion
 
   | Novice's Wing-Leg Infusion = [[Shamanic Infusion|{{{1}}}]]
 
   | Novice's Wing-Leg Infusion = [[Shamanic Infusion|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/N|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/N|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/N|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | o = {{#switch: {{{1}}}   
 
  | o = {{#switch: {{{1}}}   
 
   | Orc Phrenology Research
 
   | Orc Phrenology Research
Line 294: Line 294:
 
   | Orcish Meditation #35
 
   | Orcish Meditation #35
 
   | Orcish Meditation #45 = [[Meditation|{{{1}}}]]
 
   | Orcish Meditation #45 = [[Meditation|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/O|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/O|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/O|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | p = {{#switch: {{{1}}}   
 
  | p = {{#switch: {{{1}}}   
 
   | Perceive Spawn Premonitions (3 secs)
 
   | Perceive Spawn Premonitions (3 secs)
Line 306: Line 306:
 
   | Poisoned Cheesy Veggie Delight
 
   | Poisoned Cheesy Veggie Delight
 
   | Poisoned Crab Roll = [[Mycology|{{{1}}}]]
 
   | Poisoned Crab Roll = [[Mycology|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/P|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/P|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/P|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | q = {{#switch: {{{1}}}  
 
  | q = {{#switch: {{{1}}}  
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/Q|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/Q|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/Q|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | r = {{#switch: {{{1}}}  
 
  | r = {{#switch: {{{1}}}  
 
   | Repair Transmutation Damage 1
 
   | Repair Transmutation Damage 1
Line 327: Line 327:
 
   | Return to Guild Hall
 
   | Return to Guild Hall
 
   | Recall Alternate Circle (Improvised) = [[Teleportation|{{{1}}}]]
 
   | Recall Alternate Circle (Improvised) = [[Teleportation|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/R|{{{1}}}}}|#|}}|{{{1}}}]]}}  
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/R|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/R|{{{1}}}}}|#|}}|{{{1}}}]]}}  
 
  | s = {{#switch: {{{1}}}  
 
  | s = {{#switch: {{{1}}}  
 
   | Shoddy Leather Practice = [[Leatherworking|{{{1}}}]]
 
   | Shoddy Leather Practice = [[Leatherworking|{{{1}}}]]
Line 377: Line 377:
 
   | Summon Druidic Storage (12-slot) =
 
   | Summon Druidic Storage (12-slot) =
 
   | Summon Druidic Storage (20-slot) = [[Storage|{{{1}}}]]
 
   | Summon Druidic Storage (20-slot) = [[Storage|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/S|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/S|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/S|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | t = {{#switch: {{{1}}}  
 
  | t = {{#switch: {{{1}}}  
 
   | Tap Alcohol Keg = [[Brewing|{{{1}}}]]
 
   | Tap Alcohol Keg = [[Brewing|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/T|{{{1}}}}}|#|}}|{{{1}}}]]}}  
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/T|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/T|{{{1}}}}}|#|}}|{{{1}}}]]}}  
 
  | u = {{#switch: {{{1}}}   
 
  | u = {{#switch: {{{1}}}   
 
   | Undo Augment on Main-Hand Weapon
 
   | Undo Augment on Main-Hand Weapon
Line 391: Line 391:
 
   | Undo Augment on Ring
 
   | Undo Augment on Ring
 
   | Undo Augment on Necklace = [[Augmentation|{{{1}}}]]
 
   | Undo Augment on Necklace = [[Augmentation|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/U|{{{1}}}}}|#|}}|{{{1}}}]]}}  
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/U|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/U|{{{1}}}}}|#|}}|{{{1}}}]]}}  
 
  | w = {{#switch: {{{1}}}   
 
  | w = {{#switch: {{{1}}}   
 
   | Word of Power
 
   | Word of Power
 
   | Word of Power 2 = [[Lore|{{{1}}}]]
 
   | Word of Power 2 = [[Lore|{{{1}}}]]
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/W|{{{1}}}}}|#|}}|{{{1}}}]]}}
+
   | #default = <span class="extimage32px">{{Item icon|{{RecipeToItem/W|{{{1}}}}}}}</span> [[{{#replace:{{RecipeToItem/W|{{{1}}}}}|#|}}|{{{1}}}]]}}
 
  | #default = {{{1}}}}}</includeonly><noinclude>
 
  | #default = {{{1}}}}}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
[[Category:Formatting templates]]
 
[[Category:Formatting templates]]
 
</noinclude>
 
</noinclude>

Revision as of 23:36, 2 April 2021


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

Error: Item not foundRecipe: icon_5722.png Whisky (Drinkable Cask)

Example 2 Code

{{Recipe|Whisky (Drinkable Cask)|x}}

Example 2 Output

icon_5722.png 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.
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.)