Template:Language/archives/MultiPage/doc

Don't forget to purge the contents of the base page upon creating or editing this subpage.

Furthermore, if you also moving the English {{Lang}} page aswell, you must move the category back to the main ({{MultiPage}}) page to avoid showing the language subpage on category.

A translation template. Replacement for {{Lang}}.
The template will look for translation subpages and load one of them according to the interface language. The template will load the English version and display a message if the translation subpage does not exist. The template will only display a message if there are not any translations and the English version does not exist.
Creating a new page
Just create an empty page, put a {{MultiPage}} on it, click on the translation button ( ) in the upper right corner and select the primary language. After making a choice, {{MultiPage}} will redirect you to edit the language subpage on which you will need to place your text and template {{Language subpage}} (placed on top).
Usage on existing pages
Before using it on an existing page, or attempt to replace {{Lang}} with {{MultiPage}}, you should make sure that you have done the following steps:
- On the "My Cute Article" page, edit the page and replace {{Lang}} with {{Language subpage}} or {{Langsp}} (shortcut for {{Language subpage}}, which is faster to type). Do the same for the other translated page.
- Remove language suffixes (:pt-br, |suf=:de) from all language subpages, and if the template support Autolang, remove it from all templates as well. They are deprecated and no longer needed.
Tip:You can use
Notepad++ (or other software), and replace all (:pt-br, |suf=:de) with blank text.
- Remove language categories (for example, [[Category:My Cute Category:ru]]) from all language subpages. They are deprecated and no longer needed.
- Move the English content of the My Cute Article page to its language subpage My Cute Article/en
Important:Do not move associated talk page, however if there are talk pages on any languages other than English, you can move them.
- Move the page of the translated My Cute Article page to its language subpage My Cute Article/<language code> (for example, My Cute Article:zh-cn will become an My Cute Article/zh);
- Move English categories (without any language suffixes) to the base (main) page, aka the one with {{MultiPage}} (for example, to the My Cute Article page);
- Move the shared or international templates to the base page;
- If the article pertains to an entity, move the {{This is a}} template to the root page. The template is automatically translated. For {{Entity}} or {{Format}} templates, replace it with {{This is a}} template.
After the above steps, place {{MultiPage}} on the base page above the categories and enjoy what you see.


Using the parameter {{{no-en-subpage}}}
This parameter allows you to keep the English content on the main page, instead of moving the English content to the subpages. This is useful for pages that are move protected by wiki administrators.
Creating a new page
Just create a new page as normal, write down your content (in English). Then place the template before your content, and place {{MultiPage/end}} - a sub-template of {{MultiPage}} at the end of the content. Don't contain categories. For example:
For creating pages for other languages, just click on the translation button ( ) in the upper right corner and select the language you want to translate. The content from English page will shows up, then you can start translating them. If nothing shows up, you may need to copy the content on the English page manually.
Usage on existing pages
Similar to the previous, but with differences:
- On main page (in English), place {{MultiPage}} before the content, and place {{MultiPage/end}} at the end of the content (See the example above). Don't move the English content to its language subpage (/en).
- The methods of other languages remain unchanged.
Parameters and Examples
Parameter | Description | Example |
---|---|---|
No Parameters | Places a template. | |
{{{title}}} | Optional: This parameter can be used to change the text of the page titlebar (logically, into the text that should be displayed for the language of the page).
![]() ![]() ![]() |
|
{{{margin-right}}} | Optional: The right margin of the buttons that are to the right top. | |
{{{no-en-subpage}}} | Optional: If you don't move the original English page to the subpage /en, and this will allow you stay the original content on the main page. Specify it as 1 to take effect. ![]() |
Examples

Approximate translations of each language
Only subpages (/en ...) and articles that are in the Languages category.

4,348 out of 12,472, 34.86% translated.

116 out of 12,472, 0.93% translated.

755 out of 12,472, 6.05% translated.

83 out of 12,472, 0.67% translated.

2 out of 12,472, 0.02% translated.

4 out of 12,472, 0.03% translated.

23 out of 12,472, 0.18% translated.

1 out of 12,472, 0.01% translated.

12 out of 12,472, 0.1% translated.

151 out of 12,472, 1.21% translated.

2 out of 12,472, 0.02% translated.

280 out of 12,472, 2.25% translated.

0 out of 12,472, 0% translated.

3 out of 12,472, 0.02% translated.

18 out of 12,472, 0.14% translated.

14 out of 12,472, 0.11% translated.

89 out of 12,472, 0.71% translated.

122 out of 12,472, 0.98% translated.

1 out of 12,472, 0.01% translated.

72 out of 12,472, 0.58% translated.

13 out of 12,472, 0.1% translated.

988 out of 12,472, 7.92% translated.

222 out of 12,472, 1.78% translated.

4 out of 12,472, 0.03% translated.

27 out of 12,472, 0.22% translated.

16 out of 12,472, 0.13% translated.

37 out of 12,472, 0.3% translated.

35 out of 12,472, 0.28% translated.
Other
Language | Page name | Icon |
---|---|---|
English | Page_name/en | ![]() |
Catalan | Page_name/ca | ![]() |
Czech | Page_name/cs | ![]() |
German | Page_name/de | ![]() |
Greek | Page_name/el | ![]() |
Esperanto | Page_name/eo | ![]() |
Spanish | Page_name/es | ![]() |
Estonian | Page_name/et | ![]() |
Finnish | Page_name/fi | ![]() |
French | Page_name/fr | ![]() |
Hebrew | Page_name/he | ![]() |
Hindi | Page_name/hi | ![]() |
Hungarian | Page_name/hu | ![]() |
Croatian | Page_name/hr | ![]() |
Italian | Page_name/it | ![]() |
Japanese | Page_name/ja | ![]() |
Georgian | Page_name/ka | ![]() |
Khmer | Page_name/km | ![]() |
Korean | Page_name/ko | ![]() |
Malay | Page_name/ms | ![]() |
Dutch | Page_name/nl | ![]() |
Norwegian | Page_name/no | ![]() |
Polish | Page_name/pl | ![]() |
Portuguese | Page_name/pt | ![]() |
Portuguese (Brazilian) | Page_name/pt-br | ![]() |
Russian | Page_name/ru | ![]() |
Swedish | Page_name/sv | ![]() |
Turkish | Page_name/tr | ![]() |
Ukrainian | Page_name/uk | ![]() |
Vietnamese | Page_name/vi | ![]() |
Simplified Chinese (PRC) | Page_name/zh | ![]() |
Traditional Chinese (Taiwan) | Page_name/zh-tw | ![]() |