Jump to content

Template:Autotranslatetest

From Strategic Planning


[edit] [purge] Template documentation

This template is used to show a page in the users interface language.

For autotranslating templates, please use Template:Autotranslate template instead, otherwise a circular reference will be detected when an autotranslated template is transcluded into an autotranslated page.

How to use this template

  1. Rename the English "Pagename" to "Pagename/en".
  2. Replace the content of Pagename (what is now a #REDIRECT [[Pagename/en]]) with:
{{Autotranslate|1={{{1|}}}|base=''Pagename''}}<noinclude><!--
---------------------------------------------------------------------------------------------------------------------
To edit the text shown on an "autotranslated" page:
* 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 [[Pagename]] the content of [[Pagename/xx]] will be shown, where xx is a language code.

The language code is determined in the following sequence:

  1. The language in your user preference; yours is "en";
  2. The fallback language of the language in your user preference; yours is "en" (see Template:GetFallback);
  3. If none of the above language subpages exist, the page is displayed in the English language.