Template:Table/doc

From Archaelund Wiki
< Template:Table
Revision as of 13:11, 14 March 2020 by MikeB (talk | contribs) (Created page with "== 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 in...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

NameRequiredDescriptionValues
ClassNoThe class information to be forwarded to the table tag."table class" (in quotation marks)
HeadNoThe head of the table.<tr><th>...</th><th>...</th>...</tr>
ContentYesThe table rows containing the actual content.<tr><td>...</td><td>...</td>...</tr>
DefaultNoThe text to be displayed if the content is empty.arbitrary text