Template:Translate/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
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 ==
{{Code|<nowiki>{{Translate|<Insert specific section or text>}}</nowiki>}}<br>
This template is used on pages that need its content to be translated.
This template can now specify what sections need to be translated. Simply type after the | to specify which section or text needs to be translated.


==Parameters==
{| class="standard-table plainlinks"
! Parameters
! Description
! Example
! Result
|-
| No Parameters
| For use when entire pages need to he translated
| {{Code|<nowiki>{{Translate}}</nowiki>}}
| {{translate}}
|-
| {{param|1}}
| For articles that may be mostly translated, but may have some incomplete sections
| {{Code|<nowiki>{{Translate|Example text}}</nowiki>}}
| {{translate|example text}}
|-
| {{param|type}}
| For use on template pages. Can only be {{Code|template}} or blank
| {{Code|<nowiki>{{Translate|Example text|type=template}}</nowiki>}}
| {{translate|Example text|type=template}}
|-
| {{param|langs}}
| 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>}}
| {{translate|Example text|type=template|langs=Chinese(zh), Spanish(es), Russian(ru)}}
|-
| {{param|nocat}}
| 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>}}
|}
<includeonly>{{sandbox other||
<includeonly>{{sandbox other||
<!-- Categories below this line, please -->
<!-- Categories below this line, please -->


}}</includeonly>
}}</includeonly>

Revision as of 10:19, 8 May 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.

Usage

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

Parameters