Template:Strings subpage
From Valve Developer Community
Revision as of 17:00, 10 January 2024 by Equalizer5118 (talk | contribs)

Subpage of strings

This template (and its redirect) is
Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.
Additional notes:
Use #switch parser function instead. Example

You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.
Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
}}


This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Please follow the format on this subpage(s) to add translations.
A panel indicating that the page it is on contains strings that are used in lieu of complicated #switch parser (or formerly, {{autolang}}(s)) on the base page.
Looking for creating a Strings subpage?
If you are looking for creating a strings subpage, just create a "/strings" subpage, then paste the following code:
{{Strings subpage<!-- Don't forget to update once you add new translation to a strings. -->
|number = 1
| en = 1
| de = 1
| eo = 1
| es = 1
| fi = 1
| fr = 1
| ru = 1
| vi = 1
| zh = 1
}}
* {{{{PAGENAME}}|Example}}
<includeonly><onlyinclude>{{#switch:{{{1}}}<!-- Remember to keep this clean by sorting A-Z, and copy paste the tab space instead of pressing "SPACE" repeatedly. -->
| Example = {{#switch: {{language}}
| #default = Example
| de = Beispiel
| eo = Ekzemplo
| es = Ejemplo
| fi = Esimerkki
| fr = Exemple
| ru = Пример
| vi = Ví dụ
| zh = 示例
}}
}}</onlyinclude></includeonly>
|

Parameters and Examples
Parameter | Description | Example |
---|---|---|
No Parameters | Places the template. | {{Strings subpage}} |
{{{number}}} | Number of strings. | | number = 6 |
{{{<language code>}}} | Number of translated strings into the specified language. | | en = 6 | eo = 3 | he = 2 |
The above documentation is transcluded from Template:Strings subpage/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Hidden category: