Template:Resource Infobox

From Anvil Empires Wiki
Jump to navigation Jump to search

This template defines the table "resources". View table.This template adds rows to the table "itemdata", which is declared by the template Itemdata. View table.

Template-info.svg Documentation

Usage

{{Resource Infobox
|IsReleasedAndEnabled=
|ContentLang=
|CodeNameString=
|NameText=
|Icon=
|ItemTags=
|ResourceType=
|Lifespan=
|AmountPerBarrel=
|DescriptionText=
|DescriptionFooterText=
}}

Details

This template is used by all Resources.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
IsReleasedAndEnabledIsReleasedAndEnabled

If this resource has is an active item in the current build or if its upcoming or removed from the game.

Default
Yes
Example
No
Booleansuggested
ContentLangContentLang

Content Language, legacy field from before the french wiki split.

Default
en
Stringsuggested
CodeNameStringCodeNameString

Game codename for the item, used as the primary ID.

Example
Branches
Stringrequired
NameTextNameText

Ingame name for the item.

Default
{{PAGENAME}}
Stringrequired
IconIcon

Game icon image for the resource, is set to a default image if none is set.

Default
DefaultImage.png
Example
Branches
Stringsuggested
ItemTagsItemTags

Comma split string list of tags, used for item inventory filtering.

Example
Resource,Large
Stringsuggested
ResourceTypeResourceType

The resources type, i.e Raw, Manufactured, Animal, Animal Equipment, Plant, Smithing, Misc.

Example
Raw
Stringsuggested
LifespanLifespan

The lifespan of the resource entity when dropped on the ground.

Numberoptional
AmountPerBarrelAmountPerBarrel

Amount of this item that can be packed into a barrel, or gained from structures that produce a barrel.

Numberoptional
DescriptionTextDescriptionText

Parse through value of the ingame description for the item, placed at the top of the resource page.

Stringsuggested
DescriptionFooterTextDescriptionFooterText

Parse through value of the ingame description footer for the item, placed at the top of the resource page.

Stringsuggested
The above documentation is transcluded from Template:Resource Infobox/doc.[edit | history | purge]