Use edit

This template makes it easy to create crosswords to be used in exercises, as an extra educational resource.

Examples edit

It's use is easy, as you can see in the following example:

Wiki code Result
{{Crossword/10|10
|   | ? |   |   |   | ? | ? | ? | ? | ? |
|   | ? |   | ? |   |   | ? |   | ? |   |
|   | ? |   | ? |   |   | ? |   | ? |   |
| ? | ? | ? | ? | ? |   | ? |   | ? |   |
|   | ? | # | ? |   |   | ? |   |   |   |
| ? | ? | ? | ? | ? | ? | ? | ? |   |   |
|   | ? | # | ? | # | # | ? |   |   |   |
|   |   | ? | ? | ? | ? | ? | ? | ? | ? |
|   |   |   | ? |   |   | ? |   |   |   |
|   |   |   | ? |   |   |   |   |   |   |
}}
Crossword
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   

Parameters edit

The total width and heigth is defined by the numbers after the name of template:

{{Crossword/<width>|<heigth>

Currently, the width can be only of 10. If you want other widths, you shoudld create a new template {{Crossword/<largura>}}, similar to the existent one.

The height can be of at least 5 rows and at most 10 (for while).

To define which squares should be displayed, use the character "?". If it is needed to fill some square so that it is not confused with the others, use the symbol "#".

Future versions edit

The template could be enhanced in order to be able to insert the answers in the wikitext (instead of just using "?") and to have a button to show/hide the answers. This would require some javascript similar to that of collapsible tables.