Difference between revisions of "Template:Recipes"
Jump to navigation
Jump to search
Margotbean (talk | contribs) (make buff duration sortable) |
Margotbean (talk | contribs) (allow suppression of headings by parameter) |
||
Line 1: | Line 1: | ||
− | < | + | <onlyinclude><!-- |
+ | -->{{#arraydefine:values|image,name,description,ingredients,energy,health,buff,duration,recipe,sellprice|,}}<!-- | ||
+ | -->{{#arraydefine:valuesToHide|{{{hide|}}}|,}}<!-- | ||
+ | -->{{#arraydiff:valuesToShow|values|valuesToHide}} | ||
+ | {{#switch: {{lc:{{{1}}}}} | ||
+ | |foot|footer= | ||
+ | {{!}}- | ||
+ | {{!}}} | ||
|head | |head | ||
− | + | |header= | |
− | |header | + | {{{!}} class="wikitable sortable" id="roundedborder" |
− | + | {{#arrayprint:valuesToShow|!|@@@@| | |
− | !class="unsortable" {{!}} Image | + | {{#switch:@@@@ |
− | + | |image=!class="unsortable"{{!}}Image | |
− | + | |buff=!Buff(s) | |
− | + | |duration=!Buff(s) Duration | |
− | + | |recipe=!Recipe Source(s) | |
− | + | |sellprice=!Sell Price | |
− | !Buff(s) | + | |#default=!{{ucfirst:@@@@}} |
− | !Buff(s) Duration | + | }} |
− | !Recipe Source(s) | + | }} |
− | !Sell Price | + | }}</onlyinclude><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> |
− | | | ||
− | |||
− | |||
− | }}</ |
Revision as of 22:26, 20 April 2017
Description
This template provides the common Table-Header (and a closing footer) for Recipes. It is intended to be used in conjunction with Template:RecipeRow, which requires transclusion tags on each page to be transcluded.
For more information on transclusion tags, please see https://www.mediawiki.org/wiki/Transclusion
Header:
{| class="wikitable sortable" !Image !Name !Description !Ingredients !Restores !Buff(s) !Buff(s) Duration !Recipe Source(s) !Sell Price
Use
This template can be used by entering the following onto a relevant page.
{{Recipes|header or footer}}
Example
{{Recipes|header}} {{:Fried Mushroom|RecipeRow}} {{Recipes|footer}}
Image | Name | Description | Ingredients | Energy | Health | Buff(s) | Buff(s) Duration | Recipe Source(s) | Sell Price |
---|---|---|---|---|---|---|---|---|---|
Fried Mushroom | Earthy and aromatic. | Common Mushroom (1) Morel (1) Oil (1) | 135 60 |
Attack (+2) | 7m | Demetrius (Mail - 3+ ) |
200g |