Advent of Ascension Wiki

1.7.10版本的玩家请注意,本Mod的1.7.10版本在此wiki上正式停止支持。这也意味着,在绝大多数页面上,关于1.7.10版本的内容会被移除。如果您需要关于1.7.10版本的信息,您可以尝试翻阅相应页面在2019年2月之前的历史版本(点击页面右上角的“历史”标签可以查看所有历史版本)
如果您希望评论、询问相关信息,或是表达自己的顾虑,请至官方Discord服务器或移步社区主页

了解更多

Advent of Ascension Wiki
Advertisement

此infobox模板适用于所有物品,包括工具、武器和盔甲。

模板参数

参数描述类型状态
ammoammoammunition

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.

示例值
Energy
字符串可选
ammunitionammunition

无描述

未知可选
namename

无描述

字符串必需
imageimage

无描述

未知可选
imgsizeimgsize

无描述

未知可选
armorimagearmorimage

无描述

未知可选
armorimageoldarmorimageold

无描述

未知可选
typetype

无描述

未知可选
damagedamage

无描述

未知可选
specialdamagespecialdamage

无描述

未知可选
attackspeedattackspeed

无描述

未知可选
unholstertimeunholstertime

无描述

未知可选
knockbackknockback

无描述

未知可选
armorarmor

无描述

未知可选
armortoughnessarmortoughness

无描述

未知可选
durabilitydurability

无描述

未知可选
fireratefirerate

无描述

未知可选
hungerhunger

无描述

未知可选
saturationsaturation

无描述

未知可选
effecteffect

无描述

未知可选
tooltiptooltip

无描述

未知可选
renewablerenewable

无描述

未知可选
stackablestackable

无描述

未知可选
versionaddedversionadded

无描述

未知可选
versionremovedversionremoved

无描述

未知可选
idid

无描述

未知可选
currentversioncurrentversion

无描述

未知可选
itemimageitemimage

无描述

未知可选
efficiencyefficiency

无描述

未知可选
drawspeeddrawspeed

无描述

未知可选
imglistimglist

无描述

未知可选
Template-info 文档说明

用途

Template:ItemInfo是适用于物品的模板,它的前身为Template:WeaponInfoBox

参数

此模板可以承载以下参数:

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

参数说明

  • 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.


  • 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.
    • For example, for Alacrity Armor, set the parameter to Alacrity.
  • 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.
  • 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.
    • If this parameter is set to Yes, the page the template is on will automatically be added to Category:Renewable resources. If the parameter is set to no, it will be added to Category:Nonrenewable resources.
  • 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.

示例

以下是一个简易的设置及其最终显示的效果。

{{ItemInfo
|name = 棕色冲击者
|image = Brown Blaster.png
|type = 霰弹枪
|specialdamage = 每发{{hp|6}}伤害
|durability = N/A
|renewable = 是
|stackable = 否
|ammo = Spreadshot
|id = aoa3:brown_blaster
}}
棕色冲击者
Brown Blaster
统计信息
类型 霰弹枪
特殊伤害 每发6 (Heart×3)伤害
耐久度 N/A
所需弹药 Spreadshot 霰弹
可再生
可堆叠
ID aoa3:brown_blaster


以上文档攫取自Template:ItemInfo/doc
Advertisement