Template:Rectangle 8x8
{{{1}}}|w={{{w}}}|h={{{h}}}}} | {{{2}}}|w={{{w}}}|h={{{h}}}}} | {{{3}}}|w={{{w}}}|h={{{h}}}}} | {{{4}}}|w={{{w}}}|h={{{h}}}}} | {{{5}}}|w={{{w}}}|h={{{h}}}}} | {{{6}}}|w={{{w}}}|h={{{h}}}}} | {{{7}}}|w={{{w}}}|h={{{h}}}}} | {{{8}}}|w={{{w}}}|h={{{h}}}}} |
{{{9}}}|w={{{w}}}|h={{{h}}}}} | {{{10}}}|w={{{w}}}|h={{{h}}}}} | {{{11}}}|w={{{w}}}|h={{{h}}}}} | {{{12}}}|w={{{w}}}|h={{{h}}}}} | {{{13}}}|w={{{w}}}|h={{{h}}}}} | {{{14}}}|w={{{w}}}|h={{{h}}}}} | {{{15}}}|w={{{w}}}|h={{{h}}}}} | {{{16}}}|w={{{w}}}|h={{{h}}}}} |
{{{17}}}|w={{{w}}}|h={{{h}}}}} | {{{18}}}|w={{{w}}}|h={{{h}}}}} | {{{19}}}|w={{{w}}}|h={{{h}}}}} | {{{20}}}|w={{{w}}}|h={{{h}}}}} | {{{21}}}|w={{{w}}}|h={{{h}}}}} | {{{22}}}|w={{{w}}}|h={{{h}}}}} | {{{23}}}|w={{{w}}}|h={{{h}}}}} | {{{24}}}|w={{{w}}}|h={{{h}}}}} |
{{{25}}}|w={{{w}}}|h={{{h}}}}} | {{{26}}}|w={{{w}}}|h={{{h}}}}} | {{{27}}}|w={{{w}}}|h={{{h}}}}} | {{{28}}}|w={{{w}}}|h={{{h}}}}} | {{{29}}}|w={{{w}}}|h={{{h}}}}} | {{{30}}}|w={{{w}}}|h={{{h}}}}} | {{{31}}}|w={{{w}}}|h={{{h}}}}} | {{{32}}}|w={{{w}}}|h={{{h}}}}} |
{{{33}}}|w={{{w}}}|h={{{h}}}}} | {{{34}}}|w={{{w}}}|h={{{h}}}}} | {{{35}}}|w={{{w}}}|h={{{h}}}}} | {{{36}}}|w={{{w}}}|h={{{h}}}}} | {{{37}}}|w={{{w}}}|h={{{h}}}}} | {{{38}}}|w={{{w}}}|h={{{h}}}}} | {{{39}}}|w={{{w}}}|h={{{h}}}}} | {{{40}}}|w={{{w}}}|h={{{h}}}}} |
{{{41}}}|w={{{w}}}|h={{{h}}}}} | {{{42}}}|w={{{w}}}|h={{{h}}}}} | {{{43}}}|w={{{w}}}|h={{{h}}}}} | {{{44}}}|w={{{w}}}|h={{{h}}}}} | {{{45}}}|w={{{w}}}|h={{{h}}}}} | {{{46}}}|w={{{w}}}|h={{{h}}}}} | {{{47}}}|w={{{w}}}|h={{{h}}}}} | {{{48}}}|w={{{w}}}|h={{{h}}}}} |
{{{49}}}|w={{{w}}}|h={{{h}}}}} | {{{50}}}|w={{{w}}}|h={{{h}}}}} | {{{51}}}|w={{{w}}}|h={{{h}}}}} | {{{52}}}|w={{{w}}}|h={{{h}}}}} | {{{53}}}|w={{{w}}}|h={{{h}}}}} | {{{54}}}|w={{{w}}}|h={{{h}}}}} | {{{55}}}|w={{{w}}}|h={{{h}}}}} | {{{56}}}|w={{{w}}}|h={{{h}}}}} |
{{{57}}}|w={{{w}}}|h={{{h}}}}} | {{{58}}}|w={{{w}}}|h={{{h}}}}} | {{{59}}}|w={{{w}}}|h={{{h}}}}} | {{{60}}}|w={{{w}}}|h={{{h}}}}} | {{{61}}}|w={{{w}}}|h={{{h}}}}} | {{{62}}}|w={{{w}}}|h={{{h}}}}} | {{{63}}}|w={{{w}}}|h={{{h}}}}} | {{{64}}}|w={{{w}}}|h={{{h}}}}} |
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
editIn 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
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
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.