Multilingual Templates and Modules

Intro
This project describes how templates and modules can be kept in sync between multiple languages and projects.

Since the beginning of Wikipedia, language wikis copied templates, and users kept asking to be able to share the same templates and modules on multiple wikis, without spending precious developer time copy/pasting them between hundreds of languages and projects. It would be ideal for MediaWiki to support this functionality, but that turned to be much more difficult challenge than anticipated. This project is designed to work around MediaWiki limitation, while offering the so much needed functionality.

Method

 * DiBabel bot will copy template and module pages from mediawiki.org to all other sites/languages listed in Wikidata for that page, leaving localized summary (please translate).
 * Wikidata item must have "instance of" set to (Q63090714), in addition to any other instance-of values.
 * A page will be copied ONLY if the current content of the page exists in the history of mediawiki.org's (origin) version. E.g. if a user modifies English version of the page, it will not be overwritten unless that exact text ever existed in the history of the page on mediawiki.org.  To resume automatic synchronization, a user must copy the latest origin's version of the page.

Translating Content
There is very little value in having non-translated content copied as is. The Module:TNT was created specifically to solve that. Instead of storing English text in a module or a template, TNT allows them to be designed language-neutral, and store multilingual text in the tabular data pages on Commons. This way your module or template will use those translated strings (messages), or if the message has not yet been translated, will fallback to English. When someone updates the translation table, your page will automatically update (might take some time, or you can purge it), but no change in the template or module is needed on any of the wikis. This process is very similar to MediaWiki's localisation, and supports all standard localization conventions such as NaN undefineds and other parameters.

For a simple example, see Data:I18n/Template:Graphs.tab - a table with two messages, each message having a single parameter. By convention, all translation pages should have  Data:I18n/...  prefix to separate them from other types of data.

Global Templates
In a template, this command translates source-table message using Commons' Data:I18n/Template:Graphs.tab translation table.

If your message contains parameters, you can specify them after the message ID, e.g.

In some cases you may want to link to a data table, e.g. to help users add more translations. For that, you would use   as a parameter to your message. For example, this would create a See or edit raw graph data text, with "raw graph data" being a link to the table:

Translating Template Parameters
(TODO)