Source Entities:Entity pages/AC

For a code class not tied to any classnames, follow these instructions. They're mostly the same to the AA instructions.


 * For code classes tied to a single classname, see Source Entities:Entity pages/AB.
 * For classnames not tied to any code class, see Source Entities:Entity pages/BC.
 * For a code class tied to multiple classnames, see Source Entities:Entity pages/AA.

Title
The URL of the class should match the actual name as closely as possible, including capitalization.

Top area
Start off with Template:Class. This automatically inserts and formats the name of the class, as it was typed in the page title. Write an adequate description of the class. Do not include Template:Gamelistbox on this page. Instead just list the games in the text, if it's even needed.

Add Template:Classbox. Create the template for this specific class.

Template:Class will create a link to a category that lists inheritors of this class. Add Template:catrelatedto2 in the category description. Categorize that category under whatever class it inherits one level up. (CBaseProp would be categorized under CBaseAnimating, but do not include CBaseEntity! These categories are not flat.)

ConVars/Commands
List console variables and console commands with Template:Varcom. The easiest way to find these is to search for the macros (, , rarely  ) in the cpp file. The console command is also very helpful. Be aware that the default values for convars in a cpp may be overridden in one of the game's many config files, so definitely check the console directly if a default value seems odd.

Keyvalues, inputs, outputs, flags
Add keyvalues, inputs, and outputs with Template:KIO. Add flags with Template:Fl. They should all be in this order:
 * 1) Flags
 * 2) Keyvalues
 * 3) Inputs
 * 4) Outputs