Template:Portal Box: Difference between revisions
Appearance
No edit summary |
m Fix formatting of the doc text |
||
| Line 33: | Line 33: | ||
</pre> | </pre> | ||
Each <code>{{Portal Box}}</code> call renders one section card. The outer wrapper controls the overall box border, title bar, and flex grid. | Each <code><nowiki>{{Portal Box}}</nowiki></code> call renders one section card. The outer wrapper controls the overall box border, title bar, and flex grid. | ||
Omit <code> | Omit <code><div class="infranav-title">...</div></code> if you don't need a header bar above the grid. | ||
== Styles == | == Styles == | ||
Latest revision as of 15:34, 18 April 2026
Section
Usage
Wrap one or more boxes in a portal grid container on your page:
<div class="infranav infranav--portal">
<div class="infranav-title">Infrastructure</div>
<div class="infranav-contents">
{{Portal Box|title=DNS & Networking|
* [[DNS servers]]
* [[Envoy Gateway]]
* [[Cilium]]
* [[Network subnets]]
}}
{{Portal Box|title=Kubernetes|
* [[Cluster overview]]
* [[Talos Linux]]
* [[Flux CD]]
* [[Longhorn storage]]
}}
{{Portal Box|title=Mail|
* [[Stalwart Mail]]
* [[DKIM keys]]
}}
{{Portal Box|title=Monitoring|
* [[VictoriaMetrics]]
* [[Grafana]]
* [[Alertmanager]]
}}
</div>
</div>
Each {{Portal Box}} call renders one section card. The outer wrapper controls the overall box border, title bar, and flex grid.
Omit <div class="infranav-title">...</div> if you don't need a header bar above the grid.
Styles
The template's styles are defined in Template:Portal Box/styles.css.
A single section card for a portal-style grid navigation box. Wrap multiple cards inside an infranav portal container.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | Heading shown above the card's content. | String | required |
| Content | 1 | Card body — typically a wikitext bullet list of links. | String | required |