Template:This is a/doc: Difference between revisions
Jump to navigation
Jump to search
Note:Previews are placed in full-width rows for better readability.
No edit summary |
(→Parameters and Examples: Lot better when the preview is on a separate column.) |
||
| Line 3: | Line 3: | ||
== Parameters and Examples == | == Parameters and Examples == | ||
<strong style=color:rgb(255,255,0)>'''<nowiki>*</nowiki>'''</strong>: Necessary parameters.</sub> | <strong style="color:rgb(255,255,0)">'''<nowiki>*</nowiki>'''</strong>: Necessary parameters.</sub> | ||
{{Note|Previews are placed in full-width rows for better readability.}} | |||
{| class=standard-table | style="width:100%;" | {| class=standard-table | style="width:100%;" | ||
| Line 10: | Line 12: | ||
! width="45%" | Description | ! width="45%" | Description | ||
! Example | ! Example | ||
|- | |- | ||
|align="center"|<strong style=color:rgb(255,255,0)>'''<nowiki>*</nowiki>'''</strong>{{Code|preset=2|{{param|1}}}} | |align="center"|<strong style="color:rgb(255,255,0)">'''<nowiki>*</nowiki>'''</strong>{{Code|preset=2|{{param|1}}}} | ||
| The type of the object need to describe. The following types are available:<br> | | The type of the object need to describe. The following types are available:<br> | ||
'''Entities:''' | '''Entities:''' | ||
| Line 35: | Line 36: | ||
{{CodeBlock|<nowiki>{{this is a|console variable|name=sv_cheats}}</nowiki>}} | {{CodeBlock|<nowiki>{{this is a|console variable|name=sv_cheats}}</nowiki>}} | ||
{{CodeBlock|<nowiki>{{this is a|pixel shader|name=LightmappedGeneric}}</nowiki>}} | {{CodeBlock|<nowiki>{{this is a|pixel shader|name=LightmappedGeneric}}</nowiki>}} | ||
| | |- | ||
{{Capsule|style=2|margin=5px|{{this is a|''incredible entity''}}}} | | colspan=3 style="background-color: #2f2f2f" |{{Capsule|style=2|margin=5px|{{this is a|''incredible entity''}}}} | ||
{{Capsule|style=2|margin=5px|{{this is a|brush entity|engine=GoldSrc|nocat=1}}}} | {{Capsule|style=2|margin=5px|{{this is a|brush entity|engine=GoldSrc|nocat=1}}}} | ||
{{Capsule|style=2|margin=5px|{{this is a|console variable|name=sv_cheats|notitlechange=1|nocat=1}}}} | {{Capsule|style=2|margin=5px|{{this is a|console variable|name=sv_cheats|notitlechange=1|nocat=1}}}} | ||
| Line 44: | Line 45: | ||
| The shader that a parameter is in (only works if {{param|1}} is equal to {{code|shader parameter}}). Extra parameters allow you to specify multiple shaders. | | The shader that a parameter is in (only works if {{param|1}} is equal to {{code|shader parameter}}). Extra parameters allow you to specify multiple shaders. | ||
| {{CodeBlock|<nowiki>{{this is a|shader parameter|name=$lightmap|shader=VertexLitGeneric|game=Source 2013 Multiplayer|game1=Garry's Mod}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|shader parameter|name=$lightmap|shader=VertexLitGeneric|game=Source 2013 Multiplayer|game1=Garry's Mod}}</nowiki>}} | ||
| {{Capsule|style=2|margin=5px|{{this is a|shader parameter|name=$lightmap|shader=VertexLitGeneric|game=Source 2013 Multiplayer|game1=Garry's Mod|notitlechange=1|nocat=1}} }} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|margin=5px|{{this is a|shader parameter|name=$lightmap|shader=VertexLitGeneric|game=Source 2013 Multiplayer|game1=Garry's Mod|notitlechange=1|nocat=1}} }} | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|dx}}}} | |align="center"|{{Code|preset=2|{{param|dx}}}} | ||
| Line 52: | Line 54: | ||
* DirectX 9 (SM 2.0)- {{code|dx9}} | * DirectX 9 (SM 2.0)- {{code|dx9}} | ||
* DirectX 9.0c (SM 3.0) - {{code|dx95}} or {{code|dx90c}} | * DirectX 9.0c (SM 3.0) - {{code|dx95}} or {{code|dx90c}} | ||
| {{CodeBlock|<nowiki>{{this is a|shader parameter|dx=dx8|name=$lightwarptexture|shader=VertexLitGeneric|since=Source 2006}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|shader parameter|dx=dx8|name=$lightwarptexture|shader=VertexLitGeneric|since=Source 2006}}</nowiki>}} | ||
{{CodeBlock|<nowiki>{{this is a|shader parameter|dx=dx9|name=$lightwarptexture|shader=VertexLitGeneric|since=Source 2006}}</nowiki>}} | |||
{{CodeBlock|<nowiki>{{this is a|shader parameter|dx=dx95|name=$lightwarptexture|shader=VertexLitGeneric|since=Source 2006}}</nowiki>}} | |||
| {{Capsule|style=2|margin=5px|{{this is a|shader parameter|dx=dx8|name=$lightwarptexture|shader=VertexLitGeneric|since=Source 2006|notitlechange=1|nocat=1}} }} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|margin=5px|{{this is a|shader parameter|dx=dx8|name=$lightwarptexture|shader=VertexLitGeneric|since=Source 2006|notitlechange=1|nocat=1}} }} | |||
{{Capsule|style=2|margin=5px|{{this is a|shader parameter|dx=dx9|name=$lightwarptexture|shader=VertexLitGeneric|since=Source 2006|notitlechange=1|nocat=1}} }} | |||
{{Capsule|style=2|margin=5px|{{this is a|shader parameter|dx=dx95|name=$lightwarptexture|shader=VertexLitGeneric|since=Source 2006|notitlechange=1|nocat=1}} }} | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|engine}}}}<br>{{Code|preset=2|{{param|engine1}}}}<br>{{Code|preset=2|{{param|engine2}}}} | |align="center"|{{Code|preset=2|{{param|engine}}}}<br>{{Code|preset=2|{{param|engine1}}}}<br>{{Code|preset=2|{{param|engine2}}}} | ||
| Line 69: | Line 72: | ||
{{CodeBlock|<nowiki>{{this is a|point entity|engine=GoldSrc|engine1=Source}}</nowiki>}} | {{CodeBlock|<nowiki>{{this is a|point entity|engine=GoldSrc|engine1=Source}}</nowiki>}} | ||
{{CodeBlock|<nowiki>{{this is a|point entity|engine=GoldSrc|engine1=Source|engine2=Source 2}}</nowiki>}} | {{CodeBlock|<nowiki>{{this is a|point entity|engine=GoldSrc|engine1=Source|engine2=Source 2}}</nowiki>}} | ||
| | |- | ||
{{Capsule|style=2|margin=5px|{{this is a|point entity|engine=GoldSrc|engine1=Source|nocat=1}}}} | | colspan=3 style="background-color: #2f2f2f" |{{Capsule|style=2|margin=5px|{{this is a|point entity|engine=GoldSrc|engine1=Source|nocat=1}}}} | ||
{{Capsule|style=2|margin=5px|{{this is a|point entity|engine=GoldSrc|engine1=Source|engine2=Source 2|nocat=1}}}} | {{Capsule|style=2|margin=5px|{{this is a|point entity|engine=GoldSrc|engine1=Source|engine2=Source 2|nocat=1}}}} | ||
|- | |- | ||
| Line 76: | Line 79: | ||
| This is available in all other games except this one. {{Note|Works without {{Code|preset=2|{{param|game}}}}.}} | | This is available in all other games except this one. {{Note|Works without {{Code|preset=2|{{param|game}}}}.}} | ||
| {{CodeBlock|<nowiki>{{this is a|brush entity|name=func_monitor|except=Left 4 Dead series}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|brush entity|name=func_monitor|except=Left 4 Dead series}}</nowiki>}} | ||
| {{Capsule|style=2|margin=5px|{{this is a|brush entity|name=func_monitor|notitlechange=1|except=Left 4 Dead series|nocat=1}}}} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|margin=5px|{{this is a|brush entity|name=func_monitor|notitlechange=1|except=Left 4 Dead series|nocat=1}}}} | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|since}}}} | |align="center"|{{Code|preset=2|{{param|since}}}} | ||
| This is available since this game. {{Note|Works without {{Code|preset=2|{{param|game}}}}.}} | | This is available since this game. {{Note|Works without {{Code|preset=2|{{param|game}}}}.}} | ||
| {{CodeBlock|<nowiki>{{this is a|point entity|name=info_player_start|engine=GoldSrc|since=Half-Life}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|point entity|name=info_player_start|engine=GoldSrc|since=Half-Life}}</nowiki>}} | ||
| {{Capsule|style=2|margin=5px|{{this is a|point entity|name=info_player_start|notitlechange=1|engine=GoldSrc|since=Half-Life|nocat=1}}}} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|margin=5px|{{this is a|point entity|name=info_player_start|notitlechange=1|engine=GoldSrc|since=Half-Life|nocat=1}}}} | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|name}}}} | |align="center"|{{Code|preset=2|{{param|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." | | 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." | ||
| {{CodeBlock|<nowiki>{{this is a|point entity|name=info_player_start}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|point entity|name=info_player_start}}</nowiki>}} | ||
| {{Capsule|style=2|margin=5px|{{this is a|point entity|name=info_player_start|notitlechange=1|nocat=1}}}} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|margin=5px|{{this is a|point entity|name=info_player_start|notitlechange=1|nocat=1}}}} | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|this}}}} | |align="center"|{{Code|preset=2|{{param|this}}}} | ||
| If set to 0, false, etc. then the sentence will not start with the word "this." Has no effect if {{param|name}} has been specified. | | If set to 0, false, etc. then the sentence will not start with the word "this." Has no effect if {{param|name}} has been specified. | ||
| {{CodeBlock|<nowiki>{{this is a|point entity|this=false}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|point entity|this=false}}</nowiki>}} | ||
| {{Capsule|style=2|margin=5px|{{this is a|point entity|this=false|notitlechange=1|nocat=1}}}} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|margin=5px|{{this is a|point entity|this=false|notitlechange=1|nocat=1}}}} | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|series}}}} | |align="center"|{{Code|preset=2|{{param|series}}}} | ||
| The series that the subject is available in. | | The series that the subject is available in. | ||
| {{CodeBlock|<nowiki>{{this is a|brush entity|series=Counter-Strike}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|brush entity|series=Counter-Strike}}</nowiki>}} | ||
| {{Capsule|style=2|margin=5px|{{this is a|brush entity|series=Counter-Strike|nocat=1}}}} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|margin=5px|{{this is a|brush entity|series=Counter-Strike|nocat=1}}}} | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|game}}}} | |align="center"|{{Code|preset=2|{{param|game}}}} | ||
| The game that the subject is available in. {{Note|Works without {{Code|preset=2|{{param|series}}}}.{{Warning|Do not use short name (such as {{code|hl2}} instead of {{code|Half-Life 2}}), otherwise the page will be added to [[:Category:Hl2 point entities]] instead of [[:Category:Half-Life 2 point entities]].}}}} | | The game that the subject is available in. {{Note|Works without {{Code|preset=2|{{param|series}}}}.{{Warning|Do not use short name (such as {{code|hl2}} instead of {{code|Half-Life 2}}), otherwise the page will be added to [[:Category:Hl2 point entities]] instead of [[:Category:Half-Life 2 point entities]].}}}} | ||
| {{CodeBlock|<nowiki>{{this is a|path entity|game=Team Fortress 2}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|path entity|game=Team Fortress 2}}</nowiki>}} | ||
| {{Capsule|style=2|margin=5px|{{this is a|path entity|game=Team Fortress 2|nocat=1}}}} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|margin=5px|{{this is a|path entity|game=Team Fortress 2|nocat=1}}}} | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|notitlechange}}}} | |align="center"|{{Code|preset=2|{{param|notitlechange}}}} | ||
| You can prevent title-changing from the template by using this parameter. Used in the {{Code|/doc}} page. | | You can prevent title-changing from the template by using this parameter. Used in the {{Code|/doc}} page. | ||
| {{CodeBlock|<nowiki>{{this is a|point entity|notitlechange=1|name=info_player_start|engine=GoldSrc|since=Half-Life}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|point entity|notitlechange=1|name=info_player_start|engine=GoldSrc|since=Half-Life}}</nowiki>}} | ||
| {{Capsule|style=2|margin=5px|{{this is a|point entity|notitlechange=1|name=info_player_start|engine=GoldSrc|since=Half-Life|nocat=1}}}} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|margin=5px|{{this is a|point entity|notitlechange=1|name=info_player_start|engine=GoldSrc|since=Half-Life|nocat=1}}}} | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|internal}}}} | |align="center"|{{Code|preset=2|{{param|internal}}}} | ||
|If enabled, "cut" will be displayed before "entity" and a category will be added to the page. | |If enabled, "cut" will be displayed before "entity" and a category will be added to the page. | ||
|{{CodeBlock|<nowiki>{{this is a|entity|internal=1}}</nowiki>}} | |{{CodeBlock|<nowiki>{{this is a|entity|internal=1}}</nowiki>}} | ||
|{{Capsule|style=2|margin=5px|{{this is a|entity|internal=1|nocat=1}}}} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|margin=5px|{{this is a|entity|internal=1|nocat=1}}}} | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|semi-internal}}}} | |align="center"|{{Code|preset=2|{{param|semi-internal}}}} | ||
|If enabled, "cut" will be displayed before "entity" and a category will be added to the page. | |If enabled, "cut" will be displayed before "entity" and a category will be added to the page. | ||
|{{CodeBlock|<nowiki>{{this is a|entity|semi-internal=1}}</nowiki>}} | |{{CodeBlock|<nowiki>{{this is a|entity|semi-internal=1}}</nowiki>}} | ||
|{{Capsule|style=2|margin=5px|{{this is a|entity|semi-internal=1|nocat=1}}}} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|margin=5px|{{this is a|entity|semi-internal=1|nocat=1}}}} | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|cut}}}} | |align="center"|{{Code|preset=2|{{param|cut}}}} | ||
|If enabled, "cut" will be displayed before "(internal) ... entity" and a category will be added to the page. | |If enabled, "cut" will be displayed before "(internal) ... entity" and a category will be added to the page. | ||
|{{CodeBlock|<nowiki>{{this is a|cut=1|internal=1|entity}}</nowiki>}} | |{{CodeBlock|<nowiki>{{this is a|cut=1|internal=1|entity}}</nowiki>}} | ||
|{{Capsule|style=2|margin=5px|{{this is a|cut=1|internal=1|entity|nocat=1}}}} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|margin=5px|{{this is a|cut=1|internal=1|entity|nocat=1}}}} | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|sprite}}}} | |align="center"|{{Code|preset=2|{{param|sprite}}}} | ||
| Line 128: | Line 141: | ||
*If it is a custom value, the template will find the entity icon file according to the specified value. {{Note|File suffix name is required!}} | *If it is a custom value, the template will find the entity icon file according to the specified value. {{Note|File suffix name is required!}} | ||
|{{CodeBlock|<nowiki>{{this is a|point entity|name=logic_script|sprite=1}}</nowiki>}} | |{{CodeBlock|<nowiki>{{this is a|point entity|name=logic_script|sprite=1}}</nowiki>}} | ||
|{{Capsule|style=2|margin=5px|{{this is a|point entity|name=logic_script|sprite=1|notitlechange=1|nocat=1}}}} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|margin=5px|{{this is a|point entity|name=logic_script|sprite=1|notitlechange=1|nocat=1}}}} | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|icon}}}} | |align="center"|{{Code|preset=2|{{param|icon}}}} | ||
| Line 136: | Line 150: | ||
*If {{Code|0}} is specified or the parameter is unused, the icon will appears in the text. (See the examples above.) | *If {{Code|0}} is specified or the parameter is unused, the icon will appears in the text. (See the examples above.) | ||
|{{CodeBlock|<nowiki>{{this is a|point entity|name=info_survivor_position|icon=Left 4 Dead series|type=point entity|series=Left 4 Dead}}</nowiki>}} | |{{CodeBlock|<nowiki>{{this is a|point entity|name=info_survivor_position|icon=Left 4 Dead series|type=point entity|series=Left 4 Dead}}</nowiki>}} | ||
|{{Capsule|style=2|margin=5px|{{this is a|point entity|name=info_survivor_position|notitlechange=1|series=Left 4 Dead|icon=Left 4 Dead series|nocat=1}}}} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|margin=5px|{{this is a|point entity|name=info_survivor_position|notitlechange=1|series=Left 4 Dead|icon=Left 4 Dead series|nocat=1}}}} | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|name1}}}} ~ {{Code|preset=2|{{param|name5}}}} | |align="center"|{{Code|preset=2|{{param|name1}}}} ~ {{Code|preset=2|{{param|name5}}}} | ||
|If the entity name is similar to another entity and functions the same, like <code>terrorist_team_intro</code> and <code>counterterrorist_team_intro</code>, use these parameters. {{Note|Once you have used the {{Code|preset=2|{{param|name1}}}}, the style of the template will be changed. '''The {{Code|preset=2|{{param|name}}}} is necessary for displaying the first name.'''}} | |If the entity name is similar to another entity and functions the same, like <code>terrorist_team_intro</code> and <code>counterterrorist_team_intro</code>, use these parameters. {{Note|Once you have used the {{Code|preset=2|{{param|name1}}}}, the style of the template will be changed. '''The {{Code|preset=2|{{param|name}}}} is necessary for displaying the first name.'''}} | ||
|{{CodeBlock|<nowiki>{{this is a|point entity|name=terrorist_team_intro|name1=counterterrorist_team_intro|game=Counter-Strike 2}}</nowiki>}} | |{{CodeBlock|<nowiki>{{this is a|point entity|name=terrorist_team_intro|name1=counterterrorist_team_intro|game=Counter-Strike 2}}</nowiki>}} | ||
|{{Capsule|style=2|{{this is a|point entity|name=terrorist_team_intro|name1=counterterrorist_team_intro|game=Counter-Strike 2|notitlechange=1|nocat=1}}}} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|{{this is a|point entity|name=terrorist_team_intro|name1=counterterrorist_team_intro|game=Counter-Strike 2|notitlechange=1|nocat=1}}}} | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|game1}}}} ~ {{Code|preset=2|{{param|game5}}}} | |align="center"|{{Code|preset=2|{{param|game1}}}} ~ {{Code|preset=2|{{param|game5}}}} | ||
| Line 148: | Line 164: | ||
|game3=Team Fortress 2|game4=Portal 2|game5=Counter-Strike: Global Offensive}}</nowiki>}} | |game3=Team Fortress 2|game4=Portal 2|game5=Counter-Strike: Global Offensive}}</nowiki>}} | ||
{{CodeBlock|<nowiki>{{this is a|point entity|name=info_survivor_position|game=Left 4 Dead|game1=Left 4 Dead 2}}</nowiki>}} | {{CodeBlock|<nowiki>{{this is a|point entity|name=info_survivor_position|game=Left 4 Dead|game1=Left 4 Dead 2}}</nowiki>}} | ||
|{{Capsule|style=2|{{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|nocat=1}}}} | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|{{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|nocat=1}}}} | |||
{{Capsule|style=2|{{this is a|point entity|name=info_survivor_position|game=Left 4 Dead|game1=Left 4 Dead 2|notitlechange=1|nocat=1}}}} | {{Capsule|style=2|{{this is a|point entity|name=info_survivor_position|game=Left 4 Dead|game1=Left 4 Dead 2|notitlechange=1|nocat=1}}}} | ||
|- | |- | ||
| Line 154: | Line 171: | ||
|Don't place any categories. | |Don't place any categories. | ||
|{{CodeBlock|<nowiki>{{this is a|point entity|name=info_player_start|nocat=1}}</nowiki>}} | |{{CodeBlock|<nowiki>{{this is a|point entity|name=info_player_start|nocat=1}}</nowiki>}} | ||
|align="center"|N/A | |- | ||
| colspan="3" style="background-color: #2f2f2f" align="center"|N/A | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|no-non-int}}}} | |align="center"|{{Code|preset=2|{{param|no-non-int}}}} | ||
|Don't place it in [[:Category:Non-internal entities|Category:Non-internal <nowiki>{{{in|}}}</nowiki> entities]]. | |Don't place it in [[:Category:Non-internal entities|Category:Non-internal <nowiki>{{{in|}}}</nowiki> entities]]. | ||
|{{CodeBlock|<nowiki>{{this is a|point entity|name=info_player_start|no-non-int=1}}</nowiki>}} | |{{CodeBlock|<nowiki>{{this is a|point entity|name=info_player_start|no-non-int=1}}</nowiki>}} | ||
|align="center"|N/A | |- | ||
| colspan="3" style="background-color: #2f2f2f" align="center"|N/A | |||
|- | |- | ||
|align="center"|{{Code|preset=2|{{param|except-multi}}}} | |align="center"|{{Code|preset=2|{{param|except-multi}}}} | ||
|Similar to {{Code|{{Param|except}}}}, but can specify multiple games simultaneously. {{Note|Unsupport placing categories. }} | |Similar to {{Code|{{Param|except}}}}, but can specify multiple games simultaneously. {{Note|Unsupport placing categories. }} | ||
|{{CodeBlock|<nowiki>{{this is a|point entity|name=1|except-multi={{l4d}}{{hl2}}{{csgo}}}}</nowiki>}} | |{{CodeBlock|<nowiki>{{this is a|point entity|name=1|except-multi={{l4d}}{{hl2}}{{csgo}}}}</nowiki>}} | ||
|- | |- | ||
| colspan=3 style="background-color: #2f2f2f" | {{Capsule|style=2|{{this is a|point entity|name=1|except-multi={{l4d}}{{hl2}}{{csgo}}|notitlechange=1|nocat=1}}}} | |||
|} | |} | ||
Revision as of 09:28, 11 May 2025
This is a documentation subpage for Template:This is a.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
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.
Parameters and Examples
*: Necessary parameters.
| Parameter | Description | Example |
|---|---|---|
*{{{1}}}
|
The type of the object need to describe. The following types are available: Entities:
Console Variables, Commands, QC Commands:
Miscellaneous:
console variable). |
|
This is a incredible entity available in all
| ||
{{{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.
|
|
$lightmap is a material shader parameter for the VertexLitGeneric shader available in | ||
{{{dx}}}
|
Add DirectX levels inline text.
Available versions:
|
|
$lightwarptexture (DX8) is a material shader parameter for the VertexLitGeneric shader available in all $lightwarptexture (DX9 SM2) is a material shader parameter for the VertexLitGeneric shader available in all $lightwarptexture (DX9+ SM3) is a material shader parameter for the VertexLitGeneric shader available in all | ||
{{{engine}}}{{{engine1}}}{{{engine2}}}
|
Which engine the subject belongs to.
{{{engine1}}} (secondary engine) and {{{engine2}}} (tertiary engine) with {{{engine}}} (primary engine) at the same time. |
|
{{{except}}}
|
This is available in all other games except this one. {{{game}}}. |
|
{{{since}}}
|
This is available since this game. {{{game}}}. |
|
{{{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}}}
|
If set to 0, false, etc. then the sentence will not start with the word "this." Has no effect if {{{name}}} has been specified. | |
{{{series}}}
|
The series that the subject is available in. | |
{{{game}}}
|
The game that the subject is available in. {{{series}}}.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 available in
| ||
{{{notitlechange}}}
|
You can prevent title-changing from the template by using this parameter. Used in the /doc page.
|
|
{{{internal}}}
|
If enabled, "cut" will be displayed before "entity" and a category will be added to the page. | |
{{{semi-internal}}}
|
If enabled, "cut" will be displayed before "entity" and a category will be added to the page. | |
{{{cut}}}
|
If enabled, "cut" will be displayed before "(internal) ... entity" and a category will be added to the page. | |
{{{sprite}}}
|
The icon of the entity:
|
|
{{{icon}}}
|
Make the game icon appear left-aligned.
|
|
{{{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. {{{name1}}}, the style of the template will be changed. The {{{name}}} is necessary for displaying the first name. |
|
terrorist_team_intro and counterterrorist_team_intro are point entities available in | ||
{{{game1}}} ~ {{{game5}}}
|
If this is available in multiple games, use these parameters to describe. {{{game1}}}, the style of the template will be changed. The {{{game}}} is necessary for displaying the first game.{{{series}}}.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 available in
| ||
{{{nocat}}}
|
Don't place any categories. | |
| N/A | ||
{{{no-non-int}}}
|
Don't place it in Category:Non-internal {{{in|}}} entities. | |
| N/A | ||
{{{except-multi}}}
|
Similar to {{{except}}}, but can specify multiple games simultaneously. |
|
