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

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Replaced Documentation, translations might be needed again.)
Line 1: Line 1:
<noinclude>{{Uselangflags|en=1|zh-cn=1}}</noinclude>
{{documentation subpage}}
{{autolang|{{Documentation subpage}}|zh-cn={{Documentation subpage:zh-cn}}}}
== Usage ==
<h2>{{autolang|Parameters|zh-cn=参数}}</h2>
{{param|1}} is the name of another article. If {{param|code}} is set, the link will be code-ified.
{{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=''可选''。这是一个后缀,将添加到模板的所有元素中,以所需的语言显示内容(如果已翻译成该语言)。}}
Use {{param|alt}} to change the link text.
:::: {{ModernNote|suf=:{{uilang}}|{{autolang|There should be a colon before the language code, for example ":es".|zh-cn=语言代码前应该有一个冒号,例如“:es”。}}}}


<h2>{{autolang|Examples|zh-cn=示例}}</h2>
== Translations ==
{{Code|<nowiki>{{Entity also in Source 2}}</nowiki>}}
Translations are done using strings subpage, which can be located [[/strings|here]]. Please follow the format to add translations for them.
{{Entity also in Source 2}}
 
 
{{Code|<nowiki>{{Entity also in Source 2|suf=:ru}}</nowiki>}}
{{Entity also in Source 2|suf=:ru}}
 
 
{{Code|<nowiki>{{Entity also in Source 2|suf=:zh-cn}}</nowiki>}}
{{Entity also in Source 2|suf=:zh-cn}}
 
<includeonly>{{sandbox other||
<!-- Categories below this line, please -->
[[Category:Entity Templates]]
}}</includeonly>

Revision as of 08:52, 28 May 2023

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.