Modèle:Archive header

De Terraria Wiki
Aller à la navigation Aller à la recherche
Ce modèle est considéré comme prêt pour i18n, signifiant qu'il est facile à régionaliser pour les différentes langues. Veuillez regarder i18n & l10n pour les modèles (en) pour en apprendre plus.
Voir Modèle:Archive header/l10n pour la localisation de ce modèle.
Important.svg
ATTENTION : Le code du wiki de Terraria est complexe !!!
Si vous souhaitez utiliser ce code sur un autre wiki, les membres de wiki.gg ne seront pas en mesure de vous aider.
Envisagez de choisir un autre wiki pour adapter le code, ou de créer vos propres modèles !
N'oubliez pas que le contenu d'un wiki est plus important qu'une mise en forme sophistiquée.
Template-info.svg Documentation La documentation ci-dessous est transcluse de Modèle:Archive header/doc. (modifier | historique)

Displays a banner and a navigational {{archive-box}}, to be used at the top of archive pages.

Usage

{{ archive header | nobox = y (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.