Difference between revisions of "Template:Recipe"
From Project: Gorgon Wiki
m (Named Weather Witching recipes) |
(Updating Item Icon to use the built in Size 32 selector. Testing.) |
||
Line 4: | Line 4: | ||
If a recipe starting with one of those letters is added that isn't an itemrecipe, the syntactical pattern for that part of the switch will be a little different, | If a recipe starting with one of those letters is added that isn't an itemrecipe, the syntactical pattern for that part of the switch will be a little different, | ||
as you will want to bypass the Template:RecipeToItem/<letter> subtemplate --> | as you will want to bypass the Template:RecipeToItem/<letter> subtemplate --> | ||
− | </noinclude><includeonly>{{#if: {{{2|}}}|| | + | </noinclude><includeonly>{{#if: {{{2|}}}||{{Item icon|scroll|1}}Recipe: }}{{#switch: {{padleft:|1|{{lc:{{{1}}}}}}} |
| a = {{#switch: {{{1}}} | | a = {{#switch: {{{1}}} | ||
| Apply Sword Augment | | Apply Sword Augment | ||
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 = | + | | #default = {{Item icon|{{RecipeToItem/A|{{{1}}}}}|1}} [[{{#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 = | + | | #default = {{Item icon|{{RecipeToItem/B|{{{1}}}}}|1}} [[{{#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 = | + | | #default = {{Item icon|{{RecipeToItem/C|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/C|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| d = {{#switch: {{{1}}} | | d = {{#switch: {{{1}}} | ||
| Decompose Main-Hand Weapon | | Decompose Main-Hand Weapon | ||
Line 128: | Line 128: | ||
| Deep Wolf Chest Infusion | | Deep Wolf Chest Infusion | ||
| Deep Wolf Headgear Infusion = [[Shamanic Infusion|{{{1}}}]] | | Deep Wolf Headgear Infusion = [[Shamanic Infusion|{{{1}}}]] | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/D|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/D|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| e = {{#switch: {{{1}}} | | e = {{#switch: {{{1}}} | ||
| Enhance Darkness Damage of Cloth Pants | | Enhance Darkness Damage of Cloth Pants | ||
Line 150: | Line 150: | ||
| Errana's Soliloquy = [[Weather Witching|{{{1}}}]] | | Errana's Soliloquy = [[Weather Witching|{{{1}}}]] | ||
| Expert Augury = [[Lore|{{{1}}}]] | | Expert Augury = [[Lore|{{{1}}}]] | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/E|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/E|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| f = {{#switch: {{{1}}} | | f = {{#switch: {{{1}}} | ||
| Fae Phrenology Research | | Fae Phrenology Research | ||
Line 171: | Line 171: | ||
| 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 = | + | | #default = {{Item icon|{{RecipeToItem/F|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/F|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| g = {{#switch: {{{1}}} | | g = {{#switch: {{{1}}} | ||
| Goblin Phrenology Research | | Goblin Phrenology Research | ||
Line 179: | Line 179: | ||
| Giant Phrenology Research 2 | | Giant Phrenology Research 2 | ||
| Giant Phrenology Research 3 = [[Phrenology|{{{1}}}]] | | Giant Phrenology Research 3 = [[Phrenology|{{{1}}}]] | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/G|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/G|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| h = {{#switch: {{{1}}} | | h = {{#switch: {{{1}}} | ||
| Human Phrenology Research | | Human Phrenology Research | ||
Line 187: | Line 187: | ||
| Human Hair-Cleaning Cantrip | | Human Hair-Cleaning Cantrip | ||
| Human Anti-Drowsy Cantrip = [[Lore|{{{1}}}]] | | Human Anti-Drowsy Cantrip = [[Lore|{{{1}}}]] | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/H|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/H|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| i = {{#switch: {{{1}}} | | i = {{#switch: {{{1}}} | ||
| Idiot-Proof Safety Wax #1 | | Idiot-Proof Safety Wax #1 | ||
Line 211: | Line 211: | ||
| 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 = | + | | #default = {{Item icon|{{RecipeToItem/I|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/I|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| j = {{#switch: {{{1}}} | | j = {{#switch: {{{1}}} | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/J|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/J|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| k = {{#switch: {{{1}}} | | k = {{#switch: {{{1}}} | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/K|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/K|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| l = {{#switch: {{{1}}} | | l = {{#switch: {{{1}}} | ||
| Lessons of the Swamp = [[Weather Witching|{{{1}}}]] | | Lessons of the Swamp = [[Weather Witching|{{{1}}}]] | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/L|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/L|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| m = {{#switch: {{{1}}} | | m = {{#switch: {{{1}}} | ||
| Meditation #52 | | Meditation #52 | ||
Line 274: | Line 274: | ||
| 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 = | + | | #default = {{Item icon|{{RecipeToItem/M|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/M|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| n = {{#switch: {{{1}}} | | n = {{#switch: {{{1}}} | ||
| Neophyte's Tailoring Practice | | Neophyte's Tailoring Practice | ||
Line 292: | Line 292: | ||
| 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 = | + | | #default = {{Item icon|{{RecipeToItem/N|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/N|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| o = {{#switch: {{{1}}} | | o = {{#switch: {{{1}}} | ||
| Orc Phrenology Research | | Orc Phrenology Research | ||
Line 301: | Line 301: | ||
| Orcish Meditation #35 | | Orcish Meditation #35 | ||
| Orcish Meditation #45 = [[Meditation|{{{1}}}]] | | Orcish Meditation #45 = [[Meditation|{{{1}}}]] | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/O|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/O|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| p = {{#switch: {{{1}}} | | p = {{#switch: {{{1}}} | ||
| Paullus's Pulsing Reminder = [[Weather Witching|{{{1}}}]] | | Paullus's Pulsing Reminder = [[Weather Witching|{{{1}}}]] | ||
Line 314: | Line 314: | ||
| Poisoned Cheesy Veggie Delight | | Poisoned Cheesy Veggie Delight | ||
| Poisoned Crab Roll = [[Mycology|{{{1}}}]] | | Poisoned Crab Roll = [[Mycology|{{{1}}}]] | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/P|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/P|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| q = {{#switch: {{{1}}} | | q = {{#switch: {{{1}}} | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/Q|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/Q|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| r = {{#switch: {{{1}}} | | r = {{#switch: {{{1}}} | ||
| Repair Transmutation Damage 1 | | Repair Transmutation Damage 1 | ||
Line 335: | Line 335: | ||
| Return to Guild Hall | | Return to Guild Hall | ||
| Recall Alternate Circle (Improvised) = [[Teleportation|{{{1}}}]] | | Recall Alternate Circle (Improvised) = [[Teleportation|{{{1}}}]] | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/R|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/R|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| s = {{#switch: {{{1}}} | | s = {{#switch: {{{1}}} | ||
| Shoddy Leather Practice = [[Leatherworking|{{{1}}}]] | | Shoddy Leather Practice = [[Leatherworking|{{{1}}}]] | ||
Line 386: | Line 386: | ||
| 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 = | + | | #default = {{Item icon|{{RecipeToItem/S|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/S|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| t = {{#switch: {{{1}}} | | t = {{#switch: {{{1}}} | ||
| Tap Alcohol Keg = [[Brewing|{{{1}}}]] | | Tap Alcohol Keg = [[Brewing|{{{1}}}]] | ||
| The Flopsy Dance = [[Weather Witching|{{{1}}}]] | | The Flopsy Dance = [[Weather Witching|{{{1}}}]] | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/T|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/T|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| u = {{#switch: {{{1}}} | | u = {{#switch: {{{1}}} | ||
| Undo Augment on Main-Hand Weapon | | Undo Augment on Main-Hand Weapon | ||
Line 401: | Line 401: | ||
| Undo Augment on Ring | | Undo Augment on Ring | ||
| Undo Augment on Necklace = [[Augmentation|{{{1}}}]] | | Undo Augment on Necklace = [[Augmentation|{{{1}}}]] | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/U|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/U|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| v = {{#switch: {{{1}}} | | v = {{#switch: {{{1}}} | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/V|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/V|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| w = {{#switch: {{{1}}} | | w = {{#switch: {{{1}}} | ||
| Weather Witching Research Level 1 | | Weather Witching Research Level 1 | ||
Line 424: | Line 424: | ||
| Word of Power | | Word of Power | ||
| Word of Power 2 = [[Lore|{{{1}}}]] | | Word of Power 2 = [[Lore|{{{1}}}]] | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/W|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/W|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| y = {{#switch: {{{1}}} | | y = {{#switch: {{{1}}} | ||
− | | #default = | + | | #default = {{Item icon|{{RecipeToItem/Y|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/Y|{{{1}}}}}|#|}}|{{{1}}}]]}} |
| #default = {{{1}}}}}</includeonly><noinclude> | | #default = {{{1}}}}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 10:19, 18 January 2024
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: Whisky (Drinkable Cask)
Example 2 Code
{{Recipe|Whisky (Drinkable Cask)|x}}
Example 2 Output
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.)
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.)