Difference between revisions of "Template:SKCell2"

From SpiralKnights

Jump to: navigation, search
m (Add clarification)
(reduce the amount of extra css generated)
Line 2: Line 2:
 
{| style="background: none;"
 
{| style="background: none;"
 
</noinclude>
 
</noinclude>
| colspan="{{{4|1}}}" rowspan="{{{5|1}}}" align="{{{2|left}}}" valign="{{{3|top}}}" style="width: {{{6|*}}}; height: {{{7|*}}}; background: {{{background|#c7dbea}}}; color: {{{color|#000000}}}; font-size: {{{font|normal}}}; padding: 2px 2px 2px 2px;" {{#if: {{{unsortable|}}} | class="unsortable"}}| {{{1|Content goes here.}}}<noinclude>
+
| {{#ifeq:{{{4|1}}}|1||colspan="{{{4}}}" }}{{#ifeq:{{{5|1}}}|1||rowspan="{{{5}}}" }}align="{{{2|left}}}" valign="{{{3|top}}}" style="width: {{{6|*}}}; height: {{{7|*}}}; background: {{{background|#c7dbea}}}; color: {{{color|#000000}}}; font-size: {{{font|normal}}}; padding: 2px" {{#if: {{{unsortable|}}} | class="unsortable"}}| {{{1|Content goes here.}}}<noinclude>
 
|}
 
|}
 
{{Documentation
 
{{Documentation

Revision as of 12:21, 20 December 2014

Content goes here.
Template documentation

This template creates a more compact cell in an SKWindow without the rounded edges.

Usage

This template is intended to be used in the "body" parameter of the SKWindow template.

Parameters

Optional

1 = The content of this cell.
2 = The horizontal alignment of the contents of this cell. Accepted values are the same as CSS text-align values.
3 = The vertical alignment of the contents of this cell. Accepted values are the same as CSS vertical-align values.
4 = How many columns of this table this cell will take up.
5 = How many rows of this table this cell will take up.
6 = The width of this cell.
7 = The height of this cell.
background = If you want a background other than light blue.
color = if you want a font color other than black.
unsortable = if you want the column to be unsortable, use "yes" (top row of table cells only)

Personal tools