Usage
{{< caption text = "Caption content" [header = "Figure 1"] >}}Creates centered caption text with optional header for figures, images, or explanatory content
Description
Creates a centered caption with optional header text, perfect for image captions, figure labels, or explanatory notes that need visual separation from main content.
Parameters
indicates required parameter
text =
"string"REQUIRED
Main caption content
header =
"string"
Optional header/label text (styled in blue with emphasis)
Examples
Simple caption using hw shortcode
{{<hw t="caption" text="This diagram illustrates the basic architecture of our microservices platform.">}}Use hw shortcode with text parameter for basic explanatory captions
Figure caption with header label
{{<hw t="caption"
header="Figure 1"
text="User authentication flow showing the complete process from login to session management.">}}Add header parameter for formal figure numbering and identification
Image caption with description

{{<hw t="caption"
header="Screenshot"
text="The main dashboard showing real-time API metrics, response times, and error rates.">}}Perfect companion for images that need descriptive captions
Code example caption
```javascript
const user = await User.findById(id);
if (!user) throw new Error('User not found');
```
{{<hw t="caption"
header="Code Example 1"
text="Basic user lookup with error handling in our Node.js API.">}}Explain code blocks with numbered examples and clear descriptions
Table caption with context
{{<hw t="table">}}
{{<hw t="thead">}}
{{<hw t="trth">}}Service{{</hw>}}
{{<hw t="trth">}}Status{{</hw>}}
{{<hw t="trth">}}Uptime{{</hw>}}
{{</hw>}}
{{<hw t="tbody">}}
{{<hw t="tr">}}
{{<hw t="td">}}API Gateway{{</hw>}}
{{<hw t="td">}}✅ Operational{{</hw>}}
{{<hw t="td">}}99.9%{{</hw>}}
{{</hw>}}
{{</hw>}}
{{</hw>}}
{{<hw t="caption"
header="Table 1"
text="Current system status as of {{<hw t=\"include\" from=\"last-update.md\">}}. Updated automatically every 5 minutes.">}}Caption tables with dynamic content using includes for current information
Note caption for important information
{{<hw t="accordion">}}
{{<hw t="acc-tab" header="Installation Instructions">}}
{{<hw t="include" from="docs/install-steps.md">}}
{{</hw>}}
{{</hw>}}
{{<hw t="caption"
header="Important Note"
text="Installation requires administrator privileges and a system restart may be necessary.">}}Add important notes and warnings with proper visual separation
Additional Information