Template:Food: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Sanddh
mNo edit summary
imported>Arkalor
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 9: Line 9:
|-
|-
|colspan=2|  
|colspan=2|  
{{#ifeq:{{{Description|}}}|||{{#ifeq:{{{Description| }}}| ||{{{Description}}}<br><br>}}}}{{#ifeq:{{{Special Properties|}}}|||{{#ifeq:{{{Special Properties| }}}| ||[[Special Properties]]: {{{Special Properties}}}<br><br>}}}}{{#ifeq:{{{Description Two|}}}|||{{#ifeq:{{{Description Two| }}}| ||{{{Description Two}}}<br><br>}}}}{{#ifeq:{{{Restores|}}}|||{{#ifeq:{{{Restores| }}}| ||{{{Restores}}}<br><br>}}}}{{#ifeq:{{{Spells|}}}|||{{#ifeq:{{{Spells| }}}| ||Casts the following spells:{{{Spells}}}<br><br>}}{{#ifeq:{{{Spellcraft|}}}|||Spellcraft: {{{Spellcraft|}}}<br>}}{{#ifeq:{{{Mana|}}}|||Mana: {{{Mana|}}}<br><br>}}}}{{#ifeq:{{{Cannot Be Sold|False}}}|True|This item cannot be sold.<br><br>|}}
{{#ifeq:{{{Description|}}}|||{{#ifeq:{{{Description| }}}| ||{{{Description}}}<br><br>}}}}{{#ifeq:{{{Special Properties|}}}|||{{#ifeq:{{{Special Properties| }}}| ||[[Special Properties]]: {{{Special Properties}}}<br><br>}}}}{{#ifeq:{{{Description Two|}}}|||{{#ifeq:{{{Description Two| }}}| ||{{{Description Two}}}<br><br>}}}}{{#ifeq:{{{Restores|}}}|||{{#ifeq:{{{Restores| }}}| ||{{{Restores}}}<br><br>}}}}{{#ifeq:{{{Spells|}}}|||{{#ifeq:{{{Spells| }}}| ||Casts the following spells:{{{Spells}}}<br><br>}}{{#ifeq:{{{Spellcraft|}}}|||Spellcraft: {{{Spellcraft|}}}<br>}}{{#ifeq:{{{Mana|}}}|||Mana: {{{Mana|}}}<br><br>}}}}{{#ifeq:{{{Cannot Be Sold|False}}}|True|This item cannot be sold.<br><br>|}}{{#ifeq:{{{Inscription|}}}|||<br><hr style="background#F0F0F0;"/>{{{Inscription|}}}<br>}}
|}
|}
|width=20|
|width=20|
Line 23: Line 23:
}}
}}
|}[[Category:Food]]</includeonly><noinclude>
|}[[Category:Food]]</includeonly><noinclude>
{{Related|Wiki Templates|Trophy Template|Crafting Template|Template:Recipe}}
{{Related|Wiki Templates|Food Template|Trophy Template}}
 
== General ==
* This template can be used for Food, Drinks and other consumables.
* Remove the line "Restore" and/or "Description Two" if the food casts spells or otherwise not appropriate
* Remove the lines from the Notes which are not appropriate (i.e. if not a creature drop, not sold by vendors, or does not require a recipe)
* The Template to add the Recipe is in Progress (numbers of steps does not display correctly).
 
