Template:This is a/doc: Difference between revisions
Jump to navigation
Jump to search
Note:The template has still the old code of
1416006136 (talk | contribs) m (<includeonly> for category, {{doc|0}}) |
1416006136 (talk | contribs) (updated descriptions) |
||
Line 11: | Line 11: | ||
! Preview | ! Preview | ||
|- | |- | ||
|align="center"|{{Code|{{param|type}}}} | |align="center"|<strong style=color:rgb(255,255,0)><nowiki>*</nowiki></strong>{{Code|{{param|type}}}} | ||
| The type of the entity. The following types are available: | | The type of the entity. The following types are available: | ||
:* {{Code|e0}} - [[Point entity]] | :* {{Code|e0}} - [[Point entity]] | ||
Line 19: | Line 19: | ||
:* {{Code|e4}} - [[Mesh entity]] ({{source2}}) | :* {{Code|e4}} - [[Mesh entity]] ({{source2}}) | ||
:* {{Code|e5}} - [[Path entity]] ({{source2}}) | :* {{Code|e5}} - [[Path entity]] ({{source2}}) | ||
:* You can specify the entity type yourself. (See examples) | :* You can specify the entity type yourself. (See examples) | ||
| | | | ||
Line 54: | Line 53: | ||
|- | |- | ||
|align="center"|{{Code|{{param|1}}}} | |align="center"|{{Code|{{param|1}}}} | ||
| The name of the entity. It will change the title of a page. {{Note|The template can't change the title when the {{tl|lang|}} is in use. }}{{workaround|Specify the {{param|title|tag=kbd}} of {{tl|lang}} to {{Code|<nowiki>{{Code|selected=1|<entity name>}}</nowiki>}}.}} | | The name of the entity. 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. {{Note|The template can't change the title when the {{tl|lang|}} is in use. }}{{workaround|Specify the {{param|title|tag=kbd}} of {{tl|lang}} to {{Code|<nowiki>{{Code|selected=1|<entity name>}}</nowiki>}}.}} | ||
| {{CodeBlock|<nowiki>{{entity|type=e0|info_player_start}}</nowiki>}} | | {{CodeBlock|<nowiki>{{entity|type=e0|info_player_start}}</nowiki>}} | ||
| {{Doc/PreviewBlock|margin=5px|{{entity|type=e0|notitlechange=1|info_player_start}}}} | | {{Doc/PreviewBlock|margin=5px|{{entity|type=e0|notitlechange=1|info_player_start}}}} | ||
Line 79: | Line 78: | ||
|- | |- | ||
|align="center"|{{Code|{{param|suf}}}} | |align="center"|{{Code|{{param|suf}}}} | ||
| Specify the language suffix. The template supports multi-language and you can add more languages that the template supports. | | Specify the language suffix. The template supports multi-language and you can add more languages that the template supports. The following languages are available: | ||
* {{en}} English: Default | |||
* {{ru}} Russian: {{Code|:ru}} (need update) | |||
* {{zh-cn}} Simplified Chinese: {{Code|:zh-cn}} | |||
{{Note|Some of the translations may be not fully complete.}} | |||
| | | | ||
# {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e0|info_player_start|engine=1|since=Half-Life}}</nowiki>}} | # {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e0|info_player_start|engine=1|since=Half-Life}}</nowiki>}} | ||
Line 86: | Line 89: | ||
# {{Doc/PreviewBlock|margin=5px|{{entity|suf=:zh-cn|type=e0|notitlechange=1|info_player_start|engine=1|since=Half-Life}}}} | # {{Doc/PreviewBlock|margin=5px|{{entity|suf=:zh-cn|type=e0|notitlechange=1|info_player_start|engine=1|since=Half-Life}}}} | ||
# {{Doc/PreviewBlock|margin=5px|{{entity|suf=:ru|type=e0|notitlechange=1|info_player_start|engine=1|since=Half-Life}}}} | # {{Doc/PreviewBlock|margin=5px|{{entity|suf=:ru|type=e0|notitlechange=1|info_player_start|engine=1|since=Half-Life}}}} | ||
|- | |||
|align="center"|{{Code|{{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". | |||
{{Note|If {{Code|{{param|type|tag=kbd}}}} is a defined value (e.g. {{Code|e0}}), the parameter is invalid.}} | |||
|{{CodeBlock|<nowiki>{{entity|internal=1|type=entity}}</nowiki>}} | |||
|{{Doc/PreviewBlock|margin=5px|{{entity|internal=1|type=entity}}}} | |||
|- | |||
|align="center"|{{Code|{{param|cut}}}} | |||
|If enabled, "cut" will be displayed before "(internal) ... entity"and the page will add to [[:Category:Cut Entities]]. | |||
|{{CodeBlock|<nowiki>{{entity|internal=1|type=entity|cut=1}}</nowiki>}} | |||
|{{Doc/PreviewBlock|margin=5px|{{entity|internal=1|type=entity|cut=1}}}} | |||
|- | |||
|align="center"|{{Code|{{param|sprite}}}} | |||
|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|{{param|tag=kbd|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!}} | |||
|{{CodeBlock|<nowiki>{{entity|logic_script|sprite=1|type=e0}}</nowiki>}} | |||
|{{Doc/PreviewBlock|margin=5px|{{entity|logic_script|sprite=1|type=e0|notitlechange=1}}}} | |||
|- | |||
|} | |} | ||
<sub>——————<br><strong style=color:rgb(255,255,0)><nowiki>*</nowiki></strong>: Necessary parameters.</sub> | |||
== See Also == | == See Also == |
Revision as of 18:57, 24 January 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.
The template is the first sentence on each entity page that describes the basic information of an entity.
Parameters and Examples

{{point ent}}
for compatibility with those page having not updated.Parameter | Description | Example | Preview |
---|---|---|---|
*{{{type}}} | The type of the entity. The following types are available:
|
|
|
{{{engine}}} | Which engine the entity belongs to. |
|
|
{{{except}}} | This entity is available in all other games except this one. ![]() |
||
{{{since}}} | This entity is available since this game. ![]() |
||
{{{1}}} | The name of the entity. It will change the title of a page. The default value is "This". You can specify it to 0 to remove the entity name. ![]() {{lang}} is in use. ![]() {{lang}} to {{Code|selected=1|<entity name>}}. |
||
{{{series}}} | The series that the entity is available in. | ||
{{{seriescs}}} | The series of Counter-Strike that the entity is available in. | ||
{{{game}}} | The game that the entity is available in. ![]() |
||
{{{notitlechange}}} | You can prevent title-changing from the template by using this parameter. Used in the /doc page. | ||
{{{suf}}} | Specify the language suffix. The template supports multi-language and you can add more languages that the template supports. The following languages are available:
![]() |
|
|
{{{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:
|
——————
*: Necessary parameters.
See Also
{{Point ent}}
{{Base point multi}}
{{Brush ent}}
{{Base brush multi}}
{{Game name}}