Template:Entity also in Source 2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Updated design.)
(Using code from the Template:Entity also in Source (and GoldSrc).)
Line 1: Line 1:
<noinclude>{{Uselangflags|en=1|zh-cn=1}}</noinclude><onlyinclude><includeonly>{{messagebox
{{uselangflags|en=1|eo=1|vi=1|zh=1}}
|text = {{#switch:{{{suf|}}}|#default=This entity is also available as|:ru=Данная сущность также доступна как|:zh-cn=该实体也以}} {{#If:{{{1|}}}|[[{{{1}}} (Source 2)]]|[[{{PAGENAME}} (Source 2)]]}} {{#switch:{{{suf|}}}|#default=for the {{source2|4}} engine|:ru=для движка {{source2|4}}|:zh-cn=存在于 {{source2|4|suf=:zh-cn}}}}{{#switch:{{{suf|}}}|#default=.|:zh-cn=。}}
<onlyinclude>{{messagebox
|image = [[File:Source-2-logo-white.png|40px|link=]]
|text = {{Entity also in Source/strings|Available}} <!--
indent-->{{#if: {{{code|}}}| {{ent|{{{1}}}|{{{alt|}}}}} |<!--if code is set, calls Ent; alt gets ignored if blank
-->[[{{{1}}}|{{{alt|{{{1}}}}}}]] }}<!--if code isn't set, it's a normal link; if alt isn't set, it defaults to 1 (the parameter)
--> {{Entity also in Source/strings|ForSource2}}
|image = [[File:Source-2-logo-white.png|64px|link=]]
|bdcolor = #ffbb00
|bdcolor = #ffbb00
|bdcolor2 = #ffbb00
|bdcolor2 = #ffbb00
|txtcolor = #FFF
|bgcolor = #402f00
|bgcolor = #402f00
|txtcolor = #FFF
|style = border: 2px #ffbb00 solid;{{border-radius|4px}}
|style = border: 2px #ffbb00 solid;{{border-radius|4px}}
}}</includeonly></onlyinclude>{{autolang|{{documentation}}|zh-cn={{documentation:zh-cn}}}}
}}</onlyinclude>[[Category:Notice templates|{{PAGENAME}}]]
{{doc}}

Revision as of 08:52, 28 May 2023

English (en)Esperanto (eo)Tiếng Việt (vi)中文 (zh)
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

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.