Template:Table
From Archaelund Wiki
Description
This template generates a table from the content given as input, provided this input is not empty. Otherwise it outputs a default message. The template is intended to be used whenever tablular content is automatically gathered and it is not clear beforehand whether such content exists or not.
Usage
{{Table
|Class =
|Head =
|Content =
|Default =
}}
Parameters
| Name | Required | Description | Values |
|---|---|---|---|
| Class | No | The class information to be forwarded to the table tag. | "table class" (in quotation marks) |
| Head | No | The head of the table. | <tr><th>...</th><th>...</th>...</tr> |
| Content | Yes | The table rows containing the actual content. | <tr><td>...</td><td>...</td>...</tr> |
| Default | No | The text to be displayed if the content is empty. | arbitrary text |
View/Edit documentation page