Difference between revisions of "Template:Translate"
Line 6: | Line 6: | ||
-->|#default = {{#switch:{{{namespaceoverride|{{NAMESPACE}}}}} | -->|#default = {{#switch:{{{namespaceoverride|{{NAMESPACE}}}}} | ||
− | + | |#default = {{Translate/strings|page 1}}<br>{{Translate/strings|page 2}}<br>{{Translate/strings|page 3}}<br>{{Translate/strings|page 4}}[[Valve Developer Community:Alternative Languages|{{Translate/strings|page link}}]] {{Translate/strings|page tag}} | |
− | |Template | + | |Template = {{Translate/strings|template 1}}<br>{{Translate/strings|template 2}} {{#if:{{{lang 1|}}}|{{Translate/strings|template 2.1}} <!-- |
-->{{translate/strings|languageSwitcher|{{{lang 1}}}}}{{#if:{{{lang 2|}}}|, {{translate/strings|languageSwitcher|{{{lang 2}}}}}{{#if:{{{lang 3|}}}|, {{translate/strings|languageSwitcher|{{{lang 3}}}}}{{#if:{{{lang 4|}}}|, {{translate/strings|languageSwitcher|{{{lang 4}}}}}{{#if:{{{lang 5}}}|, {{translate/strings|languageSwitcher|{{{lang 5}}}}} |}}|}}|}}|}}<!-- | -->{{translate/strings|languageSwitcher|{{{lang 1}}}}}{{#if:{{{lang 2|}}}|, {{translate/strings|languageSwitcher|{{{lang 2}}}}}{{#if:{{{lang 3|}}}|, {{translate/strings|languageSwitcher|{{{lang 3}}}}}{{#if:{{{lang 4|}}}|, {{translate/strings|languageSwitcher|{{{lang 4}}}}}{{#if:{{{lang 5}}}|, {{translate/strings|languageSwitcher|{{{lang 5}}}}} |}}|}}|}}|}}<!-- |
Latest revision as of 11:45, 13 June 2024
Please follow the format on this subpage(s) to add translations.
Usage
This template is used on pages that need its content to be translated.
Parameters
Parameters | Description | Example | Result |
---|---|---|---|
No Parameters | For use when entire pages need to be translated | {{Translate}}
|
This page needs to be translated. This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet. |
{{{1}}} | For articles that may be mostly translated, but may have some incomplete sections. | {{Translate|Example text}}
|
This page needs to be translated. This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet. Example text |
{{{namespaceoverride}}} | Overrides the {{NAMESPACE}} magic word. Can only be Template or blank
|
{{Translate|Example text|namespaceoverride=Article}}
|
This page needs to be translated. This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet. Example text |
{{{lang <1-5>}}} | For use on template pages. Specifies which languages are needed. | {{Translate|Example text|lang 1=zh|lang 2=de|lang 3=ru}}
|
This template needs translations. This template does not contain translations for the following languages:
,
,
Example text |
{{{strings}}} | For use on template pages. Adds some text that links to the template's /strings subpage. Should either he true or blank. Todo: Enable manual linking to a specified strings page
|
{{Translate|Example text|strings=true}}
|
This template needs translations. This template does not contain translations for the most popular languages. Example text |
{{{nocat}}} | Prevents page from being added to the Category:To be translated category. | {{Translate|nocat=1}}
| |
{{{type|finish}}} | For use when pages have been translated but not fully. | {{Translate|type=finish}}
|
This page has not been fully translated.
You can help by finishing the translation. Also, please make sure the article tries to comply with the alternate languages guide. |
{{{type|inprogress}}} | For use when pages that are currently being translated or will be translated soon. | {{Translate|type=inprogress}}
|
This page is being translated.
You can help by finishing the translation. Also, please make sure the article tries to comply with the alternate languages guide. |
{{{type|machine}}} | For use when pages have been translated by a machine (e.g. Google Translate). | {{Translate|type=machine}}
|
This page is Machine translated
It is not recommended to use machine translation without any corrections. If the article is not corrected in the long term, it will be removed. |
{{{type|update}}} | For use when the translated pages hasn't been updated for long time. | {{Translate|type=update}}
|
This translated page needs to be updated.
You can help by updating the translation. Also, please make sure the article tries to comply with the alternate languages guide. |
The above documentation is transcluded from Template:Translate/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this page.