User talk:Alethia Archenksova

From Wikipedia of the Dark Brotherhood, an online Star Wars Club

Note to self: How CSS Works in DBWiki Tables

The example table:

 
Arcona Naga Sadow Odan-Urr Plagueis Scholae Palatinae Taldryan Vizsla
1st Place 2nd Place 3rd Place 4th Place 5th Place 6th Place 7th Place
98,895,000 credits 90,250,000 credits 85,665,000 credits 80,317,500 credits 80,965,125 credits 78,640,619 credits 76,841,838 credits
Custom ship TBD (cruiser or smaller) Bulwark Mark I Prototype Predator-class Battleship Custom ship TBD (frigate or smaller) Custom ship TBD (frigate or smaller) Inquisitor-class Electronic Warfare corvette Custom ship TBD (corvette or smaller)
Ascendant Null-Burst Projector Ascendant Crystal Phase Cannon Ascendant Crystal Cloaking System Ascendant Composite Beam Cannon Ascendant Sensor Suite Ascendant Crystal Gravity Well-Tractor Beam Generator Purified Ascendant Crystal Medical Retrofit
 

The example table in source:

<center>
{|align="center" cellpadding="3" cellspacing="3" class="fancy"
|-
|td colspan="7" class="head" style="background-color: #af3b1d"| 
|-
| class="sub-head" width="12.5%" style="background-color: #af3b1d"| '''Arcona'''
| class="sub-head" width="12.5%" style="background-color: #af3b1d"| '''Naga Sadow'''
| class="sub-head" width="12.5%" style="background-color: #af3b1d"| '''Odan-Urr'''
| class="sub-head" width="12.5%" style="background-color: #af3b1d"| '''Plagueis'''
| class="sub-head" width="12.5%" style="background-color: #af3b1d"| '''Scholae Palatinae'''
| class="sub-head" width="12.5%" style="background-color: #af3b1d"| '''Taldryan'''
| class="sub-head" width="12.5%" style="background-color: #af3b1d"| '''Vizsla'''
|-
| style="text-align: center;"| 1st Place
| style="text-align: center;"| 2nd Place
| style="text-align: center;"| 3rd Place
| style="text-align: center;"| 4th Place
| style="text-align: center;"| 5th Place
| style="text-align: center;"| 6th Place
| style="text-align: center;"| 7th Place
|-
| style="text-align: center;"| 98,895,000 credits
| style="text-align: center;"| 90,250,000 credits
| style="text-align: center;"| 85,665,000 credits
| style="text-align: center;"| 80,317,500 credits
| style="text-align: center;"| 80,965,125 credits
| style="text-align: center;"| 78,640,619 credits
| style="text-align: center;"| 76,841,838 credits
|-
| style="text-align: center;"| Custom ship TBD (cruiser or smaller)
| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/bulwark-mark-i-prototype Bulwark Mark I Prototype]
| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/predator-class-battleship Predator-class Battleship]
| style="text-align: center;"| Custom ship TBD (frigate or smaller)
| style="text-align: center;"| Custom ship TBD (frigate or smaller)
| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/inquisitor-class-electronic-warfare-corvette Inquisitor-class Electronic Warfare corvette]
| style="text-align: center;"| Custom ship TBD (corvette or smaller)
|-
| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/ascendant-null-burst-projector Ascendant Null-Burst Projector]
| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/ascendant-crystal-phase-cannon Ascendant Crystal Phase Cannon]
| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/ascendant-crystal-cloaking-system Ascendant Crystal Cloaking System]
| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/ascendant-composite-beam-cannon Ascendant Composite Beam Cannon]
| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/ascendant-sensor-suite Ascendant Sensor Suite]
| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/ascendant-crystal-gravity-well-tractor-beam-generator Ascendant Crystal Gravity Well-Tractor Beam Generator]‎
| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/purified-ascendant-crystal-medical-retrofit Purified Ascendant Crystal Medical Retrofit]‎
|-‎
|td colspan="7" class="foot" style="background-color: #af3b1d"| ‎
|}

The wiki applies CSS based on the classes defined in MediaWiki:Chameleon.css. So the fancy class applies CSS in the Fancy Tables/table.fancy section to the whole table. Within the table, the class="sub-head" and class="foot" are pulling in Chameleon.css' table.fancy td.sub-head and table.fancy td.foot formatting, respectively, and applying them per-cell. This is probably why I can manually override some of the style attributes at the table and cell level, but putting style attributes at the row level--which should work per MediaWiki--doesn't do anything. Alternatively, you can remove the fancy class entirely and hand-code all the styling, which in the case would probably have been less work if I'd understood all this in the beginning.