The wiki could use some editors! Any help would be appreciated as our shortage of editors makes it take longer to update the wiki. If you want to help out with editing, feel free to do so, it would be much appreciated! You can also check out the to-do list for a list of things needing done.

Template:ItemInfo

From Advent of Ascension Wiki
Jump to: navigation, search

The infobox template used for all items, this includes tools, weapons, and armor.

Template parameters

ParameterDescriptionTypeStatus
Ammoammo ammunition

This parameter defines the value in the Ammunition row of the infobox. If not set, the Ammunition row will be absent. When set, creates a hyperlink to the page the parameter is set to, and shows an image with the same name as the parameter is set to.

Example
Energy
Stringoptional
Ammunitionammunition

no description

Unknownoptional
Namename

no description

Stringrequired
Imageimage

no description

Unknownoptional
Imgsizeimgsize

no description

Unknownoptional
Armorimagearmorimage

no description

Unknownoptional
Armorimageoldarmorimageold

no description

Unknownoptional
Typetype

no description

Unknownoptional
Damagedamage

no description

Unknownoptional
Specialdamagespecialdamage

no description

Unknownoptional
Attackspeedattackspeed

no description

Unknownoptional
Unholstertimeunholstertime

no description

Unknownoptional
Knockbackknockback

no description

Unknownoptional
Armorarmor

no description

Unknownoptional
Armortoughnessarmortoughness

no description

Unknownoptional
Durabilitydurability

no description

Unknownoptional
Fireratefirerate

no description

Unknownoptional
Hungerhunger

no description

Unknownoptional
Saturationsaturation

no description

Unknownoptional
Effecteffect

no description

Unknownoptional
Tooltiptooltip

no description

Unknownoptional
Renewablerenewable

no description

Unknownoptional
Stackablestackable

no description

Unknownoptional
Versionaddedversionadded

no description

Unknownoptional
Versionremovedversionremoved

no description

Unknownoptional
Idid

no description

Unknownoptional
Currentversioncurrentversion

no description

Unknownoptional
Itemimageitemimage

no description

Unknownoptional
Efficiencyefficiency

no description

Unknownoptional
Drawspeeddrawspeed

no description

Unknownoptional

no description

Unknownoptional
Imglistimglist

no description

Unknownoptional
Harvestlevelharvestlevel

no description

Unknownoptional
Template-info.png Documentation

Usage

Template:ItemInfo is the infobox to be used on item pages. Its function replaces the old Template:WeaponInfoBox.

Parameters

The template can host the following arguments:

{{ItemInfo
|name=
|imglist=
|image=
|imgsize= 
|itemimage=
|armorimage = 
|armorimageold = 
|type=
|damage=
|specialdamage=
|attackspeed= 
|knockback=
|armor=
|armortoughness=
|durability=
|ammo=
|ammunition=
|drawspeed=
|firerate=
|hunger=
|saturation=
|efficiency=
|harvestlevel=
|effect=
|tooltip=
|renewable = 
|stackable =
|versionadded =
|id=
}}

