Welcome to the Lylat Wiki, all about the Star Fox series! If you'd like to help out, please take a look at our community portal.

Lylat Wiki:Color Scheme

From Lylat Wiki, your source on Star Fox information. By Fans, for Fans.
Revision as of 18:41, 15 February 2013 by Tacobot (talk | contribs) (Text replace - " v2.0" to "")
Jump to navigationJump to search
Shortcuts: Policy , [[ Template:LW:Color ]]


For ease of identification, or just for the fun of it, each Area of the Wiki is color-coded and then each template, table, div, etc. related to that area is colored in a similar manner (some exceptions apply). And we aren't just talking about the background or border. In fact, for most templates, we have 4 areas in which a template can have it's colors be that of the color(s) as chosen by the WikiProject. These are:

-border
For the border
-bg-color
For the general background color
-th-bg-color
For the background color for the table header cells.
-id-bg-color
for the background color for the table data cells.


Example

As an example, take a look at the following text:

<div style="{{character-bg-color}}">
Text above table. [[Link]]. [[Fox McCloud|Fox]].
{| style="{{character-border}}"
|-
! style="{{character-th-bg-color}}" | table header cell
! style="{{character-th-bg-color}}" | text
! style="{{character-th-bg-color}}" | [[Fox McCloud|Fox]]
! style="{{character-th-bg-color}}" | table header cell
! style="{{character-th-bg-color}}" | text
! style="{{character-th-bg-color}}" | [[link]]
|-
| style="{{character-td-bg-color}}" | table header cell
| style="{{character-td-bg-color}}" | text
| style="{{character-td-bg-color}}" | [[Fox McCloud|Fox]]
| style="{{character-td-bg-color}}" | table header cell
| style="{{character-td-bg-color}}" | text
| style="{{character-td-bg-color}}" | [[link]]

|-
|}
Text bellow table
</div>

comes out as

Text above table. Link. Fox.

style="Template:Character-th-bg-color" | table header cell style="Template:Character-th-bg-color" | text style="Template:Character-th-bg-color" | link style="Template:Character-th-bg-color" | table header cell style="Template:Character-th-bg-color" | text style="Template:Character-th-bg-color" | link
style="Template:Character-td-bg-color" | table header cell style="Template:Character-td-bg-color" | text style="Template:Character-td-bg-color" | link style="Template:Character-td-bg-color" | table header cell style="Template:Character-td-bg-color" | text style="Template:Character-td-bg-color" | link

Text bellow table

In the example, the div is stylized by Template:Tl, giving the div a green background color. The table is affected by Template:Tl, giving it a light-green border. But notice, it no longer has the green background of the div. This is important to take notice, even if it is as a reminder to yourself and nothing more, as when you are designing a table with this in mind, you may over look this fact.

Next, notice the top row and bottom row are different colors. This is because the top row (the header cells) is affected by Template:Tl and the bottom row (the data cells) is affected by Template:Tl.

Now, each template doesn't have to be used in the manner that is specified here. You can make Template:Tl be a header-color instead, as is done here, and keep the background white. But it is recommended you do that with higher-order templates, like Template:Tl and Template:Tl.

to help with the link colors, it is also useful to throw on a matching color code through the div's or table's css class. Unlike the style="" attriblute, once a css class="" is applied to one tag; it affects everything within it. So with the example above,

<div class="color4" style="{{character-bg-color}}">
Text above table. [[Link]]. [[Fox McCloud|Fox]].
{| style="{{character-border}}"
|-
! style="{{character-th-bg-color}}" | table header cell
! style="{{character-th-bg-color}}" | text
! style="{{character-th-bg-color}}" | [[Fox McCloud|Fox]]
! style="{{character-th-bg-color}}" | table header cell
! style="{{character-th-bg-color}}" | text
! style="{{character-th-bg-color}}" | [[link]]
|-
| style="{{character-td-bg-color}}" | table header cell
| style="{{character-td-bg-color}}" | text
| style="{{character-td-bg-color}}" | [[Fox McCloud|Fox]]
| style="{{character-td-bg-color}}" | table header cell
| style="{{character-td-bg-color}}" | text
| style="{{character-td-bg-color}}" | [[link]]
|-
|}
Text bellow table
</div>

comes out as

Text above table. Link. Fox.

style="Template:Character-th-bg-color" | table header cell style="Template:Character-th-bg-color" | text style="Template:Character-th-bg-color" | [[Fox McCloud|Fox] style="Template:Character-th-bg-color" | table header cell style="Template:Character-th-bg-color" | text style="Template:Character-th-bg-color" | link
style="Template:Character-td-bg-color" | table header cell style="Template:Character-td-bg-color" | text style="Template:Character-td-bg-color" | [[Fox McCloud|Fox] style="Template:Character-td-bg-color" | table header cell style="Template:Character-td-bg-color" | text style="Template:Character-td-bg-color" | link

Text bellow table


Usage

Here are the specific templates and color codes available for you to choose.

CSS syle-templates

Template:Color Templates

CSS color-codes

Template:Color-Codes