Template:Ent/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 13: Line 13:
| The entity name should link and show.
| The entity name should link and show.
| {{CodeBlock|<nowiki>{{ent|logic_relay}}</nowiki>}}
| {{CodeBlock|<nowiki>{{ent|logic_relay}}</nowiki>}}
| {{Capsule|{{ent|logic_relay}}}}
| bgcolor="#262626" align="center" | {{ent|logic_relay}}
|-
|-
| align=center |{{Code|{{Param|game}}}}
| align=center |{{Code|{{Param|game}}}}
| Game name. Appends <code>' ({{param|game}})'</code> to the link.
| Game name. Appends <code>' ({{param|game}})'</code> to the link.
| {{CodeBlock|<nowiki>{{ent|player|game=Left 4 Dead series}}</nowiki>}}
| {{CodeBlock|<nowiki>{{ent|player|game=Left 4 Dead series}}</nowiki>}}
| {{Capsule|{{ent|player|game=Left 4 Dead series}}}}
| bgcolor="#262626" align="center" | {{ent|player|game=Left 4 Dead series}}
|-
|-
| align=center |{{Code|{{Param|engine}}}}
| align=center |{{Code|{{Param|engine}}}}
|Engine name. Specifying  
| Engine name. Specifying  
* 0 or goldsrc appends ' (GoldSrc)' to the link
* 0 or goldsrc appends ' (GoldSrc)' to the link
* 1 or source appends ' (Source)' to the link
* 1 or source appends ' (Source)' to the link
* 2 or source 2 appends ' (Source 2)' to the link
* 2 or source 2 appends ' (Source 2)' to the link
|{{CodeBlock|<nowiki>{{ent|func_pushable|engine=goldsrc}}</nowiki>}}
| {{CodeBlock|<nowiki>{{ent|func_pushable|engine=goldsrc}}</nowiki>}}
|{{Capsule|{{ent|func_pushable|engine=goldsrc}}}}
| bgcolor="#262626" align="center" | {{ent|func_pushable|engine=goldsrc}}
|-
|-
|}
|}

Revision as of 05:03, 24 August 2025

Edit-copy.png
This is a documentation subpage for Template:Ent.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

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