Template:Cell

From MTG Wiki
Jump to navigation Jump to search

This template is used to create styled cells within wikitables.

The template replaces the cell, like this:

{| class="wikitable"
|-
{{Cell|tick}}
| Maybe?
{{Cell|unknown|Maybe!}}
{{Cell|no|Never!}}
|}
{Tick} Maybe? Maybe! Never!

It only works with MediaWiki's table syntax, not with HTML <table> elements.

Cell styles

The first parameter specifies the cell styles. It must be one of the following:

cell style default display
cross {Cross}
tick {Tick}
default {Question}

Optional parameters

The second parameter can be used to override the text.

  • {{{colspan}}}: adjusts across how many columns the cell spans. Defaults to 1.
  • {{{rowspan}}}: adjusts across how many rows the cell spans. Defaults to 1.
  • {{{color}}}: if the inherent color option should be overwritten.