Template:FactionColor/doc

Important note: if you add or change a color in this template, please ask an admin to update the appropriate faction styles as well. (Admins, see the bottom of this document for help on these updates.)

This template generates a web-safe color represented as hex-triplet, e.g. "#666" for the "generic" faction. The parameter is automatically converted to lower case, so "Borg", "BORG" and "borg" all yield the same result. The following values are valid for the parameter:


 * apu 
 * benthan 
 * bluegill 
 * borg 
 * breen 
 * cardassian 
 * cooperative 
 * cravic 
 * deferi 
 * devidian 
 * dominion 
 * drantzuli 
 * dsc starfleet 
 * elachi 
 * federation 
 * terran empire 
 * fek'ihri <div style="color=#000; background-color: ;">
 * ferengi <div style="color=#000; background-color: ;">
 * generic <div style="color=#000; background-color: ;">
 * gorn <div style="color=#000; background-color: ;">
 * hazari <div style="color=#000; background-color: ;">
 * hierarchy <div style="color=#000; background-color: ;">
 * hirogen <div style="color=#000; background-color: ;">
 * hur'q <div style="color=#000; background-color: ;">
 * iconian <div style="color=#000; background-color: ;">
 * kazon <div style="color=#000; background-color: ;">
 * kentari <div style="color=#000; background-color: ;">
 * klingon <div style="color=#000; background-color: ;">
 * kobali <div style="color=#000; background-color: ;">
 * krenim <div style="color=#000; background-color: ;">
 * lukari <div style="color=#000; background-color: ;">
 * malon <div style="color=#000; background-color: ;">
 * monster <div style="color=#000; background-color: ;">
 * na'kuhl <div style="color=#000; background-color: ;">
 * nausicaan <div style="color=#000; background-color: ;">
 * object <div style="color=#000; background-color: ;">
 * ocampa <div style="color=#000; background-color: ;">
 * octanti <div style="color=#000; background-color: ;">
 * orion <div style="color=#000; background-color: ;">
 * pralor <div style="color=#000; background-color: ;">
 * q <div style="color=#000; background-color: ;">
 * reman <div style="color=#000; background-color: ;">
 * romulan republic, new romulan, romulan, romulan-all <div style="color=#000; background-color: ;">
 * romulan star empire <div style="color=#000; background-color: ;">
 * son'a <div style="color=#000; background-color: ;">
 * sphere builders <div style="color=#000; background-color: ;">
 * starfleet <div style="color=#000; background-color: ;">
 * talaxian <div style="color=#000; background-color: ;">
 * tholian <div style="color=#000; background-color: ;">
 * tos federation <div style="color=#000; background-color: ;">
 * true way <div style="color=#000; background-color: ;">
 * turei <div style="color=#000; background-color: ;">
 * tzenkethi <div style="color=#000; background-color: ;">
 * undine <div style="color=#000; background-color: ;">
 * vaadwaur <div style="color=#000; background-color: ;">
 * vorgon <div style="color=#000; background-color: ;">
 * voth <div style="color=#000; background-color: ;">
 * vulcan <div style="color=#000; background-color: ;">
 * both <div style="color=#000; background-color: ;">
 * cross-faction <div style="color=#000; background-color: ;">
 * default (no or invalid argument): <div style="color=#000; background-color: ;">

Admins: there are styles in both MediaWiki:Hydradark.css and MediaWiki:Mobile.css that needed to be updated. They will be found under this heading: /****************** /* Faction colors * /******************/

And a single faction looks something like this: .generic-info { border-color: #666; }

.generic, .generic-info .missionname { background: #666; }

The faction class name (in this case, ) is generated by running the faction parameter value in most infobox templates through Factionclass to make it (hopefully) acceptable in CSS. Spaces are replaced with hyphens, apostrophes are completely removed, and all letters are switched to lower case.

So for example:
 * would have a class name of
 * would have a class name of

To update, you can just copy and paste the above as a new style in both stylesheets, replacing all instances of  with the proper faction class name and all instances   with the desired color. It is recommended due to the large number of factions that they be kept in alphabetical order.