Template:Autotranslate template
Appearance
[edit] [ ] Template documentation
This template is used to show a template in the users interface language.
For autotranslating articles, please use Template:Autotranslate instead, otherwise a circular reference will be detected when an autotranslated template is transcluded into an autotranslated article.
How to use this template
- Rename the English "Template:Pagename" to "Template:Pagename/en".
- Replace the content of Template:Pagename (what is now a #REDIRECT [[Template:Pagename/en]]) with:
{{Autotranslate template|1={{{1|}}}|base=''Pagename''}}<noinclude> {{Languages/Template:''Pagename''}}<!-- --------------------------------------------------------------------------------------------------------------------- To edit the text shown on an "autotranslated" template: * click on a language link for the subpage (English or so) although you are seeing the text in that language already, * then click on the Edit Tab. --------------------------------------------------------------------------------------------------------------------- --></noinclude>
That is all.
Language selection
When linking to {{Template:Pagename}} the content of {{Template:Pagename/xx}} will be shown, where xx is a language code.
The language code is determined in the following sequence:
- The language in your user preference, your is "en";
- The fallback language of the language in your user preference, yours is "en" (see Template:GetFallback);
- If none of the above language subpages exist the template is displayed in the English language.
The above documentation is transcluded from Template:Autotranslate template/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |