Шаблон:GetProjectileInfo

Матеріал з Terraria Wiki
Перейти до навігації Перейти до пошуку
У цьому шаблоні використовується Lua.
Цей шаблон використовує Модуль:Projectileinfo — скрипт, написаний на мові програмування Lua. Щоб дізнатися більше про Lua, див. en:Terraria Wiki:Lua.
Template-info.svg Документація Наведена нижче документація запозичена з «Шаблон:GetProjectileInfo/doc». (редагувати | історія)
Для більш повної чи актуальної інформації ви можете переглянути документацію англійською.

This template is used to dynamically display information about a projectile. It is based on Module:Projectileinfo, which takes its data directly from the source code.

Usage

{{ projectileinfo | <ID of the projectile> | <specific stat> }}

Special: {{projectileinfo||count}} results in: 1022

First unnamed parameter

ID of the projectile.

Second unnamed parameter

Specific stat to be displayed. Can be any of the following, in addition to the stats displayed on Module:Projectileinfo:

  • name
  • image

Examples

Code Result
{{projectileinfo|87|name}} Зелена Фея
{{projectileinfo|147|image}} Corrupt Spray.png
{{projectileinfo|1|arrow}} true
{{projectileinfo||count}} 1022