Modèle:Legacy navigation tab

De Terraria Wiki
(Redirigé depuis Modèle:Legacy nav tab)
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:Legacy navigation tab/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:Legacy navigation tab/doc. (modifier | historique)
Navigation tabs without this template.
Navigation tabs with this template.

This template adds a new tab at the top left (above the page title) which facilitates easy switching between a main article and its counterpart in the Legacy: namespace.

It also categorizes legacy pages in Category:Différences des plateformes des autres plateformes. On mainspace pages, it adds the hidden tracking category Category:Pages principales avec une page correspondante aux autres plateformes.

Finally, it sets the internal variable {{#var:__article_legacy_nav_tab_page}} to the name of the counterpart page. This has no implications for normal editing but is useful for other templates and modules to change their behavior. For instance, {{item infobox}} does not display the "old" item image by default if this variable is set in mainspace, because it understands that the article has a counterpart in the Legacy: namespace where the "old" image belongs.

Usage

Place this at the very top of an article, above all other wikicode:

{{ legacy nav tab | <page> }}

First unnamed parameter

Target page. This can almost always be omitted, as it is determined automatically. It is only needed when the mainspace and Legacy page titles do not match, such as Volcano and Legacy:Fiery Greatsword. Use {{ns:11000}}: to refer to the Legacy namespace. Example:

Volcano Legacy:Fiery Greatsword
{{legacy nav tab|{{ns:11000}}:Fiery Greatsword}} {{legacy nav tab|Volcano}}