incredible entity

From Valve Developer Community
Revision as of 06:19, 24 January 2023 by REDESAILE (talk | contribs)
Jump to navigation Jump to search
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
Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Number of strings:32
Approximate status of translation:English (en) 96.88% Deutsch (de) 84.38% Español (es) 68.75% Esperanto (eo) 53.13% Suomi (fi) 78.13% Hrvatski (hr) 96.88% Português do Brasil (pt-br) 81.25% Русский (ru) 96.88% Slovenčina (sk) 81.25% 中文 (zh) 84.38% 
Gnome app science.png
This template uses a Testcases subpage
You can test how this page looks with it's different skins and parsers.

This template is the master format page for all Entity, Console command/variable, and Shader pages. Each page should have this at the beginning to describe the basic info about each one, such as what they are and their availability.

Usage

This template is usually written in a single line. To use it, insert {{This is a}} into the desired page and specify the parameters to the right of the template name in the following format: {{This is a|parameter 1 = value|parameter 2 = value}}.

Parameters and Examples

*: Necessary parameters.

Parameter Description Example Preview

*
{{{1}}}

The type of the object need to describe. The following types are available:
Entities:

Console Variables, Commands, QC Commands:

Miscellaneous:

  • Custom (You can specify the type yourself. See examples)
Note.pngNote:Template will not add entity categories when using non-entity type (such as console variable).
{{this is a|''incredible entity''}}
{{this is a|brush entity|engine=GoldSrc|nocat=1}}
{{this is a|console variable|name=sv_cheats|notitlechange=1|nocat=1}}
{{this is a|pixel shader|name=LightmappedGeneric|notitlechange=1|nocat=1}}

incredible entity is a point entity available in all Source Source games.

brush entity is a point entity available in all GoldSrc games.

console variable is a point entity available in all Source Source games.

pixel shader is a point entity available in all Source Source games.

{{{shader}}} {{{shader1}}} ~ {{{shader5}}}

