The official discord link if you wish to join the discord: https://discord.gg/j5RKwCvAFu

Support the wiki on our official Ko-Fi page or Patreon page!

Template:Language info/doc

From The Codex

Template:Distinguish

This template displays interwiki links, helps organizing the translation projects, and performs some additional miscellaneous operations.

It should be placed at the end of every non-redirect page in the following namespaces: Template:Dotlist/start {{#lstmap:(Main), Terraria Wiki, Template, Help, Category, Guide, Legacy|,|@@|<esc>Template:Dotlist/item</esc>|}} Template:Dotlist/end

The template calls {{translation projects}} and {{common}}. It is furthermore the core part of the automatic interwiki link system of the Terraria Wiki: It collects the page names and English interwiki links from each language wiki, merges them to form a database on the English wiki, and then displays the interwiki links according to the language wiki and page it is used on.

Usage

Template:( language info | en = <English page name> Template:)

en

Name of the English page. On the English wiki, this must be identical to the page name, so it can be set to Template:(subst:FULLPAGENAMETemplate:). On language wikis (both on-wiki[1] and off-wiki[2]), it should be the name of the English version of the page.

Interwiki link database maintenance

The automatic interwiki link system relies on the database Module:Language info/data. It is based on all the {{language info}} calls on all the different wikis. This database needs to be updated periodically; the most recent version is always at Template:Language info/datagen.

Because this template transcludes several templates with very long outputs, it might fail to load. In this case, inspect the Template:Fullurl of the template and assemble its output manually.

Once updated, all the interwiki links on the English wiki and the on-wiki languages[1] will be up-to-date.

The off-wiki languages[2] also require the database Module:Language info/data. It can simply be synced as-is from the English wiki.

Footnotes

  1. Jump up to: 1.0 1.1 Cite error: Invalid <ref> tag; no text was provided for refs named onWikiList
  2. Jump up to: 2.0 2.1 Cite error: Invalid <ref> tag; no text was provided for refs named offWikiList


Template:Category