Template:PreservedEnt: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(or maybe this is enough)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
{{ulf|en=1|de=1|ru=1|zh=1}}
{{ulf|en=1|de=1|ru=1|zh=1}}
<nowiki>{{SUBPAGENAME}}</nowiki> is automatically filled as first parameter if it's not specified
<nowiki>{{SUBPAGENAME}}</nowiki> is automatically filled as first parameter if it's not specified
{{deprecated|This template has been deprecated by {{t|preserved entity}} on the English pages. {{t|PreservedEnt}} will continue to be used on the German, Russian, and Chinese pages until {{t|preserved entity}} and the relevant portions of [[s_PreserveEnts]] are are translated into those languages.<br>When it is time to fully deprecate this template, it may be desirable to move {{t|PreservedEnt/switch}}, as the new template still uses that.}}
{| class=wikitable
{| class=wikitable
! Wikitext !! Result
! Wikitext !! Result
Line 12: Line 13:


<onlyinclude>{{#switch: {{language}}
<onlyinclude>{{#switch: {{language}}
|#default={{important|This is a [[s_PreserveEnts|preserved entity]]{{#ifeq:{{{1}}}|all||&nbsp;in {{PreservedEnt/switch|{{{1|{{SUBPAGENAME}}}}}}}}}.<br>
|#default={{important|This is a [[s_PreserveEnts|preserved entity]]{{#ifeq:{{{1}}}|all||&nbsp;in {{PreservedEnt/switch|{{{1|{{lcfirst:{{SUBPAGENAMEE}}}}}}}}}}}.<br>If the game has round restart mechanics this entity may not behave as expected:
{{expand|noborder=1|title=If the game has round restart mechanics this entity may not behave as expected|
{{expand|noborder=1|title=More info|
* On a new round entities with this classname will '''intentionally not reset'''. You can use {{ent|logic_auto}} to emulate resetting it.
* On a new round entities with this classname will '''intentionally not reset'''. You can use {{ent|logic_auto}} to emulate resetting it.
* [[Kill|Killing]] it removes it forever, as '''it is not respawned''' on a new round.
* [[Kill|Killing]] it removes it forever, as '''it is not respawned''' on a new round.

Latest revision as of 10:57, 9 May 2025

English (en)Deutsch (de)Русский (ru)中文 (zh)

{{SUBPAGENAME}} is automatically filled as first parameter if it's not specified

Obsolete-notext.pngDeprecated:This template has been deprecated by {{preserved entity}} on the English pages. {{PreservedEnt}} will continue to be used on the German, Russian, and Chinese pages until {{preserved entity}} and the relevant portions of s_PreserveEnts are are translated into those languages.
When it is time to fully deprecate this template, it may be desirable to move {{PreservedEnt/switch}}, as the new template still uses that.
Wikitext Result
{{PreservedEnt | player}}
Icon-Important.pngImportant:This is a preserved entity in Counter-Strike: SourceHalf-Life 2: DeathmatchDay of Defeat: SourceTeam Fortress 2Left 4 DeadLeft 4 Dead 2Alien SwarmAlien Swarm: Reactive DropPortal 2Counter-Strike: Global Offensive.
If the game has round restart mechanics this entity may not behave as expected:
More info
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non-preserved entities may have undesirable effects.