User talk:Alethia Archenksova: Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
m (Welcome!)
 
No edit summary
Tag: Manual revert
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Welcome|Dbb0t|[[User:Dbb0t|Dbb0t]] ([[User talk:Dbb0t|talk]]) 17:41, 10 August 2015 (UTC)}}
== Note to self: How CSS Works in DBWiki Tables ==
 
The example table:
 
<center>
{|align="center" cellpadding="3" cellspacing="3" class="fancy"
|-
|td colspan="7" class="head" style="background-color: #af3b1d"|&nbsp;
|-
| 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"|&nbsp;
|}
</center>
 
The example table in source:
 
<nowiki><center></nowiki><br />
<nowiki>{|align="center" cellpadding="3" cellspacing="3" class="fancy"</nowiki><br />
<nowiki>|-</nowiki><br />
<nowiki>|td colspan="7" class="head" style="background-color: #af3b1d"|&nbsp;</nowiki><br />
<nowiki>|-</nowiki><br />
<nowiki>| class="sub-head" width="12.5%" style="background-color: #af3b1d"| '''Arcona'''</nowiki><br />
<nowiki>| class="sub-head" width="12.5%" style="background-color: #af3b1d"| '''Naga Sadow'''</nowiki><br />
<nowiki>| class="sub-head" width="12.5%" style="background-color: #af3b1d"| '''Odan-Urr'''</nowiki><br />
<nowiki>| class="sub-head" width="12.5%" style="background-color: #af3b1d"| '''Plagueis'''</nowiki><br />
<nowiki>| class="sub-head" width="12.5%" style="background-color: #af3b1d"| '''Scholae Palatinae'''</nowiki><br />
<nowiki>| class="sub-head" width="12.5%" style="background-color: #af3b1d"| '''Taldryan'''</nowiki><br />
<nowiki>| class="sub-head" width="12.5%" style="background-color: #af3b1d"| '''Vizsla'''</nowiki><br />
<nowiki>|-</nowiki><br />
<nowiki>| style="text-align: center;"| 1st Place</nowiki><br />
<nowiki>| style="text-align: center;"| 2nd Place</nowiki><br />
<nowiki>| style="text-align: center;"| 3rd Place</nowiki><br />
<nowiki>| style="text-align: center;"| 4th Place</nowiki><br />
<nowiki>| style="text-align: center;"| 5th Place</nowiki><br />
<nowiki>| style="text-align: center;"| 6th Place</nowiki><br />
<nowiki>| style="text-align: center;"| 7th Place</nowiki><br />
<nowiki>|-</nowiki><br />
<nowiki>| style="text-align: center;"| 98,895,000 credits</nowiki><br />
<nowiki>| style="text-align: center;"| 90,250,000 credits</nowiki><br />
<nowiki>| style="text-align: center;"| 85,665,000 credits</nowiki><br />
<nowiki>| style="text-align: center;"| 80,317,500 credits</nowiki><br />
<nowiki>| style="text-align: center;"| 80,965,125 credits</nowiki><br />
<nowiki>| style="text-align: center;"| 78,640,619 credits</nowiki><br />
<nowiki>| style="text-align: center;"| 76,841,838 credits</nowiki><br />
<nowiki>|-</nowiki><br />
<nowiki>| style="text-align: center;"| Custom ship TBD (cruiser or smaller)</nowiki><br />
<nowiki>| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/bulwark-mark-i-prototype Bulwark Mark I Prototype]</nowiki><br />
<nowiki>| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/predator-class-battleship Predator-class Battleship]</nowiki><br />
<nowiki>| style="text-align: center;"| Custom ship TBD (frigate or smaller)</nowiki><br />
<nowiki>| style="text-align: center;"| Custom ship TBD (frigate or smaller)</nowiki><br />
<nowiki>| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/inquisitor-class-electronic-warfare-corvette Inquisitor-class Electronic Warfare corvette]</nowiki><br />
<nowiki>| style="text-align: center;"| Custom ship TBD (corvette or smaller)</nowiki><br />
<nowiki>|-</nowiki><br />
<nowiki>| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/ascendant-null-burst-projector Ascendant Null-Burst Projector]</nowiki><br />
<nowiki>| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/ascendant-crystal-phase-cannon Ascendant Crystal Phase Cannon]</nowiki><br />
<nowiki>| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/ascendant-crystal-cloaking-system Ascendant Crystal Cloaking System]</nowiki><br />
<nowiki>| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/ascendant-composite-beam-cannon Ascendant Composite Beam Cannon]</nowiki><br />
<nowiki>| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/ascendant-sensor-suite Ascendant Sensor Suite]</nowiki><br />
<nowiki>| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/ascendant-crystal-gravity-well-tractor-beam-generator Ascendant Crystal Gravity Well-Tractor Beam Generator]‎</nowiki><br />
<nowiki>| style="text-align: center;"| [https://www.darkjedibrotherhood.com/item_prototypes/purified-ascendant-crystal-medical-retrofit Purified Ascendant Crystal Medical Retrofit]‎</nowiki><br />
<nowiki>|-‎</nowiki><br />
<nowiki>|td colspan="7" class="foot" style="background-color: #af3b1d"|&nbsp;‎</nowiki><br />
<nowiki>|}</nowiki><br />
 
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.
 
</center>

Latest revision as of 14:03, 19 April 2024

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.