Template:This is a/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
1416006136 (talk | contribs) No edit summary |
||
Line 13: | Line 13: | ||
! Preview | ! Preview | ||
|- | |- | ||
|align="center"|<strong style=color:rgb(255,255,0)>'''<nowiki>*</nowiki>'''</strong>{{Code| | |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 44: | Line 44: | ||
{{Capsule|style=2|margin=5px|{{this is a|s0|name=LightmappedGeneric|notitlechange=1}}}} | {{Capsule|style=2|margin=5px|{{this is a|s0|name=LightmappedGeneric|notitlechange=1}}}} | ||
|- | |- | ||
|align="center"|{{Code| | |align="center"|{{Code|preset=2|{{param|engine}}}}<br>{{Code|preset=2|{{param|engine1}}}}<br>{{Code|preset=2|{{param|engine2}}}} | ||
| Which engine the subject belongs to. | | Which engine the subject belongs to. | ||
:* Default - {{source|4}} (same as {{Code|2}}) | :* Default - {{source|4}} (same as {{Code|2}}) | ||
:* {{Code|1}}, {{Code|gldsrc}} - {{gldsrc|4}} | :* {{Code|1}}, {{Code|gldsrc}} - {{gldsrc|4}} | ||
:* {{Code|2}}, {{Code|source}} - {{source|4}} | :* {{Code|2}}, {{Code|source}} - {{source|4}} | ||
:* {{Code|3}}, {{Code|source2}} - {{source2|4}} | :* {{Code|3}}, {{Code|source2}} - {{source2|4}} | ||
:* Custom - You can specify any other engine. | |||
{{Important|'''To add multiple engines''', please use parameter {{Code|preset=2|{{param|engine1}}}} (secondary engine) and {{Code|preset=2|{{param|engine2}}}} (tertiary engine) with {{Code|preset=2|{{param|engine}}}} (primary engine) at the same time.}} | |||
| | | | ||
{{CodeBlock|<nowiki>{{this is a|e1|engine=3}}</nowiki>}} | {{CodeBlock|<nowiki>{{this is a|e1|engine=3}}</nowiki>}} | ||
{{CodeBlock|<nowiki>{{this is a|e1}}</nowiki>}} | {{CodeBlock|<nowiki>{{this is a|e1}}</nowiki>}} | ||
{{CodeBlock|<nowiki>{{this is a|e0|engine=1|engine1=2}}</nowiki>}} | |||
{{CodeBlock|<nowiki>{{this is a|e0|engine=1|engine1=2|engine2=3}}</nowiki>}} | |||
| | | | ||
{{Capsule|style=2|margin=5px|{{this is a|e1|engine=3}}}} | {{Capsule|style=2|margin=5px|{{this is a|e1|engine=3}}}} | ||
{{Capsule|style=2|margin=5px|{{this is a|e1}}}} | {{Capsule|style=2|margin=5px|{{this is a|e1}}}} | ||
{{Capsule|style=2|margin=5px|{{this is a|e0|engine=1|engine1=2}}}} | |||
{{Capsule|style=2|margin=5px|{{this is a|e0|engine=1|engine1=2|engine2=3}}}} | |||
|- | |- | ||
|align="center"|{{Code| | |align="center"|{{Code|preset=2|{{param|except}}}} | ||
| This is available in all other games except this one. {{Note|Works without {{Code| | | This is available in all other games except this one. {{Note|Works without {{Code|preset=2|{{param|game}}}}.}} | ||
| {{CodeBlock|<nowiki>{{this is a|e2|name=func_monitor|except=Left 4 Dead series}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|e2|name=func_monitor|except=Left 4 Dead series}}</nowiki>}} | ||
| {{Capsule|style=2|margin=5px|{{this is a|e2|name=func_monitor|notitlechange=1|except=Left 4 Dead series}}}} | | {{Capsule|style=2|margin=5px|{{this is a|e2|name=func_monitor|notitlechange=1|except=Left 4 Dead series}}}} | ||
|- | |- | ||
|align="center"|{{Code| | |align="center"|{{Code|preset=2|{{param|since}}}} | ||
| This is available since this game. {{Note|Works without {{Code| | | This is available since this game. {{Note|Works without {{Code|preset=2|{{param|game}}}}.}} | ||
| {{CodeBlock|<nowiki>{{this is a|e0|name=info_player_start|engine=1|since=Half-Life}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|e0|name=info_player_start|engine=1|since=Half-Life}}</nowiki>}} | ||
| {{Capsule|style=2|margin=5px|{{this is a|e0|name=info_player_start|notitlechange=1|engine=1|since=Half-Life}}}} | | {{Capsule|style=2|margin=5px|{{this is a|e0|name=info_player_start|notitlechange=1|engine=1|since=Half-Life}}}} | ||
|- | |- | ||
|align="center"|{{Code| | |align="center"|{{Code|preset=2|{{param|name}}}} | ||
| The name of the subject. It will change the title of a page. The default value is "This". You can specify it to {{Code|0}} to remove the entity name. | | The name of the subject. It will change the title of a page. The default value is "This". You can specify it to {{Code|0}} to remove the entity name. | ||
| {{CodeBlock|<nowiki>{{this is a|e0|name=info_player_start}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|e0|name=info_player_start}}</nowiki>}} | ||
| {{Capsule|style=2|margin=5px|{{this is a|e0|name=info_player_start|notitlechange=1}}}} | | {{Capsule|style=2|margin=5px|{{this is a|e0|name=info_player_start|notitlechange=1}}}} | ||
|- | |- | ||
|align="center"|{{Code| | |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|e2|series=Counter-Strike}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|e2|series=Counter-Strike}}</nowiki>}} | ||
| {{Capsule|style=2|margin=5px|{{this is a|e2|series=Counter-Strike}}}} | | {{Capsule|style=2|margin=5px|{{this is a|e2|series=Counter-Strike}}}} | ||
|- | |- | ||
|align="center"|{{Code| | |align="center"|{{Code|preset=2|{{param|seriescs}}}} | ||
| The series of Counter-Strike that the subject is available in{{why}}. | | The series of Counter-Strike that the subject is available in{{why}}. | ||
| {{CodeBlock|<nowiki>{{this is a|e3|seriescs=Counter-Strike|game=Counter-Strike: Source}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|e3|seriescs=Counter-Strike|game=Counter-Strike: Source}}</nowiki>}} | ||
| {{Capsule|style=2|margin=5px|{{this is a|e3|seriescs=Counter-Strike|game=Counter-Strike: Source}}}} | | {{Capsule|style=2|margin=5px|{{this is a|e3|seriescs=Counter-Strike|game=Counter-Strike: Source}}}} | ||
|- | |- | ||
|align="center"|{{Code| | |align="center"|{{Code|preset=2|{{param|game}}}} | ||
| The game that the subject is available in. {{Note|Works without {{Code| | | The game that the subject is available in. {{Note|Works without {{Code|preset=2|{{param|series}}}}.}} | ||
| {{CodeBlock|<nowiki>{{this is a|e5|game=Team Fortress 2}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|e5|game=Team Fortress 2}}</nowiki>}} | ||
| {{Capsule|style=2|margin=5px|{{this is a|e5|game=Team Fortress 2}}}} | | {{Capsule|style=2|margin=5px|{{this is a|e5|game=Team Fortress 2}}}} | ||
|- | |- | ||
|align="center"|{{Code| | |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|e0|notitlechange=1|name=info_player_start|engine=1|since=Half-Life}}</nowiki>}} | | {{CodeBlock|<nowiki>{{this is a|e0|notitlechange=1|name=info_player_start|engine=1|since=Half-Life}}</nowiki>}} | ||
| {{Capsule|style=2|margin=5px|{{this is a|e0|notitlechange=1|name=info_player_start|engine=1|since=Half-Life}}}} | | {{Capsule|style=2|margin=5px|{{this is a|e0|notitlechange=1|name=info_player_start|engine=1|since=Half-Life}}}} | ||
|- | |- | ||
|align="center"|{{Code| | |align="center"|{{Code|preset=2|{{param|internal}}}} | ||
|If enabled (value is {{Code|1}} or {{Code|true}}), the page will be added to [[:Category:Internal entities]] and "internal" will be displayed before "... entity". | |If enabled (value is {{Code|1}} or {{Code|true}}), the page will be added to [[:Category:Internal entities]] and "internal" will be displayed before "... entity". | ||
{{Note|If {{Code| | {{Note|If {{Code|preset=2|{{param|type|tag=kbd}}}} is a defined value (e.g. {{Code|e0}}), the parameter is invalid.}} | ||
|{{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}}}} | |{{Capsule|style=2|margin=5px|{{this is a|entity|internal=1}}}} | ||
|- | |- | ||
|align="center"|{{Code| | |align="center"|{{Code|preset=2|{{param|cut}}}} | ||
|If enabled, "cut" will be displayed before "(internal) ... entity"and the page will add to [[:Category:Cut Entities]]. | |If enabled, "cut" will be displayed before "(internal) ... entity"and the page will add to [[:Category:Cut Entities]]. | ||
|{{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}}}} | |{{Capsule|style=2|margin=5px|{{this is a|cut=1|internal=1|entity}}}} | ||
|- | |- | ||
|align="center"|{{Code| | |align="center"|{{Code|preset=2|{{param|sprite}}}} | ||
|The icon of the entity: | |The icon of the entity: | ||
*If {{Code|1}} is specified, the template will find the entity icon file based on the entity name (parameter {{Code| | *If {{Code|1}} is specified, the template will find the entity icon file based on the entity name (parameter {{Code|preset=2|{{param|1}}}}). (Follow the format of {{Code|<nowiki>[[File:<entity name>.png]]</nowiki>}} to find) | ||
*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|e0|name=logic_script|sprite=1}}</nowiki>}} | |{{CodeBlock|<nowiki>{{this is a|e0|name=logic_script|sprite=1}}</nowiki>}} | ||
|{{Capsule|style=2|margin=5px|{{this is a|e0|name=logic_script|sprite=1|notitlechange=1}}}} | |{{Capsule|style=2|margin=5px|{{this is a|e0|name=logic_script|sprite=1|notitlechange=1}}}} | ||
|- | |- | ||
|align="center"|{{Code| | |align="center"|{{Code|preset=2|{{param|icon}}}} | ||
|Make the game icon appear left-aligned. | |Make the game icon appear left-aligned. | ||
*If {{Code|1}} is specified, the template will use {{Code| | *If {{Code|1}} is specified, the template will use {{Code|preset=2|{{param|tag=kbd|game}}}} instead. | ||
*If it is a custom value, you need to enter the full name of the game. (Case sensitive) | *If it is a custom value, you need to enter the full name of the game. (Case sensitive) | ||
*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.) | ||
Line 122: | Line 124: | ||
|{{Capsule|style=2|margin=5px|{{this is a|e0|name=info_survivor_position|notitlechange=1|series=Left 4 Dead|icon=Left 4 Dead series}}}} | |{{Capsule|style=2|margin=5px|{{this is a|e0|name=info_survivor_position|notitlechange=1|series=Left 4 Dead|icon=Left 4 Dead series}}}} | ||
|- | |- | ||
|align="center"|{{Code| | |align="center"|{{Code|preset=2|{{param|game1}}}} ~ {{Code|preset=2|{{param|game5}}}} | ||
|If this is available in multiple games, use these parameters to describe. {{Note|Once you have used the {{Code| | |If this is available in multiple games, use these parameters to describe. {{Note|Once you have used the {{Code|preset=2|{{param|game1}}}}, the style of the template will be changed. '''The {{Code|preset=2|{{param|game}}}} is necessary for displaying the first game.'''}}{{Note|Works without {{Code|preset=2|{{param|series}}}}.}} | ||
|{{CodeBlock|<nowiki>{{this is a|e0|game=Left 4 Dead|game1=Left 4 Dead 2|game2=Portal 2 | |{{CodeBlock|<nowiki>{{this is a|e0|game=Left 4 Dead|game1=Left 4 Dead 2|game2=Portal 2 | ||
|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>}} | ||
Line 130: | Line 132: | ||
{{Capsule|style=2|{{this is a|e0|name=info_survivor_position|game=Left 4 Dead|game1=Left 4 Dead 2|notitlechange=1}}}} | {{Capsule|style=2|{{this is a|e0|name=info_survivor_position|game=Left 4 Dead|game1=Left 4 Dead 2|notitlechange=1}}}} | ||
|- | |- | ||
|align="center"|{{Code| | |align="center"|{{Code|preset=2|{{param|nocat}}}} | ||
|Don't place any categories. | |Don't place any categories. | ||
|{{CodeBlock|<nowiki>{{this is a|e0|name=info_player_start|nocat=1}}</nowiki>}} | |{{CodeBlock|<nowiki>{{this is a|e0|name=info_player_start|nocat=1}}</nowiki>}} | ||
|align="center"|N/A | |align="center"|N/A | ||
|- | |- | ||
|align="center"|{{Code| | |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|e0|name=1|except-multi={{l4d}}{{hl2}}{{csgo}}}}</nowiki>}} | |{{CodeBlock|<nowiki>{{this is a|e0|name=1|except-multi={{l4d}}{{hl2}}{{csgo}}}}</nowiki>}} |
Revision as of 21:11, 28 October 2023

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. It should be placed on the base pages of articles using {{MultiPage}}.
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:
![]() |
|
This is a incredible entity available in all Template:''Mosaic'' games.Template:''Mosaic'' topicon
![]()
This is an e1 available in all Template:3 games.Template:3 topicon
![]()
This is an e2 available in all Template:1 games.Template:1 topicon
![]()
sv_cheats is a convar available in all ![]() LightmappedGeneric is a s0 available in all ![]() |
{{{engine}}} {{{engine1}}} {{{engine2}}} |
Which engine the subject belongs to.
![]() |
This is an e1 available in all Template:3 games.Template:3 topicon
![]()
This is an e1 available in all
![]() This is an e0 available in all Template:1 and Template:2 games.Template:1 topiconTemplate:2 topicon
![]()
This is an e0 available in all Template:1, Template:2, and Template:3 games.Template:1 topiconTemplate:2 topiconTemplate:3 topicon
![]()
| |
{{{except}}} | This is available in all other games except this one. ![]() |
||
{{{since}}} | This is available since this game. ![]() |
info_player_start is an e0 available in all Template:1 games since ![]() ![]()
| |
{{{name}}} | The name of the subject. It will change the title of a page. The default value is "This". You can specify it to 0 to remove the entity name. | info_player_start is an e0 available in all ![]() | |
{{{series}}} | The series that the subject is available in. | This is an e2 available in
![]() ![]() | |
{{{seriescs}}} | The series of Counter-Strike that the subject is available in[Why?]. | This is an e3 available in
![]() | |
{{{game}}} | The game that the subject is available in. ![]() |
This is an e5 available in
![]() | |
{{{notitlechange}}} | You can prevent title-changing from the template by using this parameter. Used in the /doc page. | info_player_start is an e0 available in all Template:1 games since ![]() ![]()
| |
{{{internal}}} | If enabled (value is 1 or true), the page will be added to Category:Internal entities and "internal" will be displayed before "... entity".
![]() |
||
{{{cut}}} | If enabled, "cut" will be displayed before "(internal) ... entity"and the page will add to Category:Cut Entities. | ||
{{{sprite}}} | The icon of the entity:
|
||
{{{icon}}} | Make the game icon appear left-aligned.
|
||
{{{game1}}} ~ {{{game5}}} | If this is available in multiple games, use these parameters to describe. ![]() ![]() |
This is an e0 available in
![]() ![]() ![]() ![]() ![]() ![]() | |
{{{nocat}}} | Don't place any categories. | N/A | |
{{{except-multi}}} | Similar to {{{except}}}, but can specify multiple games simultaneously. ![]() |
See Also
- {{Entity}}
- {{Format}}
- {{Point ent}}
- {{Base point multi}}
- {{Brush ent}}
- {{Base brush multi}}
- {{Game name}}