Template:Recipe: Difference between revisions
Updating Item Icon to use the built in Size 32 selector. Testing. |
No edit summary |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 82: | Line 82: | ||
| Calligraphy: Sandstorm | | Calligraphy: Sandstorm | ||
| Calligraphy: Sandstorm+ = [[Calligraphy|{{{1}}}]] | | Calligraphy: Sandstorm+ = [[Calligraphy|{{{1}}}]] | ||
| Cedar Butterfly Harness = Cedar Butterfly Harness | |||
| #default = {{Item icon|{{RecipeToItem/C|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/C|{{{1}}}}}|#|}}|{{{1}}}]]}} | | #default = {{Item icon|{{RecipeToItem/C|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/C|{{{1}}}}}|#|}}|{{{1}}}]]}} | ||
| d = {{#switch: {{{1}}} | | d = {{#switch: {{{1}}} | ||
| Line 146: | Line 147: | ||
| Elf Phrenology Research 3 = [[Phrenology|{{{1}}}]] | | Elf Phrenology Research 3 = [[Phrenology|{{{1}}}]] | ||
| Elven Infertility Cantrip | | Elven Infertility Cantrip | ||
| Elven Sexual Energy Cantrip | | Elven Sexual Energy Cantrip = [[Lore|{{{1}}}]] | ||
| Errana's Lesson to Kirad = [[Weather Witching|{{{1}}}]] | | Errana's Lesson to Kirad = [[Weather Witching|{{{1}}}]] | ||
| Errana's Soliloquy = [[Weather Witching|{{{1}}}]] | | Errana's Soliloquy = [[Weather Witching|{{{1}}}]] | ||
| Line 274: | Line 275: | ||
| 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 = {{Item icon|{{RecipeToItem/M|{{{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 314: | Line 315: | ||
| Poisoned Cheesy Veggie Delight | | Poisoned Cheesy Veggie Delight | ||
| Poisoned Crab Roll = [[Mycology|{{{1}}}]] | | Poisoned Crab Roll = [[Mycology|{{{1}}}]] | ||
| Potent Cold Resistance | |||
| #default = {{Item icon|{{RecipeToItem/P|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/P|{{{1}}}}}|#|}}|{{{1}}}]]}} | | #default = {{Item icon|{{RecipeToItem/P|{{{1}}}}}|1}} [[{{#replace:{{RecipeToItem/P|{{{1}}}}}|#|}}|{{{1}}}]]}} | ||
| q = {{#switch: {{{1}}} | | q = {{#switch: {{{1}}} | ||
Latest revision as of 17:53, 13 March 2026
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
{{ #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)]]
Example 2 Code
{{Recipe|Whisky (Drinkable Cask)|x}}
Example 2 Output
{{ #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
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.)