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

Template:Flavor text

来自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:Flavor text/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:Flavor text/doc。(编辑 | 历史

This is a simple helper template for displaying a flavor text at the top of a page, consisting of a big italicized text surrounded by an image on either side.

Usage

{{ flavor text | <text> | image = <custom image> (optional) | size = <image size> (optional) | link = <image link> (optional) | imagealt1 = <completely custom image (left)> (optional) | imagealt2 = <completely custom image (right)> (optional) | noexcerpt = n/no (optional) }}

First unnamed parameter

Text to display.

image

Image to be displayed; just the file name, without the [[File:]] syntax. Defaults to <page name> Trophy.png (due to being used on every boss page), if possible. No image is displayed otherwise or if the parameter is set to an empty value.

size

Custom size of the image; defaults to 30px.

link

Link target for the images. They are unlinked by default.

imagealt1, imagealt2

Completely custom image display on the left ($imagealt1) and right ($imagealt2) sides of the text, with full [[File:]] syntax.

noexcerpt

By default the CSS class noexcerpt is added, which ensures that the flavor text is not part of the page description generated by Extension:Description2. This parameter suppresses that.

es-formal:Plantilla:Flavor text