Template:Entity
entity
is a [[{{{1}}} entity]][[Category:{{{1}}} entities]] present in all Source games.
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. |
This page is protected. Only admins can edit it.
|
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
orbrush
.- 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
andsome
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. Ifsprite
is set to any other value, that will be the file name it looks for. - noportal
<boolean>
- Rather specific, but if using
hl2
orepisodic
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}}}
withsome
ormost
for{{{2}}}
. "since some/most Source games" sounds wrong. - If you have to use
some
ormost
for{{{2}}}
, specify the games using Template:Gamelistbox.some
andmost
are the exact same except for one word. {{{and}}}
cannot usemost
orsome
.- 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
- Half-Life 2 (the three games below should be assumed to be part of "the Half-Life 2 series")
Categories
Almost all the parameters add new categories.
- All transclusions of the template add Category:Entities no matter what the parameters are.
{{{internal}}}
adds Category:Internal entities.{{{1}}}
adds Category:Brush entities or Category:Point entities.{{{since}}}
adds Category:Source partial entities and forbids{{{2}}}
from adding any categories at all.{{{except}}}
adds Category:Source partial entities and forbids{{{2}}}
and{{{and}}}
from adding any categories at all.{{{2}}}
and{{{and}}}
add these categories for their different values that are accepted:hl2
: Category:Half-Life 2 entitiesepisodic
: Category:HL2 Episodic entitieshl2dm
: Category:Half-Life 2: Deathmatch entitieshl2lc
: No category, because there's only one page that would be present.dods
: Category:Day of Defeat: Source entitiescss
: Category:Counter-Strike: Source entitiescsgo
: Category:Counter-Strike: Global Offensive entitiesCS
: both of the above
p1
: Category:Portal entitiesp2
: Category:Portal 2 entitiesps
: both of the above
tf2
: Category:Team Fortress 2 entitiesl4d
: Category:Left 4 Dead entitiesl4d2
: Category:Left 4 Dead 2 entitiesl4ds
: both of the above
asw
: Category:Alien Swarm entitiesmost
: Category:Source partial entitiessome
: Category:Source partial entities- [blank]: Category:Source base entities
{{{and}}}
will not add Category:Source partial entities automatically but it may be a good idea depending on context.
Examples
{{entity|point}}
entity
is a point entity present in all Source games.
{{entity|point|episodic}}
entity
is a point entity present in the Half-Life 2 Episodes.
{{entity|internal=1|brush|since=1|l4d}}
entity
is an internal brush entity present in all games since Left 4 Dead.
{{entity|point|p1|and=p2}}
entity
is a point entity present in Portal and Portal 2.
{{entity|point|hl2|noportal=1}}
entity
is a point entity present in the Half-Life 2 series, but not Portal.
{{entity|point|hl2|nohl2dm=1}}
entity
is a point entity present in the Half-Life 2 series, but not Half-Life 2: Deathmatch.
{{entity|brush|sprite=trigger}}
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 Left 4 Dead and Left 4 Dead 2.