Difference between revisions of "Template:MHrecipe"
From MHWiki
(new template) |
m (typo fix) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
Example: | Example: | ||
<nowiki>{{MHrecipe|white_cheddar}}</nowiki> | <nowiki>{{MHrecipe|white_cheddar}}</nowiki> | ||
− | produces this [{{MHdomain}}/inventory.php?tab | + | produces this [{{MHdomain}}/inventory.php?tab=2&recipe=white_cheddar Link] to the [[White Cheddar]] recipe box. |
− | Knowing a recipe link requires crafting it first; if you have crafted a recipe not already linked, you can view the html source of [{{MHdomain}}/inventory.php?tab | + | Knowing a recipe link requires crafting it first; if you have crafted a recipe not already linked, you can view the html source of [{{MHdomain}}/inventory.php?tab=2 this page] and search for the name/type pair at the end of each addRecipe() directive. |
− | </noinclude><includeonly>[{{MHdomain}}/inventory.php?tab | + | |
+ | EDIT: As of the crafting tab UI changes on 23 April 2014, I am unable to figure out how to pop up a specific recipe. The [[Book of Living Recipes]] in-game links are also broken - if those get fixed, we can make the same change to this template. | ||
+ | </noinclude><includeonly><!--[{{MHdomain}}/inventory.php?tab=2&recipe={{{1}}} {{{2|Link}}}]-->{{{2}}}</includeonly> |
Latest revision as of 12:13, 26 May 2014
This template is used to link to the in-game Recipe Book entry for a recipe. The first argument is the portion of the link after the recipe=. The second argument is the text to display as the link, defaulting to "Link".
Example:
{{MHrecipe|white_cheddar}}
produces this Link to the White Cheddar recipe box.
Knowing a recipe link requires crafting it first; if you have crafted a recipe not already linked, you can view the html source of this page and search for the name/type pair at the end of each addRecipe() directive.
EDIT: As of the crafting tab UI changes on 23 April 2014, I am unable to figure out how to pop up a specific recipe. The Book of Living Recipes in-game links are also broken - if those get fixed, we can make the same change to this template.