Template:This is a/doc/zh: Difference between revisions
< Template:This is a | doc
Jump to navigation
Jump to search
1416006136 (talk | contribs) (updated descriptions) |
1416006136 (talk | contribs) m ({{Doc/PreviewBlock|margin=5px|) |
||
Line 25: | Line 25: | ||
# {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e2|engine=1}}</nowiki>}} | # {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e2|engine=1}}</nowiki>}} | ||
| | | | ||
# {{Doc/PreviewBlock|{{entity|suf=:zh-cn|type=''incredible entity''|engine=''Mosaic''}}}} | # {{Doc/PreviewBlock|margin=5px|{{entity|suf=:zh-cn|type=''incredible entity''|engine=''Mosaic''}}}} | ||
# {{Doc/PreviewBlock|{{entity|suf=:zh-cn|type=e1|engine=3}}}} | # {{Doc/PreviewBlock|margin=5px|{{entity|suf=:zh-cn|type=e1|engine=3}}}} | ||
# {{Doc/PreviewBlock|{{entity|suf=:zh-cn|type=e2|engine=1}}}} | # {{Doc/PreviewBlock|margin=5px|{{entity|suf=:zh-cn|type=e2|engine=1}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param|engine}}}} | |align="center"|{{Code|{{param|engine}}}} | ||
Line 39: | Line 39: | ||
# {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e1}}</nowiki>}} | # {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e1}}</nowiki>}} | ||
| | | | ||
# {{Doc/PreviewBlock|{{entity|suf=:zh-cn|type=e1|engine=3}}}} | # {{Doc/PreviewBlock|margin=5px|{{entity|suf=:zh-cn|type=e1|engine=3}}}} | ||
# {{Doc/PreviewBlock|{{entity|suf=:zh-cn|type=e1}}}} | # {{Doc/PreviewBlock|margin=5px|{{entity|suf=:zh-cn|type=e1}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param|except}}}} | |align="center"|{{Code|{{param|except}}}} | ||
| 该实体存在于其他所有游戏除了这个游戏外。默认值为“这”。{{Note:zh-cn|应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。}} | | 该实体存在于其他所有游戏除了这个游戏外。默认值为“这”。{{Note:zh-cn|应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。}} | ||
| {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|func_monitor|type=e2|except=Left 4 Dead series}}</nowiki>}} | | {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|func_monitor|type=e2|except=Left 4 Dead series}}</nowiki>}} | ||
| {{Doc/PreviewBlock|margin=5px|{{entity|notitlechange=1|suf=:zh-cn|func_monitor|type=e2|except=Left 4 Dead series}}}} | | {{Doc/PreviewBlock|margin=5px|margin=5px|{{entity|notitlechange=1|suf=:zh-cn|func_monitor|type=e2|except=Left 4 Dead series}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param|since}}}} | |align="center"|{{Code|{{param|since}}}} | ||
| 这个实体自从这个游戏中可用。{{Note:zh-cn|应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。}} | | 这个实体自从这个游戏中可用。{{Note:zh-cn|应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。}} | ||
| {{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>}} | ||
| {{Doc/PreviewBlock|{{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}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param|1}}}} | |align="center"|{{Code|{{param|1}}}} | ||
| 实体的名称。它会更改页面名称。{{Note:zh-cn|当使用了 {{tl|lang}} 模板时,本模板无法更改页面标题。}}{{workaround:zh-cn|手动将 {{tl|lang}} 模板的 {{param|title|tag=kbd}} 参数指定为{{Code|<nowiki>{{Code|selected=1|<实体名称>}}</nowiki>}}即可。}} | | 实体的名称。它会更改页面名称。{{Note:zh-cn|当使用了 {{tl|lang}} 模板时,本模板无法更改页面标题。}}{{workaround:zh-cn|手动将 {{tl|lang}} 模板的 {{param|title|tag=kbd}} 参数指定为{{Code|<nowiki>{{Code|selected=1|<实体名称>}}</nowiki>}}即可。}} | ||
| {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e0|info_player_start}}</nowiki>}} | | {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e0|info_player_start}}</nowiki>}} | ||
| {{Doc/PreviewBlock|{{entity|suf=:zh-cn|type=e0|notitlechange=1|info_player_start}}}} | | {{Doc/PreviewBlock|margin=5px|{{entity|suf=:zh-cn|type=e0|notitlechange=1|info_player_start}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param|series}}}} | |align="center"|{{Code|{{param|series}}}} | ||
| 实体存在于的系列游戏。 | | 实体存在于的系列游戏。 | ||
| {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e2|series=Counter-Strike}}</nowiki>}} | | {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e2|series=Counter-Strike}}</nowiki>}} | ||
| {{Doc/PreviewBlock|{{entity|suf=:zh-cn|type=e2|series=Counter-Strike}}}} | | {{Doc/PreviewBlock|margin=5px|{{entity|suf=:zh-cn|type=e2|series=Counter-Strike}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param|seriescs}}}} | |align="center"|{{Code|{{param|seriescs}}}} | ||
| 实体存在于的反恐精英系列游戏。 | | 实体存在于的反恐精英系列游戏。 | ||
| {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e3|seriescs=Counter-Strike|game=Counter-Strike: Source}}</nowiki>}} | | {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e3|seriescs=Counter-Strike|game=Counter-Strike: Source}}</nowiki>}} | ||
| {{Doc/PreviewBlock|{{entity|suf=:zh-cn|type=e3|seriescs=Counter-Strike|game=Counter-Strike: Source}}}} | | {{Doc/PreviewBlock|margin=5px|{{entity|suf=:zh-cn|type=e3|seriescs=Counter-Strike|game=Counter-Strike: Source}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param|game}}}} | |align="center"|{{Code|{{param|game}}}} | ||
| 实体可用于的游戏。{{Note:zh-cn|应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。}} | | 实体可用于的游戏。{{Note:zh-cn|应该在此处填写游戏的全称而不是简称,以便模板根据语言后缀连接多语言页面。}} | ||
| {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e5|game=Team Fortress 2}}</nowiki>}} | | {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e5|game=Team Fortress 2}}</nowiki>}} | ||
| {{Doc/PreviewBlock|{{entity|suf=:zh-cn|type=e5|game=Team Fortress 2}}}} | | {{Doc/PreviewBlock|margin=5px|{{entity|suf=:zh-cn|type=e5|game=Team Fortress 2}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param|notitlechange}}}} | |align="center"|{{Code|{{param|notitlechange}}}} | ||
| 你可以通过这个参数来防止模板更改页面标题。用于 {{Code|/doc}} 页面。 | | 你可以通过这个参数来防止模板更改页面标题。用于 {{Code|/doc}} 页面。 | ||
| {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e0|notitlechange=1|info_player_start|engine=1|since=Half-Life}}</nowiki>}} | | {{CodeBlock|<nowiki>{{entity|suf=:zh-cn|type=e0|notitlechange=1|info_player_start|engine=1|since=Half-Life}}</nowiki>}} | ||
| {{Doc/PreviewBlock|{{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}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param|suf}}}} | |align="center"|{{Code|{{param|suf}}}} | ||
Line 86: | Line 86: | ||
# {{CodeBlock|<nowiki>{{entity|suf=:ru|type=e0|info_player_start|engine=1|since=Half-Life}}</nowiki>}} | # {{CodeBlock|<nowiki>{{entity|suf=:ru|type=e0|info_player_start|engine=1|since=Half-Life}}</nowiki>}} | ||
| | | | ||
# {{Doc/PreviewBlock|{{entity|type=e0|notitlechange=1|info_player_start|engine=1|since=Half-Life}}}} | # {{Doc/PreviewBlock|margin=5px|{{entity|type=e0|notitlechange=1|info_player_start|engine=1|since=Half-Life}}}} | ||
# {{Doc/PreviewBlock|{{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}}}} | |align="center"|{{Code|{{param|internal}}}} | ||
|如果启用 (值为 {{Code|1}} 或 {{Code|true}}),则将页面添加到 [[:Category:Internal entities]],并且在“……实体”前显示“内部的”。{{Note:zh-cn|如果 {{Code|{{param|type|tag=kbd}}}} 为已经定义的值 (例如 {{Code|e0}}),则该参数无效。}} | |如果启用 (值为 {{Code|1}} 或 {{Code|true}}),则将页面添加到 [[:Category:Internal entities]],并且在“……实体”前显示“内部的”。{{Note:zh-cn|如果 {{Code|{{param|type|tag=kbd}}}} 为已经定义的值 (例如 {{Code|e0}}),则该参数无效。}} | ||
|{{CodeBlock|<nowiki>{{entity|suf=:zh-cn|internal=1|type=实体}}</nowiki>}} | |{{CodeBlock|<nowiki>{{entity|suf=:zh-cn|internal=1|type=实体}}</nowiki>}} | ||
|{{Doc/PreviewBlock|{{entity|suf=:zh-cn|internal=1|type=实体}}}} | |{{Doc/PreviewBlock|margin=5px|{{entity|suf=:zh-cn|internal=1|type=实体}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param|cut}}}} | |align="center"|{{Code|{{param|cut}}}} | ||
|如果启用,则在“……(内部的)实体”前显示“被移除的”。同时把页面添加到 [[:Category:Cut Entities]]。 | |如果启用,则在“……(内部的)实体”前显示“被移除的”。同时把页面添加到 [[:Category:Cut Entities]]。 | ||
|{{CodeBlock|<nowiki>{{entity|suf=:zh-cn|internal=1|type=实体|cut=1}}</nowiki>}} | |{{CodeBlock|<nowiki>{{entity|suf=:zh-cn|internal=1|type=实体|cut=1}}</nowiki>}} | ||
|{{Doc/PreviewBlock|{{entity|suf=:zh-cn|internal=1|type=实体|cut=1}}}} | |{{Doc/PreviewBlock|margin=5px|{{entity|suf=:zh-cn|internal=1|type=实体|cut=1}}}} | ||
|- | |- | ||
|align="center"|{{Code|{{param|sprite}}}} | |align="center"|{{Code|{{param|sprite}}}} | ||
Line 104: | Line 104: | ||
*如果为自定值,则模板将根据指定的值查找实体图标文件。{{Note:zh-cn|需要填入后缀名!}} | *如果为自定值,则模板将根据指定的值查找实体图标文件。{{Note:zh-cn|需要填入后缀名!}} | ||
|{{CodeBlock|<nowiki>{{entity|suf=:zh-cn|logic_script|sprite=1|type=e0}}</nowiki>}} | |{{CodeBlock|<nowiki>{{entity|suf=:zh-cn|logic_script|sprite=1|type=e0}}</nowiki>}} | ||
|{{Doc/PreviewBlock|{{entity|suf=:zh-cn|logic_script|sprite=1|type=e0|notitlechange=1}}}} | |{{Doc/PreviewBlock|margin=5px|{{entity|suf=:zh-cn|logic_script|sprite=1|type=e0|notitlechange=1}}}} | ||
|- | |- | ||
|} | |} |
Revision as of 18:25, 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.
该模板即每个实体页面上的第一句话,用于描述一个实体的基本信息。
参数和示例
参数 | 描述 | 示例 | 预览 |
---|---|---|---|
*{{{type}}} | 实体的类型。以下类型可用: |
|
|
{{{engine}}} | 实体应该属于哪个引擎。 |
|
|
{{{except}}} | 该实体存在于其他所有游戏除了这个游戏外。默认值为“这”。Template:Note:zh-cn | ||
{{{since}}} | 这个实体自从这个游戏中可用。Template:Note:zh-cn | ||
{{{1}}} | 实体的名称。它会更改页面名称。Template:Note:zh-cn![]() {{lang}} 模板的 {{{title}}} 参数指定为{{Code|selected=1|<实体名称>}}即可。 |
||
{{{series}}} | 实体存在于的系列游戏。 | ||
{{{seriescs}}} | 实体存在于的反恐精英系列游戏。 | ||
{{{game}}} | 实体可用于的游戏。Template:Note:zh-cn | ||
{{{notitlechange}}} | 你可以通过这个参数来防止模板更改页面标题。用于 /doc 页面。 | ||
{{{suf}}} | 指定语言后缀。模板支持多种语言并且你可以让模板支持更多的语言。可用的语言如下:
|
|
|
{{{internal}}} | 如果启用 (值为 1 或 true),则将页面添加到 Category:Internal entities,并且在“……实体”前显示“内部的”。Template:Note:zh-cn | ||
{{{cut}}} | 如果启用,则在“……(内部的)实体”前显示“被移除的”。同时把页面添加到 Category:Cut Entities。 | ||
{{{sprite}}} | 实体的图标:
|
——————
*: 必要的参数。
另请参阅
{{Ent}}
{{Point ent}}
{{Base point multi}}
{{Brush ent}}
{{Base brush multi}}
{{Game name}}