User:Mainframe98/Archive/sandbox 5

Portable Infoboxes

 * DO NOT IMPLEMENT THESE TEMPLATES YET!
 * These templates rely on styling from MediaWiki:Common.css, which has to be implemented first.


 * Test environment available at User:Mainframe98/Templates/TemplateStore.

Goal: Convert the infoboxes to the new portable infoboxes style by using  tags. Note that the custom CSS used on current infoboxes may need has to be rewritten. (see Help:PortableInfoboxes/CSS for instructions related to CSS) (Already done: See the section Combined CSS on this page. Notes: Alignment has yet to be added.

CSS
Notes: Rewriting of CSS required. help states that class for infoboxes is. Replacement of deprecated  necessary. Edit: Taken care of, awaiting implementation. For the rewritten CSS see User:Mainframe98/Sandbox.

Modifying Template:Gunbox


Modifying Template:ResearchInfo
 |

Modifying Template:PersonInfobox
 Involvement in the BioShock series External Links

Modifying Template:Charinfobox
 name? Physical Description Unique Cosmetic Options Appearances

Modifying Template:Enemybox


Modifying Template:Level Infobox
 New discoveries Collectibles Enemies encountered

Modifying Template:Splicerinfobox
 Characters who use this model Appearances

Modifying Template:BookInfobox
"

Rewriting general CSS for infoboxes
Goal: Rewriting the CSS used in the infoboxes, so the new Portable Infoboxes look the same as the current ones. Besides that, also trying to clean up the code.

General attribute storage
There are several CSS styles used on all infoboxes.
 * Headers
 * General background color
 * Borders
 * Font color
 * Borders
 * Font color
 * Font color

Structure

 * The  tag can have an attribute to specify a class. This class must contain the general CSS for ALL infoboxes in that particular series (I.E. square infoboxes with a gray border).
 * Separate parts of the infobox can be set manually by changing the helper classes in Mediawiki:Common.css, allowing titles to be centered. (I.E. setting .pi-background).
 * Generally, the helper classes are defined first, then the classes used by the infobox tags.
 * Category:Infobox templates can be divided in four parts, infoboxes with square borders type one, infoboxes with square borders type two, infoboxes with square borders type four and infoboxes with rounded borders, with each part having their own class used by the infobox tag. The helper classes are shared between the two parts.
 * There are three levels in classes:
 * General Classes, used by the  tag.
 * General Helper Classes, used by all infoboxes. (NOTE: Make sure the content of these general helper classes is General!)
 * Sub Helper Classes, as part of the General Classes, for specific css in a general class.
 * All current infoboxes share the same base structure:
 * Note that some individual elements are not ported yet. (I.E. several internal borders, and some padding/margin for the entire infobox) These will be added later.

CSS to be

 * DISREGARD THIS SECTION! The updated and correct code is located at !

Helper Classes

 * Overview of helper Classes located at Help:Portable infoboxes/CSS

Combined CSS

 * ONLY CORRECT CODE! ONLY COPY CODE FROM THIS SECTION TO Mediawiki:Common.css
 * Always check User:Mainframe98/common.css for updated code!