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

Template:Archive header

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

Displays a banner and a navigational {{archive-box}}, to be used at the top of archive pages. Also hides the section edit links beside headings via the behavior switch __NOEDITSECTION__.

Usage

{{ archive header | nobox = y/yes (optional) }}

nobox

Suppress display of the {{archive-box}}.

All {{archive-box}} parameters

The template supports all parameters that are available for {{archive-box}}. For convenience reasons, it will attempt to fetch the values of the three critical parameters $basepage, $title, and $1 automatically from the {{archive-box}} call on the base page (or a /header subpage of it; support for multiple {{archive-box}} calls, like on Terraria Wiki:Admin noticeboard, is included), but this may fail, in which case it will be necessary to set these parameters in the {{archive header}} on the archive page.

Notes

  • A common issue is that on the base page, the first unnamed parameter of the {{archive-box}} is set to something like the following:
|* [[/Archive 1|First archive]]
* [[/Archive 2|Second archive]]
Since the {{archive-box}}es in the {{archive header}} on these archive subpages will copy that parameter value, the links will not work correctly there. Therefore, make sure to put a complete link instead of the [[/ abbreviation.

es-formal:Plantilla:Archive header