Template:TableHeaderOptional/doc
Template page
More actions
Purpose
This helper emits Template:TableHeader only when a heading value is supplied. It is intended for infoboxes and other template-generated wiki tables where a section heading is conditional.
Usage
{{TableHeaderOptional
|Value=
}}
Parameters
| Parameter | Required | Explanation |
|---|---|---|
Value
|
No | Heading text passed to Template:TableHeader. The parameter name is case-sensitive. When empty or omitted, this template produces no table row.
|
Use inside tables
This template emits table-row markup and is not intended as a standalone article element. It must be called inside a compatible wiki table or an infobox assembled with the related table helpers.
{{Tabletop|Example}}
{{TableHeaderOptional|Value=Details}}
{{Tablebottom}}
The example remains literal because rendering isolated table-helper examples on documentation pages can produce misleading layout or malformed surrounding table markup.