Difference between revisions of "Lylat Wiki:Color Scheme"

176 bytes removed ,  04:41, 27 January 2019
updated
(updated)
(updated)
Line 16: Line 16:
As an example, take a look at the following text:  
As an example, take a look at the following text:  
<pre>
<pre>
<div style="{{character-bg-color}}">
<div style="{{Character color 2}}">
Text above table. [[Link]]. [[Fox McCloud|Fox]].
Text above table. [[Link]]. [[Fox McCloud|Fox]].
{| style="{{character-border}}"
{| style="{{Character color border}}"
|-
|-
! style="{{character-th-bg-color}}" | table header cell
! style="{{Character color 2}}" | table header cell
! style="{{character-th-bg-color}}" | text
! style="{{Character color 2}}" | text
! style="{{character-th-bg-color}}" | [[Fox McCloud|Fox]]
! style="{{Character color 2}}" | [[Fox McCloud|Fox]]
! style="{{character-th-bg-color}}" | table header cell
! style="{{Character color 2}}" | table header cell
! style="{{character-th-bg-color}}" | text
! style="{{Character color 2}}" | text
! style="{{character-th-bg-color}}" | [[link]]
! style="{{Character color 2}}" | [[link]]
|-
|-
| style="{{character-td-bg-color}}" | table header cell
| style="{{Character color 1}}" | table header cell
| style="{{character-td-bg-color}}" | text
| style="{{Character color 1}}" | text
| style="{{character-td-bg-color}}" | [[Fox McCloud|Fox]]
| style="{{Character color 1}}" | [[Fox McCloud|Fox]]
| style="{{character-td-bg-color}}" | table header cell
| style="{{Character color 1}}" | table header cell
| style="{{character-td-bg-color}}" | text
| style="{{Character color 1}}" | text
| style="{{character-td-bg-color}}" | [[link]]
| style="{{Character color 1}}" | [[link]]


|-
|-
Line 41: Line 41:


comes out as  
comes out as  
<div style="{{character-bg-color}}">
<div style="{{Character color 2}}">
Text above table. [[Link]]. [[Fox McCloud|Fox]].
Text above table. [[Link]]. [[Fox McCloud|Fox]].
{| style="{{character-border}}"
{| style="{{Character color border}}"
|-
|-
! style="{{character-th-bg-color}}" | table header cell
! style="{{Character color 2}}" | table header cell
! style="{{character-th-bg-color}}" | text
! style="{{Character color 2}}" | text
! style="{{character-th-bg-color}}" | [[link]]
! style="{{Character color 2}}" | [[link]]
| style="{{character-th-bg-color}}" | table header cell
| style="{{Character color 2}}" | table header cell
| style="{{character-th-bg-color}}" | text
| style="{{Character color 2}}" | text
| style="{{character-th-bg-color}}" | [[link]]
| style="{{Character color 2}}" | [[link]]
|-
|-
| style="{{character-td-bg-color}}" | table header cell
| style="{{Character color 1}}" | table header cell
| style="{{character-td-bg-color}}" | text
| style="{{Character color 1}}" | text
| style="{{character-td-bg-color}}" | [[link]]
| style="{{Character color 1}}" | [[link]]
! style="{{character-td-bg-color}}" | table header cell
! style="{{Character color 1}}" | table header cell
! style="{{character-td-bg-color}}" | text
! style="{{Character color 1}}" | text
! style="{{character-td-bg-color}}" | [[link]]
! style="{{Character color 1}}" | [[link]]
|-
|-
|}
|}
Text bellow table
Text bellow table
</div>
</div>
In the example, the div is stylized by {{t|character-bg-color}}, giving the div a green background color. The table is affected by {{t|character-border}}, 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.  
In the example, the div is stylized by {{t|Character color 2}}, giving the div a green background color. The table is affected by {{t|Character color border}}, 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 {{t|character-th-bg-color}} and the bottom row (the data cells) is affected by {{t|character-td-bg-color}}.  
Next, notice the top row and bottom row are different colors. This is because the top row (the header cells) is affected by {{t|Character color 2}} and the bottom row (the data cells) is affected by {{t|Character color 1}}.  


Now, each template doesn't have to be used in the manner that is specified here. You can make {{t|character-bg-color}} be a header-color instead, as is done [[Template:games|here]], and keep the background white. But it is recommended you do that with higher-order templates, like {{t|enemies}} and {{t|stages}}.  
Now, each template doesn't have to be used in the manner that is specified here. You can make {{t|Character color 2}} be a header-color instead, as is done [[Template:games|here]], and keep the background white. But it is recommended you do that with higher-order templates, like {{t|enemies}} and {{t|stages}}.  


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 <code>style=""</code> attriblute, once a css <code>class=""</code> is applied to one tag; it affects everything within it. So with the example above,  
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 <code>style=""</code> attriblute, once a css <code>class=""</code> is applied to one tag; it affects everything within it. So with the example above,  


<pre>
<pre>
<div class="color4" style="{{character-bg-color}}">
<div class="color4" style="{{Character color 2}}">
Text above table. [[Link]]. [[Fox McCloud|Fox]].
Text above table. [[Link]]. [[Fox McCloud|Fox]].
{| style="{{character-border}}"
{| style="{{Character color border}}"
|-
|-
! style="{{character-th-bg-color}}" | table header cell
! style="{{Character color 2}}" | table header cell
! style="{{character-th-bg-color}}" | text
! style="{{Character color 2}}" | text
! style="{{character-th-bg-color}}" | [[Fox McCloud|Fox]]
! style="{{Character color 2}}" | [[Fox McCloud|Fox]]
! style="{{character-th-bg-color}}" | table header cell
! style="{{Character color 2}}" | table header cell
! style="{{character-th-bg-color}}" | text
! style="{{Character color 2}}" | text
! style="{{character-th-bg-color}}" | [[link]]
! style="{{Character color 2}}" | [[link]]
|-
|-
| style="{{character-td-bg-color}}" | table header cell
| style="{{Character color 1}}" | table header cell
| style="{{character-td-bg-color}}" | text
| style="{{Character color 1}}" | text
| style="{{character-td-bg-color}}" | [[Fox McCloud|Fox]]
| style="{{Character color 1}}" | [[Fox McCloud|Fox]]
| style="{{character-td-bg-color}}" | table header cell
| style="{{Character color 1}}" | table header cell
| style="{{character-td-bg-color}}" | text
| style="{{Character color 1}}" | text
| style="{{character-td-bg-color}}" | [[link]]
| style="{{Character color 1}}" | [[link]]
|-
|-
|}
|}
Line 95: Line 95:


comes out as  
comes out as  
<div class="color5" style="{{character-bg-color}}">
<div class="color5" style="{{Character color 2}}">
Text above table. [[Link]]. [[Fox McCloud|Fox]].
Text above table. [[Link]]. [[Fox McCloud|Fox]].
{| style="{{character-border}}"
{| style="{{Character color border}}"
|-
|-
! style="{{character-th-bg-color}}" | table header cell
! style="{{Character color 2}}" | table header cell
! style="{{character-th-bg-color}}" | text
! style="{{Character color 2}}" | text
! style="{{character-th-bg-color}}" | [[Fox McCloud|Fox]
! style="{{Character color 2}}" | [[Fox McCloud|Fox]
| style="{{character-th-bg-color}}" | table header cell
| style="{{Character color 2}}" | table header cell
| style="{{character-th-bg-color}}" | text
| style="{{Character color 2}}" | text
| style="{{character-th-bg-color}}" | [[link]]
| style="{{Character color 2}}" | [[link]]
|-
|-
| style="{{character-td-bg-color}}" | table header cell
| style="{{Character color 1}}" | table header cell
| style="{{character-td-bg-color}}" | text
| style="{{Character color 1}}" | text
| style="{{character-td-bg-color}}" | [[Fox McCloud|Fox]
| style="{{Character color 1}}" | [[Fox McCloud|Fox]
! style="{{character-td-bg-color}}" | table header cell
! style="{{Character color 1}}" | table header cell
! style="{{character-td-bg-color}}" | text
! style="{{Character color 1}}" | text
! style="{{character-td-bg-color}}" | [[link]]
! style="{{Character color 1}}" | [[link]]
|-
|-
|}
|}
8,161

edits