Data Modules

These are the various modules containing definitions of Concepts, Technologies, etc., used on the other pages.

They are in Lua since we can't use actual XML, etc., but the files under Builder/Data only contain actual data and should be editable by non-programmers. If you change something and start seeing "Script Error" on a bunch of pages, though, you might want to undo your changes and ask someone about how to make the change.

Types
Every data element had a type defined as "t=" in the element itself. The code uses this to determine default tip information such was what page to link to and whether the tip is text or a card; what tables to include the information in; what information to display on the card, etc.

If you don't know what type something should be, you can always use t.misc. If you want to create a new type so you can include it in a new table or link to a new page, see the comments at the top of Module:Builder/Data/Header and the comments in Module:Builder/Data/Formatting.

Be careful not to just use the type of a line you've copied and pasted, though, unless you really want it in that type. If you use "t=t.wm", for instance, your element will start appearing in the Weapon Mods table.

Data Modules

 * Module:Builder/Data/Header : Contains basic information used by all or many other modules. This is the place to add new types, etc.
 * Module:Builder/Data/Tech : Contains definitions for technologies. These are also used for the weapons, armor, etc., tables, since the techs contain all the information about them.
 * Module:Builder/Data/Concepts : Contains information on Concept tool tips, which is always what gets collated into the Glossary.
 * Module:Builder/Data/Text : Text used for Concepts tool tips that don't have their own page or section.
 * Module:Builder/Data/Misc : Place to add new types that don't really deserve their own data file.
 * Module:Builder/Data/WeaponMods : Definitions of, surprisingly, Weapon Mods.
 * Module:Builder/Data/Formatting : Contains default definitions by type of tool tips, info card stat lines, and tables. If you add a new type,  you probably want to add information for it here unless it just uses the base defaults.
 * Module:Builder/Data/TechGroups : Groups various technologies together to prevent displaying separate rows for Star Base upgrades, etc., in the Buildings table. Has little use for anything else.
 * Module:Builder/Data/Main : Pulls the information from all the other data files into one Lua table that can be cached by the main code. No reason to add to this unless you create a new Lua data table (not a new visual table).

Code Modules

 * Module:Builder : The actual Lua script code that transforms the data above into actual tool tips, info cards, tables, etc. Most everything can be done by adding or editing information in the data files above, but advanced functionality can be added here by people with at least a little programming knowledge and the patience to wade through completely uncommented script.