Template:Translate/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Parameter is deprecated)
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 33: 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 40:
| 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>}}
|-
!colspan=4|{{Warning|The following parameter is deprecated. Please update the pages this is used on to not use this parameter, then delete it from the template code!}}
|-
|-
|{{param|type|finish}}
|{{param|type|finish}}

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