Template:Autotranslate/doc

How to convert a template
Before you apply this template, first you have to prepare the template.

Pick a template
&mdash;See for example Template:Cc-by-1.0 before changes.

First you have to pick a template to autotranslate.

In this documentation, we will name our "selected template" as:
 * See Template i18n for a list of templates needing translation or translated.

Create a layout template
&mdash;See for example Template:Apache/layout.

You must create a layout template, named, to contain the layout of all language versions of the template. The easiest way to do this is to copy a layout template of a similar template.

This template should not add any categories when transcluded.

Convert existing language versions
&mdash;See for example Template:Apache/en.

All versions must be subpages of, and his name must use the appropriate prefix, as used on Wikipedia when adding a new language –ISO 639 language code–.
 * For example, Spanish subpage must be named

Usually the English language link to the main template – –. That is incorrect, point it to the  subpage.

Each language version of the template should be checked and converted to use the layout template – –. Start with the English language version and compare it to the current template.

Note that everything that is not supposed to be included together with the template, like  or , must be inside a   tag.

Here is the syntax you must use for. &lt;noinclude>

&lt;/noinclude>

Create a documentation page
&mdash;See for example Template:Apache/doc.

Create a documentation page at. This documentation page should include some code for creating language versions of the template. TemplateBox has a |il8n=autotranslate option which provides a standard explanation of how to localise an autotranslated template.

Convert the main template
&mdash;See for example Template:Apache.

The last step is to enable the template. Be sure to check everything before you enable the template. You can cause a really big mess! To enable the template, put this code in the template – –.