9,795
edits
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.
Line 63: | Line 63: | ||
Text bellow table | Text bellow table | ||
</div> | </div> | ||
In the example, the div is stylized by {{tl| | In the example, the div is stylized by {{tl|character-bg-color}}, giving the div a green background color. The table is affected by {{tl|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. | ||
Next, notice the top row and bottom row are different colors. This is because the top row (the header cells) is affected by {{tl| | Next, notice the top row and bottom row are different colors. This is because the top row (the header cells) is affected by {{tl|character-th-bg-color}} and the bottom row (the data cells) is affected by {{tl|character-td-bg-color}}. | ||
Now, each template doesn't have to be used in the manner that is specified here. You can make {{tl| | Now, each template doesn't have to be used in the manner that is specified here. You can make {{tl|character-bg-color}} be a header-color instead, as is done [[Template:games v2.0|here]], and keep the background white. But it is recommended you do that with higher-order templates, like {{tl|enemies v2.0}} and {{tl|stages v2.0}}. | ||
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="{{ | <div class="color4" style="{{character-bg-color}}"> | ||
Text above table. [[Link]]. [[Fox]]. | Text above table. [[Link]]. [[Fox]]. | ||
{| style="{{ | {| style="{{character-border}}" | ||
|- | |- | ||
! style="{{ | ! style="{{character-th-bg-color}}" | table header cell | ||
! style="{{ | ! style="{{character-th-bg-color}}" | text | ||
! style="{{ | ! style="{{character-th-bg-color}}" | [[fox]] | ||
! style="{{ | ! style="{{character-th-bg-color}}" | table header cell | ||
! style="{{character-th-bg-color}}" | text | |||
! style="{{character-th-bg-color}}" | [[link]] | |||
|- | |- | ||
| style="{{ | | style="{{character-td-bg-color}}" | table header cell | ||
| style="{{ | | style="{{character-td-bg-color}}" | text | ||
| style="{{ | | style="{{character-td-bg-color}}" | [[fox]] | ||
| style="{{ | | style="{{character-td-bg-color}}" | table header cell | ||
| style="{{character-td-bg-color}}" | text | |||
| style="{{character-td-bg-color}}" | [[link]] | |||
|- | |- | ||
|} | |} |