Advent of Ascension Wiki

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

READ MORE

Advent of Ascension Wiki
Advertisement
Advent of Ascension Wiki

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

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
Imglistimglist

no description

Unknownoptional
Harvestlevelharvestlevel

no description

Unknownoptional
Template-info.png 文档说明

用途

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.png
统计信息
类型 霰弹枪
特殊伤害 每发6 (Heart.png×3)伤害
耐久度 N/A
所需弹药 Spreadshot.png 霰弹
可再生
可堆叠
ID aoa3:brown_blaster


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