Template:Translate/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 23: Line 23:
|-
|-
| {{param|namespaceoverride}}
| {{param|namespaceoverride}}
| Overrides the {{NAMESPACE}} magic word. Can only be {{Code|Template}} or blank
| Overrides the <nowiki>{{NAMESPACE}}</nowiki> magic word. Can only be {{Code|Template}} or blank
| {{Code|<nowiki>{{Translate|Example text|namespaceoverride=Article}}</nowiki>}}
| {{Code|<nowiki>{{Translate|Example text|namespaceoverride=Article}}</nowiki>}}
| {{translate|Example text|namespaceoverride=Article|nocat=1}}
| {{translate|Example text|namespaceoverride=Article|nocat=1}}
|-
|-
| {{param|lang <1-5>}}
| {{param|lang <1-5>}}
| For use with {{code|<nowiki>type=translate</nowiki>}}. Specifies which languages are needed.
| For use on template pages. Specifies which languages are needed.
| {{Code|<nowiki>{{Translate|Example text|type=template|lang 1=zh|lang 2=de|lang 3=ru}}</nowiki>}}
| {{Code|<nowiki>{{Translate|Example text|lang 1=zh|lang 2=de|lang 3=ru}}</nowiki>}}
| {{translate|Example text|type=template|lang 1=zh|lang 2=de|lang 3=ru|nocat=1}}
| {{translate|Example text|lang 1=zh|lang 2=de|lang 3=ru|nocat=1}}
|-
|-
| {{param|strings}}
| {{param|strings}}
| For use with {{code|<nowiki>type=translate</nowiki>}}. Adds some text that links to the template's /strings subpage. Should either he {{code|true}} or blank {{modernTodo|Enable manual linking to a specified strings page}}
| For use on template pages. Adds some text that links to the template's /strings subpage. Should either he {{code|true}} or blank {{Todo|Enable manual linking to a specified strings page}}
| {{Code|<nowiki>{{Translate|Example text|type=template|strings=true}}</nowiki>}}
| {{Code|<nowiki>{{Translate|Example text|strings=true}}</nowiki>}}
| {{Translate|Example text|type=template|strings=true|nocat=1}}
| {{Translate|Example text|strings=true|nocat=1}}
|-
|-
| {{param|nocat}}
| {{param|nocat}}
| Prevents page from being added to the [[:Category:To be translated|Category:To be translated]] category.
| Prevents page from being added to the [[:Category:To be translated|Category:To be translated]] category.
|colspan="2" style=text-align:center;|{{code|<nowiki>{{Translate|nocat=1}}</nowiki>}}
|colspan="2" style=text-align:center;|{{code|<nowiki>{{Translate|nocat=1|namespaceoverride=Template}}</nowiki>}}
|}
|}
<includeonly>{{sandbox other||
<includeonly>{{sandbox other||

Revision as of 10:16, 8 June 2023

Edit-copy.png
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.

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