Template:Nourishment
From Guild Wars 2 Wiki
Jump to navigationJump to search
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) | |
utility | |
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
- Rarity
- Fine
- Binding
- Account Bound
“Double-click to consume.
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 }}
“
Pumpkin's Blessing (30 m): +20% downed health
+10 Experience from kills
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}}