Template:Ent: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(adding a new feature to this template and documentation) |
||
Line 1: | Line 1: | ||
<code>[[{{{1}}}]]</code> | <noinclude>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. | ||
The syntax is simple. <code><nowiki>{{ent|logic_relay}}</nowiki></code> would return as {{ent|logic_relay}}. | |||
Optionally, you can specify a second field of text to not be counted as a link. | |||
<code><nowiki>{{ent|sv_cheats|1}}</nowiki></code> would give you {{ent|sv_cheats|1}}.<br></noinclude><code>[[{{{1}}}]]{{{2}}}</code> |
Revision as of 08:01, 15 July 2018
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.
The syntax is simple. {{ent|logic_relay}}
would return as logic_relay{{{2}}}
.
Optionally, you can specify a second field of text to not be counted as a link.
{{ent|sv_cheats|1}}
would give you sv_cheats1
.[[{{{1}}}]]{{{2}}}