Difference between revisions of "Template:Recipe"
From Project: Gorgon Wiki
(Split switches to improve performance) |
(Updating Item Icon to use the built in Size 32 selector. Testing.) |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<!-- v341 --> | <!-- v341 --> | ||
− | <!-- Note there are currently no recipe names, including itemrecipe names that start with any of the letters | + | <!-- Note there are currently no recipe names, including itemrecipe names that start with any of the letters X or Z. |
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 115: | Line 115: | ||
| Dye Metal Armor (1 color) | | Dye Metal Armor (1 color) | ||
| Dye Metal Armor (2 colors) | | Dye Metal Armor (2 colors) | ||
− | | Dye Metal Armor (3 colors) = [[Blacksmithing|{{{1}}}]] | + | | Dye Metal Armor (3 colors) = [[Blacksmithing|{{{1}}}]] |
+ | | Dye Making: Dye My Rabbity Fur Blue = [[Dye Making|{{{1}}}]] | ||
| Deep Bear Chest Infusion | | Deep Bear Chest Infusion | ||
| Deep Boar Foot Infusion | | Deep Boar Foot Infusion | ||
Line 127: | 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 146: | Line 147: | ||
| Elven Infertility Cantrip | | Elven Infertility Cantrip | ||
| Elven Sexual Energy Cantrip | | Elven Sexual Energy Cantrip | ||
+ | | Errana's Lesson to Kirad = [[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 168: | 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 176: | 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 184: | 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 208: | 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}}} | ||
+ | | #default = {{Item icon|{{RecipeToItem/K|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/K|{{{1}}}}}|#|}}|{{{1}}}]]}} | ||
| l = {{#switch: {{{1}}} | | l = {{#switch: {{{1}}} | ||
− | | #default = | + | | Lessons of the Swamp = [[Weather Witching|{{{1}}}]] |
+ | | #default = {{Item icon|{{RecipeToItem/L|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/L|{{{1}}}}}|#|}}|{{{1}}}]]}} | ||
| m = {{#switch: {{{1}}} | | m = {{#switch: {{{1}}} | ||
| Meditation #52 | | Meditation #52 | ||
Line 228: | Line 234: | ||
| Meditation #64 | | Meditation #64 | ||
| Meditation #65 = [[Meditation|{{{1}}}]] | | Meditation #65 = [[Meditation|{{{1}}}]] | ||
+ | | Meditation on Water = [[Weather Witching|{{{1}}}]] | ||
| Moon Phase Check = [[Lore|{{{1}}}]] | | Moon Phase Check = [[Lore|{{{1}}}]] | ||
| Mushroom-Circle Hop | | Mushroom-Circle Hop | ||
Line 267: | 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 285: | 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 294: | 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}}}]] | ||
| Perceive Spawn Premonitions (3 secs) | | Perceive Spawn Premonitions (3 secs) | ||
| Perceive Spawn Premonitions (5 secs) | | Perceive Spawn Premonitions (5 secs) | ||
Line 306: | 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 327: | 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 374: | Line 382: | ||
| Secret Calligraphy: Enoyos | | Secret Calligraphy: Enoyos | ||
| Secret Calligraphy: Summer Winds = [[Calligraphy|{{{1}}}]] | | Secret Calligraphy: Summer Winds = [[Calligraphy|{{{1}}}]] | ||
+ | | Song of the Sun = [[Weather Witching|{{{1}}}]] | ||
| Summon Alternate Portal = [[Teleportation|{{{1}}}]] | | Summon Alternate Portal = [[Teleportation|{{{1}}}]] | ||
| 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}}}]] | ||
− | | #default = | + | | The Flopsy Dance = [[Weather Witching|{{{1}}}]] |
+ | | #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 391: | 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}}} | ||
+ | | #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 5 | ||
+ | | Weather Witching Research Level 10 | ||
+ | | Weather Witching Research Level 15 | ||
+ | | Weather Witching Research Level 20 | ||
+ | | Weather Witching Research Level 25 | ||
+ | | Weather Witching Research Level 30 | ||
+ | | Weather Witching Research Level 35 | ||
+ | | Weather Witching Research Level 40 | ||
+ | | Weather Witching Research Level 45 | ||
+ | | Weather Witching Research Level 50 | ||
+ | | Weather Witching Research Level 55 | ||
+ | | Weather Witching Research Level 60 | ||
+ | | Weather Witching Research Level 65 | ||
+ | | Weather Witching Research Level 70 | ||
+ | | Weather Witching Research Level 75 | ||
+ | | Weather Witching Research Level 80 = [[Weather Witching|{{{1}}}]] | ||
| 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}}} | ||
+ | | #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.)