Template:Ent: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Use {{code}} instead of <kbd> since template atypically denotes user input; also wrap {{doc}} with <noinclude>)
m (Remove spurious newline)
Line 1: Line 1:
{{code|[[{{{1}}}|{{{alt|{{{1}}}}}}]]{{#if:{{{2|}}}|&nbsp;{{{2}}}|}}}}
{{code|[[{{{1}}}|{{{alt|{{{1}}}}}}]]{{#if:{{{2|}}}|&nbsp;{{{2}}}|}}}}<noinclude>
<noinclude>
{{doc}}
{{doc}}
</noinclude>
</noinclude>

Revision as of 03:50, 3 April 2023

[[{{{1}}}|{{{1}}}]]

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