Template:Rectangle 8x8/doc

From Meta, a Wikimedia project coordination wiki

This template produces a rectangle consisting of 8 by 8 small rectangles, where the kth cell is produced by the template with name {{{t}}} as follows:

{{{{{t}}}|{{{k }}}|w={{{w}}}|h={{{h}}}}}.

Example[edit]

In this example the 64 cell parameters are color codes, while w is the width and h the height. For each color code used there has to be template like Template:color r containing "red".

{{rectangle 8x8|t=box|w=40|h=40|=

|r|g|g|g|b|r|r|g|=
|r|r|g|b|b|b|r|g|=
|r|r|g| |b|r|r|g|=
|g|l|l|l|f| |b|g|=
|g|l| |f|f|b|b|g|=
|g|l|f|f| |r|b|b|=
|g|g|b|b|g|r|r|r|=
|b|b|b|g|g|g|g|r|=

}}

gives:

Checkerboard pentomino, solution from [1].

Empty parameters are allowed, they become white cells.

For various image sizes, see Template talk:Square 8x8 pentomino example.

Frieze groups example[edit]

Frieze groups:

While the image on the right is fine too, the image on the left has the advantage that it is much easier to edit, just by editing the wikitext, without a graphics program and without a file upload procedure. Also, when changing the image diff works.

Note: the image on the left should not be seen as a crude approximation of the image on the right, but as a set of examples in its own right, with the elegance of simplicity in terms of the number of pixels needed.