Template:Entity also in Source 2/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(multiple language support)
m (→‎top: clean up, replaced: {{documentation subpage → {{Doc/subpage)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<h2>{{autolang|Parameters|zh-cn=参数}}</h2>
{{Doc/subpage}}
{{param|suf}} - {{autolang|''Optional''. This is a suffix that will be added to all elements of the template to display the content in the desired language (if it is translated into it).|zh-cn=''可选''。这是一个后缀,将添加到模板的所有元素中,以所需的语言显示内容(如果已翻译成该语言)。}}
== Usage ==
:::: {{ModernNote|suf=:{{uilang}}|{{autolang|There should be a colon before the language code, for example ":es".|zh-cn=语言代码前应该有一个冒号,例如“:es”。}}}}
{{param|1}} is the name of another article. If {{param|code}} is set, the link will be code-ified.
Use {{param|alt}} to change the link text.


<h2>{{autolang|Examples|zh-cn=示例}}</h2>
== Translations ==
{{MdCode|<nowiki>{{Entity also in Source 2}}</nowiki>}}
Translations are done using strings subpage, which can be located [[Template:Entity_also_in_Source/strings|here]]. Please follow the format to add translations for them.
{{Entity also in Source 2}}
 
 
{{MdCode|<nowiki>{{Entity also in Source 2|suf=:ru}}</nowiki>}}
{{Entity also in Source 2|suf=:ru}}
 
 
{{MdCode|<nowiki>{{Entity also in Source 2|suf=:zh-cn}}</nowiki>}}
{{Entity also in Source 2|suf=:zh-cn}}

Latest revision as of 02:15, 12 January 2024

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

Usage

{{{1}}} is the name of another article. If {{{code}}} is set, the link will be code-ified. Use {{{alt}}} to change the link text.

Translations

Translations are done using strings subpage, which can be located here. Please follow the format to add translations for them.