Template:Rectangle 8x8/doc

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



Example
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.

gives:

Checkerboard pentomino, solution from.

Empty parameters are allowed, they become white cells.

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

Rectangle of another size than 8x8
For producing the wikitext for a similar template producing a rectangle of another size than 8x8:
 * if the number of squares is the same or less: delete unneeded lines and move the codes "|-" for "new row"
 * to use more similar lines of wikitext, see below, use lines of wikitext from below, or produce them with and  (nl0 = no leading zeros, parameter 02 is distinguished from parameter 2). The codes "|-" for "new row" still have to be inserted.

gives

Frieze groups example
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.