Difference between revisions of "Template:RecipeRow/NoBuffs"
Jump to navigation
Jump to search
Rigel Kent (talk | contribs) (substituted {{Energy}}, {{Health}} templates for Energy.png, Health.png) |
Margotbean (talk | contribs) (Undo revision 57861 by Rigel Kent (talk) Unnecessary template calls) |
||
Line 5: | Line 5: | ||
|{{{description|}}} | |{{{description|}}} | ||
|{{{ingredients|}}} | |{{{ingredients|}}} | ||
− | {{#if:{{{edibility|}}} | {{!}}data-sort-value="{{padleft:{{{edibility|}}}|4}}"{{!}} | + | {{#if:{{{edibility|}}} | {{!}}data-sort-value="{{padleft:{{{edibility|}}}|4}}"{{!}}[[File:Energy.png|24px|link=]] {{#expr:ceil({{{edibility|}}}*2.5)}} | {{!}}style="text-align: center;"{{!}}N/A }} |
− | {{#if:{{{edibility|}}} | {{!}}data-sort-value="{{padleft:{{{edibility|}}}|4}}"{{!}} | + | {{#if:{{{edibility|}}} | {{!}}data-sort-value="{{padleft:{{{edibility|}}}|4}}"{{!}}[[File:Health.png|24px|link=]] {{#expr:trunc(ceil({{{edibility|}}}*2.5)*0.45)}} | {{!}}style="text-align: center;"{{!}}N/A }} |
|{{{recipe|}}} | |{{{recipe|}}} | ||
|data-sort-value="{{padleft:{{{sellprice|}}}|4}}"{{!}}{{Price|{{{sellprice|}}}}} | |data-sort-value="{{padleft:{{{sellprice|}}}|4}}"{{!}}{{Price|{{{sellprice|}}}}} | ||
|-</includeonly> | |-</includeonly> | ||
<noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | <noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> |
Revision as of 16:56, 16 July 2017
This template is a derivation of Template:RecipeRow, which creates a row in a recipe table. This template omits the "Buff(s)" and "Duration" columns in the table.
It requires transclusion tags in the infobox on the page to be included. For an example, please see Template:Infobox cooking. For information on transclusion tags, please see https://www.mediawiki.org/wiki/Transclusion
Credit to Lilly for creating the sandbox template.
This template is intended to be used in conjunction with Template:Recipes, which provides the table header and footer, as shown:
{{Recipes|header|hide=buff,duration}} {{:Autumn's Bounty|RecipeRow/NoBuffs}} {{:Fried Egg|RecipeRow/NoBuffs}} {{Recipes|footer}}
Example
Image | Name | Description | Ingredients | Energy / Health | Recipe Source(s) | Sell Price | |
---|---|---|---|---|---|---|---|
Autumn's Bounty | A taste of the season. | Yam (1) Pumpkin (1) | 220 | 99 | Demetrius (Mail - 7+ ) |
350g | |
Fried Egg | Sunny-side up. | Egg (1) | 50 | 22 | Starter | 35g |