The shader that a parameter is in (only works if {{{1}}} is equal to shader parameter). Extra parameters allow you to specify multiple shaders.
{{this is a|shader parameter|name=$lightmap|shader=VertexLitGeneric|game=Source 2013 Multiplayer|game1=Garry's Mod}}
shader parameter is a point entity available in {{|4}}.

{{{dx}}}

Add DirectX levels inline text. Available versions:

  • DirectX 8 - dx8
  • DirectX 9 (SM 2.0)- dx9
  • DirectX 9.0c (SM 3.0) - dx95 or dx90c
{{this is a|shader parameter|dx=dx8|name=$lightwarptexture|shader=VertexLitGeneric|since=Source 2006}}
{{this is a|shader parameter|dx=dx9|name=$lightwarptexture|shader=VertexLitGeneric|since=Source 2006}}
{{this is a|shader parameter|dx=dx95|name=$lightwarptexture|shader=VertexLitGeneric|since=Source 2006}}

shader parameter is a point entity available in all Source Source gamessince Template:Game name since Source 2006 Source 2006.

shader parameter is a point entity available in all Source Source gamessince Template:Game name since Source 2006 Source 2006.

shader parameter is a point entity available in all Source Source gamessince Template:Game name since Source 2006 Source 2006.

{{{engine}}} {{{engine1}}} {{{engine2}}}

Which engine the subject belongs to.

Icon-Important.pngImportant:To add multiple engines, please use parameter {{{engine1}}} (secondary engine) and {{{engine2}}} (tertiary engine) with {{{engine}}} (primary engine) at the same time.
{{this is a|point entity|engine=GoldSrc|engine1=Source}}
{{this is a|point entity|engine=GoldSrc|engine1=Source|engine2=Source 2}}

point entity is a point entity available in all GoldSrc games.

point entity is a point entity available in all GoldSrc games.

{{{except}}} This is available in all other games except this one.
Note.pngNote:Works without {{{game}}}.
{{this is a|brush entity|name=func_monitor|except=Left 4 Dead series}}
brush entity is a point entity available in all Source Source games except Template:Game name.
{{{since}}}

This is available since this game.

Note.pngNote:Works without {{{game}}}.
{{this is a|point entity|name=info_player_start|engine=GoldSrc|since=Half-Life}}
point entity is a point entity available in all GoldSrc gamessince Template:Game name since Half-Life Half-Life.
{{{name}}} The name of the subject. It will change the title of a page. If unspecified, the sentence will just refer to the subject as "this."
{{this is a|point entity|name=info_player_start}}
point entity is a point entity available in all Source Source games.
{{{this}}} If set to 0, false, etc. then the sentence will not start with the word "this." Has no effect if {{{name}}} has been specified.
{{this is a|point entity|this=false}}
point entity is a point entity available in all Source Source games.
{{{series}}} The series that the subject is available in.
{{this is a|brush entity|series=Counter-Strike}}
brush entity is a point entity available in the Counter-Strike series.
{{{game}}}

The game that the subject is available in.

Note.pngNote:Works without {{{series}}}.
Warning.pngWarning:Do not use short name (such as hl2 instead of Half-Life 2), otherwise the page will be added to Category:Hl2 point entities instead of Category:Half-Life 2 point entities.
{{this is a|path entity|game=Team Fortress 2}}
path entity is a point entity available in Team Fortress 2 Team Fortress 2.
{{{notitlechange}}} You can prevent title-changing from the template by using this parameter. Used in the /doc page.
{{this is a|point entity|notitlechange=1|name=info_player_start|engine=GoldSrc|since=Half-Life}}
point entity is a point entity available in all GoldSrc gamessince Template:Game name since Half-Life Half-Life.
{{{internal}}} If enabled, "cut" will be displayed before "entity" and a category will be added to the page.
{{this is a|entity|internal=1}}
entity is ainternal point entity available in all Source Source games.
{{{semi-internal}}} If enabled, "cut" will be displayed before "entity" and a category will be added to the page.
{{this is a|entity|semi-internal=1}}
entity is a point entity available in all Source Source games.
{{{cut}}} If enabled, "cut" will be displayed before "(internal) ... entity" and a category will be added to the page.
{{this is a|cut=1|internal=1|entity}}
entity is acutᅠ internal point entity available in all Source Source games.
{{{sprite}}}

The icon of the entity:

  • If 1 is specified, the template will find the entity icon file based on the entity name (parameter {{{1}}}). (Follow the format of [[File:<entity name>.png]] to find)
  • If it is a custom value, the template will find the entity icon file according to the specified value.
    Note.pngNote:File suffix name is required!
{{this is a|point entity|name=logic_script|sprite=1}}
point entity is a point entity available in all Source Source games.
{{{icon}}}

Make the game icon appear left-aligned.

  • If 1is specified, the template will use {{{game}}} instead.
  • If it is a custom value, you need to enter the full name of the game. (Case sensitive)
  • If 0 is specified or the parameter is unused, the icon will appears in the text. (See the examples above.)
{{this is a|point entity|name=info_survivor_position|icon=Left 4 Dead series|type=point entity|series=Left 4 Dead}}
point entity is a point entity available in the Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series.
{{{name1}}} ~ {{{name5}}}

If the entity name is similar to another entity and functions the same, like terrorist_team_intro and counterterrorist_team_intro, use these parameters.

Note.pngNote:Once you have used the {{{name1}}}, the style of the template will be changed. The {{{name}}} is necessary for displaying the first name.
{{this is a|point entity|name=terrorist_team_intro|name1=counterterrorist_team_intro|game=Counter-Strike 2}}
point entity is a point entity available in Counter-Strike 2 Counter-Strike 2.
{{{game1}}} ~ {{{game5}}}

If this is available in multiple games, use these parameters to describe.

Note.pngNote:Once you have used the {{{game1}}}, the style of the template will be changed. The {{{game}}} is necessary for displaying the first game.
Note.pngNote:Works without {{{series}}}.
Warning.pngWarning:Do not use short name (such as hl2 instead of Half-Life 2), otherwise the page will be added to Category:Hl2 point entities instead of Category:Half-Life 2 point entities.
{{this is a|point entity|game=Left 4 Dead|game1=Left 4 Dead 2|game2=Portal 2|game3=Team Fortress 2|game4=Portal 2|game5=Counter-Strike: Global Offensive}}
point entity is a point entity available in Left 4 Dead Left 4 Dead.
{{{nocat}}} Don't place any categories.
{{this is a|point entity|name=info_player_start|nocat=1}}
N/A
{{{no-non-int}}} Don't place it in Category:Non-internal {{{in|}}} entities.
{{this is a|point entity|name=info_player_start|no-non-int=1}}
N/A
{{{except-multi}}}

Similar to {{{except}}}, but can specify multiple games simultaneously.

Note.pngNote:Unsupport placing categories.
{{this is a|point entity|name=1|except-multi={{l4d}}{{hl2}}{{csgo}}}}
point entity is a point entity available in all Source Source games.

Components

This template uses components to simplify working with repetitive code. Below is a list of all components included in the template.

Template:Entity