Template:Ent: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-moved documentation to its own page)
(move from {{point ent}})
Line 1: Line 1:
{{lang|Template:Ent}}
{{lang|Template:Ent}}<!--
<onlyinclude><includeonly><code style=padding:0>[[{{{1}}}{{{suf|}}}|{{{alt|{{{1}}}}}}]]{{#if:{{{2|}}}|&nbsp;{{{2}}}|}}</code></includeonly></onlyinclude>
 
--><onlyinclude><includeonly>{{#switch:{{{mode|}}}|entity=<!--
 
-->{{#switch:{{{type|}}}|#default={{#switch:{{lc:{{{internal}}}}}
| 1
| true        =
| #default    = {{main other|[[Category:Non-internal entity{{{suf|}}}]]}}
}}{{#if: {{{sprite|}}}
| [[File:{{#ifeq: {{{sprite}}}
| 1
| {{{1|{{PAGENAME}}}}}.png
| {{{sprite}}}
}}|left|link=]]
}}
|e0
|e2={{main other|[[Category:Non-internal entity{{{suf|}}}]]}}
|e1
|e3={{main other|[[Category:Internal entities{{{suf|}}}]]}}}}<!--
 
-->{{#if:{{{1|}}}|{{#if:{{{notitlechange|}}}||{{DISPLAYTITLE:{{Code|select=1|background=transparent|{{{1|}}}}}|noreplace}}}}{{Code|select=1|<!---->{{{1|}}}<!---->}}|{{#switch:{{{this|}}}|#default={{#switch:{{{suf|}}}|#default={{{this|This}}}|:ru={{{this|Это}}}|:zh-cn={{{this|这}}}}}|0=}} }}<!--
 
-->{{#switch:{{{suf|}}}
|#default=&nbsp;
|:ru=
|:zh-cn=}}<!--
 
-->{{#switch:{{{suf|}}}
              |#default=is a
              |:ru={{#if:{{{1|}}}|- это}}
              |:zh-cn=是一个}}<!--
 
-->{{#switch:{{lc:{{{cut}}}}}
| 1
| true        = cutᅠ&nbsp;[[Category:Cut Entities{{{suf|}}}]]
| #default    =}}<!--
 
-->{{#if:{{{internal|}}}
| [[internal entity|internal]]{{Main other|[[Category:Internal entities{{{suf|}}}]]|}}
}}<!--
 
-->{{#switch:{{{suf|}}}
|#default=&nbsp;
|:zh-cn=}}<!--
 
-->{{#switch:{{{type|}}}
      |#default={{{type|}}}[[point entity|{{#switch:{{{suf|}}}
                                          |#default=point entity
                                          |:es=entidad de punto
                                          |:ru=точечная сущность
                                          |:zh-cn=点实体}}]]
      |e0=[[point entity{{{suf|}}}|{{#switch:{{{suf|}}}
                                          |#default=point entity
                                          |:es=entidad de punto
                                          |:ru=точечная сущность
                                          |:zh-cn=点实体}}]]
      |e1=[[internal entity{{{suf|}}}|{{#switch:{{{suf|}}}
                                          |#default=internal
                                          |:ru=внутренняя
                                          |:zh-cn=内部的}}]]{{#switch:{{{suf|}}}|#default=&nbsp;|:zh-cn=}}[[point entity{{{suf|}}}|{{#switch:{{{suf|}}}|#default=point entity|:ru=точечная сущность|:zh-cn=点实体}}]]
      |e2=[[brush entity{{{suf|}}}|{{#switch:{{{suf|}}}
                                          |#default=brush entity
                                          |:es=entidad de sólido
                                          |:ru=брашевая сущность
                                          |:zh-cn=固实体}}]]
      |e3=[[internal entity{{{suf|}}}|{{#switch:{{{suf|}}}
                                          |#default=internal
                                          |:ru=внутренняя
                                          |:zh-cn=内部的}}]]{{#switch:{{{suf|}}}|#default=&nbsp;|:zh-cn=}}[[brush entity{{{suf|}}}|{{#switch:{{{suf|}}}|#default=brush entity|:ru=брашевая сущность|:zh-cn=固实体}}]]
      |e4=[[mesh entity{{{suf|}}}|{{#switch:{{{suf|}}}
                                          |#default=mesh entity
                                          |:ru=мешевая сущность
                                          |:zh-cn=网格实体}}]]
      |e5=[[path entity{{{suf|}}}|{{#switch:{{{suf|}}}
                                          |#default=path entity
                                          |:zh-cn=路径实体}}]]
    }}{{#switch:{{{suf|}}}
            |#default=&nbsp;available in
            |:ru=, доступная
            |:zh-cn=存在于}}<!--
 
-->{{#switch:{{{suf|}}}
|#default=&nbsp;
|:zh-cn={{#if:{{{game|}}}{{{series|}}}|&nbsp;|}}}}<!--
 
-->{{#switch: {{{series|1}}}
| l4ds
| l4d
| Left 4 Dead={{#switch:{{{suf|}}}|#default=the|:ru=в|:zh-cn=}} {{l4dseries|4|suf={{#switch:{{{suf|}}}|#default=|:zh-cn=:zh-cn}}}}
| #default={{#switch:{{{suf|}}}|#default=the|:ru=в серии игр|:zh-cn=}} [[{{{series}}}]] {{#switch:{{{suf|}}}|#default=series|:ru=|:zh-cn=系列}}
| 1={{#if: {{{seriescs|}}}
  | {{#switch:{{{suf|}}}|#default=the|:ru=в серии игр|:zh-cn=}} [[{{{seriescs}}}]] {{#switch:{{{suf|}}}|#default=series|:ru=|:zh-cn=系列}} <!--
    -->{{#if:{{{game|}}}
    | ({{#switch:{{{suf|}}}|#default=since|:ru=начиная с|:zh-cn=自从}} {{#ifexist:{{{game}}}{{{suf}}}|{{{{game icon name|{{{game}}}}}|4|suf={{{suf|}}}}}|{{{{game icon name|{{{game}}}}}|4}}}}{{#switch:{{{suf|}}}|#default=|:zh-cn=&nbsp;以来}})
    }}
  | {{#if: {{{game|}}}
    | {{#if: {{{icon|}}} | {{{{{icon}}}|3}} | {{#switch:{{{suf|}}}|#default=|:ru=в|:zh-cn=}} {{#ifexist:{{{game}}}{{{suf}}}|{{{{game icon name|{{{game}}}}}|4|suf={{{suf|}}}}}|{{{{game icon name|{{{game}}}}}|4}}}} }}
    | {{#switch:{{{suf|}}}|#default=all|:ru=во всех играх на движке|:zh-cn=所有的}} {{#switch:{{{engine|}}}|#default={{{engine|{{source|4|suf={{{suf|}}}}}}}}
                |1={{gldsrc|4|suf={{{suf|}}}}}
                |2={{source|4|suf={{{suf|}}}}}
                |3={{source2|4|suf={{{suf|}}}}}
            }}{{#switch:{{{suf|}}}
                    |#default=&nbsp;games
                    |:ru=
                    |:zh-cn=&nbsp;游戏}}<!--
      -->{{#if: {{{since|}}}|{{#switch:{{{suf|}}}
                                    |#default=&nbsp;since&nbsp;
                                    |:ru=, начиная с
                                    |:zh-cn=自从&nbsp;}}<!--
            -->{{#switch:{{{since|}}}
                                    |#default={{#ifexist:{{{since}}}{{{suf}}}|{{{{game icon name|{{{since}}}}}|4|suf={{{suf|}}}}}|{{{{game icon name|{{{since}}}}}|4}}}}}}<!--
            -->{{#switch:{{{suf|}}}|#default=|:zh-cn=&nbsp;以来}} }}
    }}
  }}
}}<!--
 
-->{{#switch:{{{suf|}}}
|#default=.
|:zh-cn=。}}<!--
 
-->{{#if: {{{game|}}}
| {{Main other|[[Category:{{{game}}} Entities{{{suf|}}}]]}}
| {{#if: {{{series|}}}
  | {{Main other|[[Category:{{{series}}} Entities{{{suf|}}}]]}}
  | {{#if: {{{seriescs|}}}
    | {{Main other|[[Category:{{{seriescs}}}: Source Entities{{{suf|}}}]]}}
    | {{Main other|[[Category:Source Base Entities{{{suf|}}}]]}}
    }}
  }}
}}<!--
 
-->{{Main other|[[Category:Point Entities{{{suf|}}}]]}}<!--
 
-->|#default=<code style=padding:0>[[{{{1}}}{{{suf|}}}|{{{alt|{{{1}}}}}}]]{{#if:{{{2|}}}|&nbsp;{{{2}}}|}}</code>}}</includeonly></onlyinclude>
{{doc|docpage=Template:Point ent/doc}}
<!-- Add categories to the /doc subpage, not here -->
{{documentation}}
{{documentation}}
[[Category:Formatting templates]]
[[Category:Formatting templates]]

Revision as of 00:21, 23 January 2023

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] [create]
Icon-translate.png Available doc translations
Info.png
The Template:Point ent/doc documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
Template:Point ent/doc
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

This template is a faster and cleaner way of marking text as both a link and code. It should be used only on entity names. See the following for its syntax.

Parameters and Examples

Parameter Description Example Preview
{{{1}}} The entity name should link and show.
{{ent|logic_relay}}
logic_relay
{{{game}}} Game name. Appends ' ({{{game}}})' to the link.
{{ent|player|game=Left 4 Dead series}}
player
{{{engine}}} Engine name. Specifying
  • 0 or goldsrc appends ' (GoldSrc)' to the link
  • 1 or source appends ' (Source)' to the link
  • 2 or source 2 appends ' (Source 2)' to the link
{{ent|func_pushable|engine=goldsrc}}
func_pushable

See also