Template:Nourishment

From Guild Wars 2 Wiki
Jump to: navigation, search
Nourishment food.png Nourishment

Description[edit]

{{nourishment|<duration>|<effect description>}}

This template is designed to conveniently display nourishment effects on food items within the item infobox's "description" parameter.

Parameters[edit]

unnamed parameter 1
Required. The duration of the nourishment effect. Include the unit. Example: "10 m". Set to 0 to hide duration.
unnamed parameter 2
Required. The description of the nourishment effect. Manually put in line breaks (i.e. <br>) as appropriate. Can be left empty if the nourishment effect has no description.
unnamed parameter 3
Optional. Specifies the type of nourishment. Defaults to "food", other options include "utility" and "booster".
Value Result
food (default) Nourishment food.png
utility Nourishment utility.png
booster (icon does not have a default for boosters)
icon
Optional. Specifies the icon to be used instead of the type dependent default.
name
Optional. The pagename of the nourishment article. Defaults to the Nourishment article.
alt
Optional. Specifies the display name of the nourishment, if it differs from "Nourishment".
For an example, see Delicious Rice Ball.
id
Optional. The effect id as revealed by /wiki + clicking on the effect.
status
Optional. If set to anything, e.g. status = historical then it switches off the subobject creation.

Example[edit]

{{Item infobox
| type = food
| rarity = basic
| variables =
{{nourishment|30 m|name=Pumpkin's Blessing|+20% [[downed]] [[health]]<br>+10 [[Experience]] from kills}}
{{nourishment|10 m|icon=Pumpkin's Blessing.png|+20% [[downed]] [[health]]<br>+10 [[Experience]] from kills}}
| value = 40
}}
.
Nourishment food.png

Nourishment

Item type
Food
Rarity
BBasic
Value
40 Copper coin
Double-click to consume.
Nourishment food.png Pumpkin's Blessing (30 m): +20% downed health
+10 Experience from kills
Pumpkin's Blessing.png Nourishment (10 m): +20% downed health
+10 Experience from kills

— In-game description

Notes[edit]

  • This template sets semantic properties. They can be easily retrieved with {{Nourishment bonus}}