Template:Translate/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 15: | Line 15: | ||
| 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|nocat=1}} | | {{translate|nocat=1|namespaceoverride=Article}} | ||
|- | |- | ||
| {{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|Example text|nocat=1}} | | {{translate|Example text|nocat=1|namespaceoverride=Article}} | ||
|- | |- | ||
| {{param| | | {{param|namespaceoverride}} | ||
| | | Overrides the {{NAMESPACE}} magic word. Can only be {{Code|Template}} or blank | ||
| {{Code|<nowiki>{{Translate|Example text| | | {{Code|<nowiki>{{Translate|Example text|namespaceoverride=Article}}</nowiki>}} | ||
| {{translate|Example text| | | {{translate|Example text|namespaceoverride=Article|nocat=1}} | ||
|- | |- | ||
| {{param|lang <1-5>}} | | {{param|lang <1-5>}} |
Revision as of 10:10, 8 June 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.
The strings used on this page can be found on the Template:Translate/doc/strings subpage. Please follow the formatting there to add translations or new content.
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 page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet. If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted. 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 page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet. If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted. Also, please make sure the article complies with the alternate languages guide. The following content or section specifically needs to be translated: Example text |
{{{namespaceoverride}}} | Overrides the Template 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. If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted. Also, please make sure the article complies with the alternate languages guide. The following content or section specifically needs to be translated: Example text |
{{{lang <1-5>}}} | For use with type=translate. Specifies which languages are needed. | {{Translate|Example text|type=template|lang 1=zh|lang 2=de|lang 3=ru}} | ![]() This template needs translations.
This template does not contain translations for the following 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 |
{{{strings}}} | For use with type=translate. Adds some text that links to the template's /strings subpage. Should either he true or blank Template:ModernTodo | {{Translate|Example text|type=template|strings=true}} | ![]() 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 template's /strings subpage or 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}} |