Template:Translate/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<!-- Please place categories where indicated at the bottom of this page.) -->
<!-- Please place categories where indicated at the bottom of this page.) -->
== Usage ==
== Usage ==
{{todo|document all the type shortcuts}}
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.


Line 32: Line 33:
|-
|-
| {{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 be {{code|true}} or blank.<br>If set to true you can specify a link using {{param|link}} parameter.
| {{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}}
Line 40: Line 41:
|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
|{{param|type|finish}}
|For use when pages have been translated but not fully.
|For use when pages have been translated but not fully.
|{{Code|<nowiki>{{Finishtranslation}}</nowiki>}}
|{{Code|<nowiki>{{Translate|type=finish}}</nowiki>}}
|{{Finishtranslation|nocat=1}}
|{{translate|type=finish|nocat=1}}
|-
|-
|No Parameters
|{{param|type|inprogress}}
|For use when pages that are currently being translated or will be translated soon.
|For use when pages that are currently being translated or will be translated soon.
|{{Code|<nowiki>{{Translating}}</nowiki>}}
|{{Code|<nowiki>{{Translate|type=inprogress}}</nowiki>}}
|{{Translating|nocat=1}}
|{{translate|type=inprogress|nocat=1}}
|-
|-
|No Parameters
|{{param|type|machine}}
|For use when pages have been translated by a machine (e.g. Google Translate).
|For use when pages have been translated by a machine (e.g. Google Translate).
|{{Code|<nowiki>{{Machine Translation}}</nowiki>}}
|{{Code|<nowiki>{{Translate|type=machine}}</nowiki>}}
|{{Machine Translation|nocat=1}}
|{{Translate|type=machine|nocat=1}}
|-
|-
|No Parameters
|{{param|type|update}}
|For use when the translated pages hasn't been updated for long time.
|For use when the translated pages hasn't been updated for long time.
|{{Code|<nowiki>{{Updatetranslation}}</nowiki>}}
|{{Code|<nowiki>{{Translate|type=update}}</nowiki>}}
|{{Machine Translation|nocat=1}}
|{{Translate|type=update|nocat=1}}
|}
|}
<includeonly>{{sandbox other||
<includeonly>{{sandbox other||

Latest revision as of 07:11, 22 August 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

Todo: document all the type shortcuts

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

Parameters