Explanation of parameters

  • name - this parameter is used to set the name in the top of the infobox. If not defined, the name in the top of the infobox will default to the page name.
  • imglist - a parameter for to add the image to the infobox using custom code. For example, instead of putting Tree Spirit.png, one would put [[File:Tree Spirit.png|sizepx|description]] instead. Also supports slideshows (<slideboxlightshow>) if set to one.
  • image - this parameter is used to define the image inside the infobox, above the statistics line, and below the name at the top of the infobox. If this is not defined, defaults to using an image with the same name as the page name, with the .png file extension.
    • To set the parameter, one must put the file name with the extension, but without the "File:".
      • For example:
        |image=Lunar Bricks.png
        not
        |image=Lunar Bricks
        nor
        |image=[[File:Lunar Bricks.png]]
        .
    • Image size is set to 150px by default, can be changed with the imgsize parameter.
    • Image file format is set to png by default, can be changed with the format parameter.
  • imgsize - the size of the image in the infobox, in pixels. To set this parameter, one must set it to a number with the px on the end. If this parameter is not set, defaults to 150px.


  • itemimage - when this parameter is set, an additional image will appear below the first image set by the image parameter. The image file format is png and cannot be changed. To set this parameter, one must put a word that makes up the part of a file name.
    • For example, for Halycon Milk, set the parameter to Halycon Milk.
  • armorimage - when this parameter is set, a second set of four images will appear below the image set by the image parameter. These images will have the suffix Helmet, Chestplate, Leggings, and Boots attached to the end of the image names, respectively, in that order. The image file format is png and cannot be changed. To set this parameter, one must put a word that makes up the part of a file name.
  • armorimageold - same as the armorimage parameter, except the words 1.7.10 are attached as a suffix to the image name. Information pertaining to the armorimage parameter also applies to the armorimageold parameter.
  • type - this parameter defines the value in the Type row of the infobox. If not set, the Type row will be absent.
  • damage - this parameter defines the value in the Damage row of the infobox. To set this parameter, one must only set it to a number. If not set, the Damage row will be absent. This parameter is intended to be used when an item or weapon applies only one kind of damage.
  • specialdamage - this parameter defines the value in the Damage row of the infobox. If not set, the Damage row will be absent. Unlike the damage parameter, this parameter can be set to things other than just numbers. This parameter is intended to be used when an item or weapon applies more than one kind of damage, or does special damage.
  • attackspeed - this parameter defines the value in the Attack speed row of the infobox. If not set, the Attack speed row will be absent. This parameter is intended to document the attack speed of a weapon.
  • knockback - this parameter defines the value in the Knockback row of the infobox. If not set, the Knockback row will be absent.
  • armor - this parameter defines the value in the Armor row of the infobox. If not set, the Armor row will be absent.
  • armortoughness - this parameter defines the value in the Armor toughness row of the infobox. If not set, the Armor toughness row will be absent.
  • durability - this parameter defines the value in the Durability row of the infobox. If not set, the Durability row will be absent.
  • ammo or ammunition - this parameter defines the value in the Ammunition row of the infobox. If not set, the Ammunition row will be absent. When set, creates a hyperlink to the page the parameter is set to, and shows an image with the same name as the parameter is set to.
    • The image in this case is 25px and defaults to .png file format; if a png doesn't exist it shows a .gif instead. The image filename and size cannot be changed in this case.
  • drawspeed - this parameter defines the value in the Draw speed row of the infobox. If not set, the Draw speed row will be absent.
  • firerate - this parameter defines the value in the Fire rate row of the infobox. If not set, the Fire rate row will be absent.
  • hunger - this parameter defines the value in the Hunger row of the infobox. If not set, the Hunger row will be absent.
  • saturation - this parameter defines the value in the Saturation row of the infobox. If not set, the Saturation row will be absent.
  • efficiency - this parameter defines the value in the Efficiency row of the infobox. If not set, the Efficiency row will be absent.
  • harvestlevel- this parameters defines the value in the Harvest level row of the infobox. If not set, the Harvest level row will be absent.
  • effect - this parameter defines the value in the Effect row of the infobox. If not set, the Effect row will be absent.
  • tooltip - this parameter defines the value in the Tooltip row of the infobox. If not set, the Tooltip row will be absent.
  • renewable - this parameter defines the value in the Renewable row of the infobox. If not set, the Renewable row will be absent.
  • stackable - this parameter defines the value in the Stackable row of the infobox. If not set, the Stackable row will be absent.
  • id - this parameter defines the value in the ID row of the infobox. If not set, the ID row will be absent.

Example

The following setup produces the below template:

{{ItemInfo
|name = Brown Blaster
|type = Shotgun
|specialdamage = {{hp|6}} damage per shot
|durability = N/A
|renewable = Yes
|stackable = No
|ammo = Spreadshot
|id = aoa3:brown_blaster
}}
Brown Blaster
Brown Blaster.png
Statistics
Type Shotgun
Damage 6 (Heart.png×3) damage per shot
Durability N/A
Ammunition Spreadshot.png Spreadshot
Renewable Yes
Stackable No
ID aoa3:brown_blaster
The above documentation is transcluded from Template:ItemInfo/doc.