Template:Nourishment

From Guild Wars 2 Wiki
Jump to navigationJump to 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]

1 (unnamed parameter)
Required. The duration of the nourishment effect. Include the unit. Example: "10 m". Set to 0 to hide duration.
2 (unnamed parameter)
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.
3 (unnamed parameter)
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.
sic
Optional. If set, adds the {{sic}} template to after the nourishment text. Using this parameter avoids propagating sic tags and categories when the description text is queried.
status
Optional. If set to anything, e.g. status = historical then it switches off the subobject creation.

Example[edit]

{{Item infobox
| name = Rice Ball
| icon = Rice Ball.png
| type = food
| rarity = fine
| variables = {{nourishment|10 m|+20 [[Power]]<br>+10% [[Experience]] from Kills|id=9758}}
| bound = account
}}

Rice Ball.png

Rice Ball

Double-click to consume.
Nourishment food.png Nourishment (10 m): +20 Power
+10% Experience from Kills

— In-game description

{{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.png

Nourishment

Item type
Food
Rarity
Basic
Value
40 Copper coin
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}}