Template:Ent: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(readability)
No edit summary
Line 10: Line 10:
| {{Code
| {{Code
  | preset = 1  
  | preset = 1  
  | [[ {{langprefix}}{{{1}}}{{
  | [[{{langprefix}}{{{1}}}{{
#switch: {{lc:{{{engine|}}}{{{eng|}}}}}
#switch: {{lc:{{{engine|}}}{{{eng|}}}}}
| 0 | goldsrc =  (GoldSrc)
| 0 | goldsrc =  (GoldSrc)
| 1 | source =  (Source)
| 1 | source =  (Source)
| 2 | source2 =  (Source 2)
| 2 | source2 =  (Source 2)
}} | {{{alt|{{{1}}}}}} ]]{{#if: {{{2|}}} |  {{{2}}}|}}
}}|{{{alt|{{{1}}}}}}]]{{#if: {{{2|}}} |  {{{2}}}}}
}}
}}



Revision as of 07:20, 31 July 2024

Merge-arrows.png
It has been suggested that this article or section be merged with template:command. (Discuss)
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