Template:Strings subpage/doc/zh: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Doc/subpage}}
{{Doc/subpage}}
<!-- Please place categories where indicated at the bottom of this page.) -->
<onlyinclude>
一个面板,指示此页面包含模板或其他任何位置中使用的各种可翻译字符串。
一个面板,指示此页面包含模板或其他任何位置中使用的各种可翻译字符串。
== 寻找创建字符串子页面的方法? ==
== 寻找创建字符串子页面的方法? ==
Line 63: Line 63:
<!-- Categories below this line, please -->
<!-- Categories below this line, please -->
[[Category:Templates]]
[[Category:Templates]]
}}
}}</onlyinclude>

Revision as of 06:34, 10 May 2024

Edit-copy.png
This is a documentation subpage for Template:Strings subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

一个面板,指示此页面包含模板或其他任何位置中使用的各种可翻译字符串。

寻找创建字符串子页面的方法?

如果你想创建一个字符串子页面,只需创建一个 "/strings" 子页面,然后粘贴以下代码:

查看代码
{{Strings subpage |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 = {{Autolang | Example | de = Beispiel | eo = Ekzemplo | es = Ejemplo | fi = Esimerkki | fr = Exemple | ru = Пример | vi = Ví dụ | zh = 示例 }} }}</onlyinclude></includeonly>
Note.png注意:(非必需),但是当你添加新的语言时,建议按照语言代码从 A 到 Z 排序。

参数和示例

参数 描述 示例
无参数 放置模板。
{{Strings subpage}}
{{{number}}} 字符串的数量。
| number = 6
{{{<语言代码>}}} 指定语言的翻译字符串数量。
| en = 6
| eo = 3
| he = 2

创建新的字符串子页面时,点击文档框右上角的三个点,然后点击“字符串”。这将创建一个新的字符串子页面,并自动应用适当的格式。当然,这并非必需,如果你愿意,也可以从头开始创建一个新的。