Template:Ent/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Doc/subpage}}
{{Doc/subpage}}
This template is a faster and cleaner way of marking text as both a link and code. Its primary use is on entity names, but it is used on other things too, such as VMT parameters and console commands. See the following for its syntax.
This template is a faster and cleaner way of marking text as both a link and code. Its primary use is on entity names. See the following for its syntax.


== Parameters and Examples ==
== Parameters and Examples ==
Line 29: Line 29:


== See also ==
== See also ==
* {{t|Entity}}
* {{T|cmd}}
* {{t|Point ent}}
* {{t|Base point multi}}
* {{t|Base brush multi}}
* {{t|Game name}}
 


<includeonly>{{sandbox other||
<includeonly>{{sandbox other||
[[Category:Templates]][[Category:Formatting templates]][[Category:Entity Templates]]
[[Category:Templates]][[Category:Formatting templates]][[Category:Entity Templates]]
}}</includeonly>
}}</includeonly>

Revision as of 09:14, 2 September 2024

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. Its primary use is on entity names. See the following for its syntax.

Parameters and Examples

Todo: document {{{eng}}}.
Parameter Description Example Preview
{{{1}}} The entity name should link and show.
{{ent|logic_relay}}
{{{2}}} Optionally, you can specify a second field of text to not be counted as a link.
{{ent|sv_cheats|1}}
{{{alt}}} The entity name should show. Additionally, you can specify {{{alt}}} as a different name to show.
{{ent|Team Fortress 2.fgd|alt=tf.fgd}}

See also