== Syntax ==
== Syntax ==
<pre>
<pre>
{{Intro
| Patch Introduced =
|  Related Quests =
|          Updated =
}}
{{Food
{{Food
  |              Name =  
  |              Name =  
Line 54: Line 41:
  |              Mana =  
  |              Mana =  
  |    Cannot Be Sold = True
  |    Cannot Be Sold = True
}}
==Notes==
* {{Trophy Drops|{{PAGENAME}}}}
* {{Sold By|{{PAGENAME}}}}
* [[:Special:Whatlinkshere/{{PAGENAME}} | Recipes]] which call for {{PAGENAME}}.
* Does not stack. / Stack Size: ??
==Recipe==
{{Recipe
|                Tools = [[Tool]], [[Tool]]
|          Ingredients = (Number) [[Ingredient]], (Number) [[Ingredient]]
|              Result = (Number) {{PAGENAME}}
}}
* '''Steps:'''
{{Recipe Table
|        Ingredient 1 =
|        Ingredient 2 =
|              Result =
}}
{{Recipe Table
|        Ingredient 1 =
|        Ingredient 2 =
|              Result = {{PAGENAME}}
}}
:<font color=green>(Optional:Crafting Message)<br></font>
If appropriate:
[[Category:Trophy]
[[Category:Consumable Item]]
</pre>
== Example ==
* See: [[Pepper Jack Cheese]] for looted Food with spells:
<pre>
{{Intro
| Patch Introduced = [[Dark Majesty]]
|  Related Quests = [[Hea Totem Quest]]
|          Updated =
}}
{{Food
|              Name = Pepper Jack Cheese
|        Icon Image = Pepper Jack Cheese Icon.png
|        Live Image = Pepper Jack Cheese Live.jpg
| Live Image Caption = Pepper Jack Cheese
|              Value = 800
|            Burden = 50
|        Description = A wheel of spicy cheese, guaranteed to make your lips numb. This wondrous dairy product was a favorite of the Empyrean Talespinner Mistral Tersicor, who was fond of saying, "Cheese makes a gathering."
|    Description Two =
| Special Properties =
|          Restores =
|            Spells = [[Cold Protection Self VI]]
|        Spellcraft = 50
|              Mana = 50
|    Cannot Be Sold = False
}}
}}
</pre>
</pre>


* See [[Elaborate Field Health Rations]] for Cooked Food:
== Usage ==
<pre>
This is a component template that is part of a [[Page Template]]. See [[Food Template]] for details on usage and examples.
{{Intro
| Patch Introduced = [[On Bended Knee]]
|  Related Quests =  
|          Updated =  
}}
{{Food
|              Name = Elaborate Field Health Rations
|        Icon Image = Elaborate Field Health Rations Icon.png
|        Live Image =  Live.jpg
| Live Image Caption =
|              Value = 0
|            Burden = 90
|        Description = An elaborate mix of reconstituted meats, nuts, and fruit. It is very filling, and a bit spicy
|    Description Two = Use this item to eat it.
| Special Properties =
|          Restores = Restores 70 Health when used.
|            Spells =
|    Cannot Be Sold = True
}}
 
==Notes==
*  {{Sold By|{{PAGENAME}}}}
* Stack Size: 100
 
==Recipe==
{{Recipe
|                Tools = [[Cooking Pot]]
|          Ingredients = 1 [[Elaborate Dried Rations]], 1 [[Hot Sauce]]
|              Result = 25 {{PAGENAME}}
}}
:* '''Steps''':
{{Recipe Table
|        Ingredient 1 = Hot Sauce
|        Ingredient 2 = Elaborate Dried Rations
|              Result = Elaborate Dried Health Rations
}}
{{Recipe Table
|        Ingredient 1 = Cooking Pot
|        Ingredient 2 = Elaborate Dried Health Rations
|              Result = {{PAGENAME}}
}}
 
[[Category:Consumable Item]]
 
</pre>
 
See: [[Ale]] for Food sold by Vendors:
 
<pre>
{{Intro
| Patch Introduced = [[Release]]
|  Related Quests =
|          Updated =
}}
{{Food
|              Name = Ale
|        Icon Image = Ale Icon.png
|        Live Image =  Live.jpg
| Live Image Caption =
|              Value = 10
|            Burden = 50
|        Description =
|    Description Two = Use this item to drink it.
| Special Properties =
|          Restores = Restores 6 Stamina when consumed.
|            Spells =
|        Spellcraft =
|              Mana =
|    Cannot Be Sold = False
}}
==Notes==
*  {{Sold By|{{PAGENAME}}}}
* Stack Size: 100
 
 
 
[[Category:Consumable Item]]
</pre>


[[Category:Wiki Template]]
</noinclude>
</noinclude>

Latest revision as of 17:45, 10 July 2012

Related topics: Wiki Templates, Food Template, Trophy Template

Syntax

{{Food
 |               Name = 
 |         Icon Image =  Icon.png
 |         Live Image =  Live.jpg
 | Live Image Caption = 
 |              Value = 
 |             Burden = 
 |        Description = 
 |    Description Two = Use this item to eat/drink it.
 | Special Properties = 
 |           Restores = Restores ?? Health/Stamina/Mana when consumed/eaten/used.
 |             Spells = 
 |         Spellcraft = 
 |               Mana = 
 |     Cannot Be Sold = True
}}

Usage

This is a component template that is part of a Page Template. See Food Template for details on usage and examples.