注意:1.4.5 的更新内容量较大,页面上很可能仍有内容尚未更新。
如中文 wiki 信息过时,可以参考英文 wiki 对应页面。
Terraria Wiki:项目/1.4.5 获取 wiki 状态与更新指南

Template:Banner

来自Terraria Wiki
跳转到导航 跳转到搜索
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Template:Banner/l10n for the localization of this template.
Important.svg
CAUTION: Terraria Wiki code is complex!!!
If you want to use this code on another wiki, wiki.gg staff are not able to assist you.
Please consider picking a different wiki to adapt code from, or making your own templates!
Remember that content on a wiki is more important than fancy formatting.
Template-info.svg 文档 以下文档来自Template:Banner/doc。(编辑 | 历史
关于templates that display a banner-style box,参见Category:Banner templates

This template is used to display banners on the Banners (enemy) and Banners (decorative) pages.

Usage

{{ banner | <banner name> | enemy = <enemy name> | link = <page name> | id = <banner item ID> | cargo = y/yes | tags = <tags for {{item infobox}}> }}

Either the first unnamed parameter or $enemy must be set. All other parameter are optional.

First unnamed parameter

Full name of the banner, e.g. Green Banner. The default is the value of $enemy plus Banner, so if e.g. |enemy=Cave Bat is set, then the banner name is automatically set to Cave Bat Banner. In that case this parameter can be omitted.

enemy

Name of the banner's corresponding enemy. It is used as the link target and the basis for the banner name (plus Banner). It should be omitted for decorative banners, as these do not correspond to any enemy.

link

Custom link target.

id

Item ID of the banner.

cargo

Stores the banner's data to the item cargo table via {{item infobox}}. For enemy banners, this is usually not necessary, as this is already accomplished by the {{npc infobox}} on every enemy's article.

tags

Tags for item cargo table (the tags parameter of {{item infobox}}). Only has an effect if |cargo=yes.