Template:Entity

From Source Entities
Jump to navigation Jump to search

entity is a [[{{{1}}} entity]][[Category:{{{1}}} entities]] present in all Source games.


Info.png

This template is high-use or intricate. Changes made to it may break other templates, and/or a large amount of pages. It might also cause a significant server load. If you want to make changes to it, you are advised to test them first on Template:Entity/Sandbox. It might also be a good idea to discuss changes on the talk page.

Protected.png

This page is protected. Only admins can edit it.
Propose changes on the talk page. -Pinsplash (UTC) 19:20, 23 January 2020 (UTC)

This template goes at the top of every entity page.

Parameters

Note: You no longer need to type the name of the entity! :D

1 <string>
point or brush.
2 <string>
A game abbreviation, matching the names of the templates in Category:Game icons. If this is left blank, the text will say that the entity is in all Source games. most and some are also acceptable values.
internal <boolean>
Set to 1 if the entity is internal.
since <boolean>
Set to 1 if the entity has been in ALL games, since a particular one was released. If it skips even one game, do not use this!
and <string>
One other game this entity is present in, using the same abbreviations as {{{2}}}.
sprite <string>
Set to 1 to show a .png sprite with a filename corresponding to the classname. If sprite is set to any other value, that will be the file name it looks for.
noportal <boolean>
Rather specific, but if using hl2 or episodic for {{{2}}}, note that the entity is not in Portal 1 specifically.
nohl2dm <boolean>
Rather specific, but if using hl2 for {{{2}}}, note that the entity is not in Half-Life 2: Deathmatch specifically.
except <boolean>
Set to 1 if the entity is in almost every game, except for one or two. Currently not compatible with {{{since}}}, but it could be done.

Some notes

  • Don't use {{{since}}} with some or most for {{{2}}}. "since some/most Source games" sounds wrong.
  • If you have to use some or most for {{{2}}}, specify the games using Template:Gamelistbox. some and most are the exact same except for one word.
  • {{{and}}} cannot use most or some.
  • Assume on this wiki that people know about how Portal 1 is based on Episodic.
  • To find out what games have an entity, check the "what links here" page. The games will be listed, if the list pages are up to date
  • We don't care which game necessarily got the entity first. Info_particle_system was introduced in ep2, but every game before has it too now, so "since episodic/ep2" is invalid.
  • Classnames with capital letters will not have their title displayed correctly or show which letters are capitalized in the template's actual text. These cases are extremely rare. Do not use the template and just write it all out (it isn't much) like on this page.
  • Remember this wiki currently supports 12 games:
    • Half-Life 2 (the three games below should be assumed to be part of "the Half-Life 2 series")
      • Episodic
      • HL2 Deathmatch
      • Portal 1
    • CS: Source
    • DOD: Source
    • TF2
    • Left 4 Dead
    • Left 4 Dead 2
    • Alien Swarm (not Reactive Drop)
    • Portal 2
    • CS:GO

Categories

Almost all the parameters add new categories.

Examples

{{entity|point}}

entity is a point entity present in all Source games.


{{entity|point|episodic}}

entity is a point entity present in the Hl2.pngHalf-Life 2 Episodes.


{{entity|internal=1|brush|since=1|l4d}}

entity is an internal brush entity present in all games since L4d.pngLeft 4 Dead.


{{entity|point|p1|and=p2}}

entity is a point entity present in P1.pngPortal and P2.pngPortal 2.


{{entity|point|hl2|noportal=1}}

entity is a point entity present in the Hl2.pngHalf-Life 2 series, but not Portal.


{{entity|point|hl2|nohl2dm=1}}

entity is a point entity present in the Hl2.pngHalf-Life 2 series, but not Half-Life 2: Deathmatch.


{{entity|brush|sprite=trigger}}
Trigger.png

entity is a brush entity present in all Source games.


{{entity|point|except=1|l4d|and=l4d2}}

entity is a point entity present in all games except L4d.pngLeft 4 Dead and L4d2-small.pngLeft 4 Dead 2.