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.
{{note}}
with {{Note}}
, and add the tab spacing with some line breaks.
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).
Note:if
%short is specified, the long page title (e.g. Source/Docs) will be shortened to the current subpage (i.e. Docs)Note:if a page has a translation and you want to specify the correct page title for that translation, specify the language suffix in {{{title}}} (for example,
| title:zh = SDK的安装) . To see all available language suffixes, see #Other.Warning:On some pages you may receive this error: Warning: Display title "env_cubemap" overrides earlier display title "<code>Env cubemap</code>". This can be due to the fact that the page uses a different template in which the page title is set. For example,
{{shortpagetitle}} . |
|
{{{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. Note:The template must be placed before the content, or it cannot be worked. You must place the template {{MultiPage/end}} at the end of the content. See also example.
|
Examples
{{{title}}}
of {{Language subpage}} in language subpages so that the title will change automatically. Otherwise, you can
for non-translatable title.Approximate translations of each language
Only subpages (/en ...) and articles that are in the Languages category.
4,305 out of 12,333, 34.91% translated.
115 out of 12,333, 0.93% translated.
717 out of 12,333, 5.81% translated.
77 out of 12,333, 0.62% translated.
2 out of 12,333, 0.02% translated.
4 out of 12,333, 0.03% translated.
23 out of 12,333, 0.19% translated.
1 out of 12,333, 0.01% translated.
12 out of 12,333, 0.1% translated.
150 out of 12,333, 1.22% translated.
2 out of 12,333, 0.02% translated.
278 out of 12,333, 2.25% translated.
0 out of 12,333, 0% translated.
3 out of 12,333, 0.02% translated.
18 out of 12,333, 0.15% translated.
14 out of 12,333, 0.11% translated.
89 out of 12,333, 0.72% translated.
122 out of 12,333, 0.99% translated.
1 out of 12,333, 0.01% translated.
70 out of 12,333, 0.57% translated.
13 out of 12,333, 0.11% translated.
976 out of 12,333, 7.91% translated.
218 out of 12,333, 1.77% translated.
4 out of 12,333, 0.03% translated.
27 out of 12,333, 0.22% translated.
16 out of 12,333, 0.13% translated.
37 out of 12,333, 0.3% translated.
35 out of 12,333, 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 |