Template:Translate/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎top: clean up, replaced: {{Documentation subpage → {{Doc/subpage)
Line 4: Line 4:
This template is used on pages that need its content to be translated.
This template is used on pages that need its content to be translated.


==Parameters==
==Parameters==                                   <!-- requested to merge: Finish Translation, Translating, Machine Translation; since june 8 2023 ; -->
{| class="standard-table plainlinks"
{| class="standard-table plainlinks"
! Parameters
! Parameters
Line 12: Line 12:
|-
|-
| No Parameters
| No Parameters
| For use when entire pages need to he translated
| For use when entire pages need to be translated
| {{Code|<nowiki>{{Translate}}</nowiki>}}
| {{Code|<nowiki>{{Translate}}</nowiki>}}
| {{translate|nocat=1|namespaceoverride=Article}}
| {{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|namespaceoverride=Article}}
| {{translate|Example text|nocat=1|namespaceoverride=Article}}
Line 32: Line 32:
|-
|-
| {{param|strings}}
| {{param|strings}}
| 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}}
| 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|strings=true}}</nowiki>}}
| {{Code|<nowiki>{{Translate|Example text|strings=true}}</nowiki>}}
| {{Translate|Example text|strings=true|nocat=1}}
| {{Translate|Example text|strings=true|nocat=1}}
|-
|-
| {{param|nocat}}
|height="50px" | {{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}}</nowiki>}}
|-
|No Parameters
|For use when pages have been translated but not fully.
|{{Code|<nowiki>{{Finishtranslation}}</nowiki>}}
|{{Finishtranslation|nocat=1}}
|-
|No Parameters
|For use when pages that are currently being translated or will be translated soon.
|{{Code|<nowiki>{{Translating}}</nowiki>}}
|{{Translating|nocat=1}}
|-
|No Parameters
|For use when pages have been translated my a machine (e.g. Google Translate).
|{{Code|<nowiki>{{Machine Translation}}</nowiki>}}
|{{Machine Translation|nocat=1}}
|}
|}
<includeonly>{{sandbox other||
<includeonly>{{sandbox other||

Revision as of 16:51, 13 January 2024

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.

Usage

This template is used on pages that need its content to be translated.

Parameters