Template:Translation projects/doc

This template helps organizing the many translation projects of the Terraria Wiki. It should be transcluded on every mainspace article.

Effects
It handles three tasks:
 * 1) Indexing a page if it pertains to a translation project, i.e. categorizing it appropriately and adding an identifier to it.
 * 2) Translating the page's title.
 * 3) Adding interwiki links to all translated versions of the page.

The template is fully automatic, hence it takes the information it needs for the first task from the article's title and the information it needs for the second task from the wiki's page database.

Indexing
Pages will only be categorized and provided with an identifier if the last subpage level equals any of the available languages' language codes listed in the table below. The category will be the respective  category, found in the main category. The identifier consists of a flag of the country that the language is generally associated with. It will be visible in the upper right corner of the page, in the page status indicator section. It can be clicked to reveal a banner with a short informational sentence and clicked again to hide it again.

Interwiki links
The template also creates language interwiki links to all existing translation project subpages of the current page. These will appear in the "In other languages" section in the sidebar on the left. Note that this only applies only to the translation projects listed in the table above, and not to translation projects moved to an own subdomain, such as French or Russian.

Usage
Place this code at the very bottom of the page, below interwiki links to completed language projects.

Use this parameter to provide a custom translation of the page title. It defaults to, and can thus usually be omitted.
 * displaytitle

{	"params": { "displaytitle": { "label": "Page title", "description": "The translation of the page title. Defaults to .", "type": "line" }	},	"description": "Handle translation-related tasks. Automatically add interwiki links to other languages (does not add links to language wikis with an own subdomain, such as French or Russian)." }