Template:Translate/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 14: | Line 14: | ||
| For use when entire pages need to he translated | | For use when entire pages need to he translated | ||
| {{Code|<nowiki>{{Translate}}</nowiki>}} | | {{Code|<nowiki>{{Translate}}</nowiki>}} | ||
| {{translate}} | | {{translate|nocat=1}} | ||
|- | |- | ||
| {{param|1}} | | {{param|1}} | ||
| For articles that may be mostly translated, but may have some incomplete sections | | For articles that may be mostly translated, but may have some incomplete sections | ||
| {{Code|<nowiki>{{Translate|Example text}}</nowiki>}} | | {{Code|<nowiki>{{Translate|Example text}}</nowiki>}} | ||
| {{translate| | | {{translate|Example text|nocat=1}} | ||
|- | |- | ||
| {{param|type}} | | {{param|type}} | ||
| For use on template pages. Can only be {{Code|template}} or blank | | For use on template pages. Can only be {{Code|template}} or blank | ||
| {{Code|<nowiki>{{Translate|Example text|type=template}}</nowiki>}} | | {{Code|<nowiki>{{Translate|Example text|type=template}}</nowiki>}} | ||
| {{translate|Example text|type=template}} | | {{translate|Example text|type=template|nocat=1}} | ||
|- | |- | ||
| {{param|langs}} | | {{param|langs}} | ||
| For use with {{code|<nowiki>type=translate</nowiki>}}. Specifies which languages are needed. | | For use with {{code|<nowiki>type=translate</nowiki>}}. Specifies which languages are needed. | ||
| {{Code|<nowiki>{{Translate|Example text|type=template|langs=Chinese(zh), Spanish(es), Russian(ru)}}</nowiki>}} | | {{Code|<nowiki>{{Translate|Example text|type=template|langs=Chinese(zh), Spanish(es), Russian(ru)}}</nowiki>}} | ||
| {{translate|Example text|type=template|langs=Chinese(zh), Spanish(es), Russian(ru)}} | | {{translate|Example text|type=template|langs=Chinese(zh), Spanish(es), Russian(ru)|nocat=1}} | ||
|- | |- | ||
| {{param|nocat}} | | {{param|nocat}} |
Revision as of 10:22, 8 May 2023

This is a documentation subpage for Template:Translate.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
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 he translated | {{Translate}} | ![]() This template needs translations.
This template does not contain translations for the most popular languages. If you are fluent in one of these languages, please help out by translating the text inside this template. This can be done by using the {{language}} template where appropriate. Also, please make sure the article complies with the alternate languages guide. |
{{{1}}} | For articles that may be mostly translated, but may have some incomplete sections | {{Translate|Example text}} | ![]() This template needs translations.
This template does not contain translations for the most popular languages. If you are fluent in one of these languages, please help out by translating the text inside this template. This can be done by using the {{language}} template where appropriate. Also, please make sure the article complies with the alternate languages guide. The following content or section specifically needs to be translated: Example text |
{{{type}}} | For use on template pages. Can only be template or blank | {{Translate|Example text|type=template}} | ![]() This template needs translations.
This template does not contain translations for the most popular languages. If you are fluent in one of these languages, please help out by translating the text inside this template. This can be done by using the {{language}} template where appropriate. Also, please make sure the article complies with the alternate languages guide. The following content or section specifically needs to be translated: Example text |
{{{langs}}} | For use with type=translate. Specifies which languages are needed. | {{Translate|Example text|type=template|langs=Chinese(zh), Spanish(es), Russian(ru)}} | ![]() This template needs translations.
This template does not contain translations for the most popular languages. If you are fluent in one of these languages, please help out by translating the text inside this template. This can be done by using the {{language}} template where appropriate. Also, please make sure the article complies with the alternate languages guide. The following content or section specifically needs to be translated: Example text |
{{{nocat}}} | Prevents page from being added to the Category:To be translated category. | {{Translate|nocat=1}} |