Template:Language/archives/MultiPage/doc: Difference between revisions
m (Added an important note.) |
mNo edit summary |
||
Line 68: | Line 68: | ||
! Page name | ! Page name | ||
! Icon | ! Icon | ||
|- | |- | ||
| English ||Page_name/en ||{{ | | English ||Page_name/en ||{{Flag|en}} | ||
|- | |- | ||
| Catalan ||Page_name/ca ||{{ | | Catalan ||Page_name/ca ||{{Flag|ca}} | ||
|- | |- | ||
| Czech ||Page_name/cs ||{{ | | Czech ||Page_name/cs ||{{Flag|cs}} | ||
|- | |- | ||
| German ||Page_name/de ||{{ | | German ||Page_name/de ||{{Flag|de}} | ||
|- | |- | ||
| Spanish ||Page_name/es ||{{ | | Spanish ||Page_name/es ||{{Flag|es}} | ||
|- | |- | ||
| Esperanto ||Page_name/eo ||{{ | | Esperanto ||Page_name/eo ||{{Flag|eo}} | ||
|- | |- | ||
| Estonian ||Page_name/et ||{{ | | Estonian ||Page_name/et ||{{Flag|et}} | ||
|- | |- | ||
| French ||Page_name/fr ||{{ | | French ||Page_name/fr ||{{Flag|fr}} | ||
|- | |- | ||
| Hungarian ||Page_name/hu ||{{ | | Hungarian ||Page_name/hu ||{{Flag|hu}} | ||
|- | |- | ||
| Greek ||Page_name/el ||{{ | | Greek ||Page_name/el ||{{Flag|el}} | ||
|- | |- | ||
| Italian ||Page_name/it ||{{ | | Italian ||Page_name/it ||{{Flag|it}} | ||
|- | |- | ||
| Dutch ||Page_name/nl ||{{ | | Dutch ||Page_name/nl ||{{Flag|nl}} | ||
|- | |- | ||
| Norwegian ||Page_name/no ||{{ | | Norwegian ||Page_name/no ||{{Flag|no}} | ||
|- | |- | ||
| Polish ||Page_name/pl ||{{ | | Polish ||Page_name/pl ||{{Flag|pl}} | ||
|- | |- | ||
| Portuguese ||Page_name/pt ||{{ | | Portuguese ||Page_name/pt ||{{Flag|pt}} | ||
|- | |- | ||
| Portuguese (Brazilian)||Page_name/pt-br ||{{ | | Portuguese (Brazilian)||Page_name/pt-br ||{{Flag|pt-br}} | ||
|- | |- | ||
| Russian ||Page_name/ru ||{{ | | Russian ||Page_name/ru ||{{Flag|ru}} | ||
|- | |- | ||
| Ukrainian ||Page_name/uk ||{{ | | Ukrainian ||Page_name/uk ||{{Flag|uk}} | ||
|- | |- | ||
| Swedish ||Page_name/sv ||{{ | | Swedish ||Page_name/sv ||{{Flag|sv}} | ||
|- | |- | ||
| Turkish ||Page_name/tr ||{{ | | Turkish ||Page_name/tr ||{{Flag|tr}} | ||
|- | |- | ||
| Japanese ||Page_name/ja ||{{ | | Japanese ||Page_name/ja ||{{Flag|ja}} | ||
|- | |- | ||
| Vietnamese ||Page_name/vi ||{{ | | Vietnamese ||Page_name/vi ||{{Flag|vi}} | ||
|- | |- | ||
| Chinese (PRC) ||Page_name/zh ||{{ | | Chinese (PRC) ||Page_name/zh ||{{Flag|zh}} | ||
|- | |- | ||
| Chinese (Taiwan) ||Page_name/zh-tw ||{{ | | Chinese (Taiwan) ||Page_name/zh-tw ||{{Flag|zh-tw}} | ||
|- | |- | ||
| Korean ||Page_name/ko ||{{ | | Korean ||Page_name/ko ||{{Flag|ko}} | ||
|- | |- | ||
| Georgian ||Page_name/ka ||{{ | | Georgian ||Page_name/ka ||{{Flag|ka}} | ||
|- | |- | ||
| Hebrew ||Page_name/he ||{{ | | Hebrew ||Page_name/he ||{{Flag|he}} | ||
|} | |} | ||
{{Doc/Sandbox other|[[Category:Translation templates]]}} | {{Doc/Sandbox other|[[Category:Translation templates]]}} |
Revision as of 11:14, 23 April 2023

Don't forget to purge the contents of the base page upon creating or editing this subpage.
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}}
.
Usage on existing pages
Before using it on an existing page, you should make sure that you have done the following steps:
- 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
- Move the contents of the translated My Cute Article page to its language subpage My Cute Article/<language code> (for example, My Cute Article:zh-ch will become an My Cute Article/zh);
- Move the English categories 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;
- Remove language suffixes (
- pt-br, |suf=:de) from all language subpages. They are deprecated and no longer needed.
- Remove language categories (for example, [[Category:My Cute Category:ru]]) from all language subpages. They are deprecated and no longer needed.
- Place
{{Language subpage}}
at the top of the language subpages.
After the above steps, place {{MultiPage}}
on the base page above the categories and enjoy what you see.

Parameters and Examples
Parameter | Description | Example |
---|---|---|
No Parameters | Places a template. | |
{{{page}}} | Optional: The page that the template create multi-language links according to. | |
{{{basepage}}} | Optional: If the translations are in subpages that are level 2 or above, this can specify what the root page name is. | |
{{{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. |
Examples
Other
Language | Page name | Icon |
---|---|---|
English | Page_name/en | ![]() |
Catalan | Page_name/ca | ![]() |
Czech | Page_name/cs | ![]() |
German | Page_name/de | ![]() |
Spanish | Page_name/es | ![]() |
Esperanto | Page_name/eo | ![]() |
Estonian | Page_name/et | ![]() |
French | Page_name/fr | ![]() |
Hungarian | Page_name/hu | ![]() |
Greek | Page_name/el | ![]() |
Italian | Page_name/it | ![]() |
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 | ![]() |
Ukrainian | Page_name/uk | ![]() |
Swedish | Page_name/sv | ![]() |
Turkish | Page_name/tr | ![]() |
Japanese | Page_name/ja | ![]() |
Vietnamese | Page_name/vi | ![]() |
Chinese (PRC) | Page_name/zh | ![]() |
Chinese (Taiwan) | Page_name/zh-tw | ![]() |
Korean | Page_name/ko | ![]() |
Georgian | Page_name/ka | ![]() |
Hebrew | Page_name/he | ![]() |