Template:Portal Box: Difference between revisions
Appearance
Created page with "<templatestyles src="Template:Portal Box/styles.css" /><div class="mw-portal-box{{#if:{{{colour|}}}| mw-portal-box-{{{colour}}}}}"><div class="mw-portal-box-title">{{{title|Section}}}</div><div class="mw-portal-box-content">{{{1|}}}</div></div><noinclude> == Usage == Wrap multiple boxes in a grid container on your portal page: <pre> <div class="mw-portal-grid"> {{Portal Box|title=DNS & Networking|colour=teal| * DNS servers * Envoy Gateway * Cilium * Netwo..." |
No edit summary |
||
| Line 1: | Line 1: | ||
<templatestyles src="Template:Portal Box/styles.css" /><div class=" | <templatestyles src="Template:Portal Box/styles.css" /><div class="infranav-section"><div class="infranav-heading">{{{title|Section}}}</div>{{{1|}}}</div><noinclude> | ||
== Usage == | == Usage == | ||
Wrap | Wrap one or more boxes in a portal grid container on your page: | ||
<pre> | <pre> | ||
<div class=" | <div class="infranav infranav--portal"> | ||
{{Portal Box|title=DNS & Networking | <div class="infranav-title">Infrastructure</div> | ||
<div class="infranav-contents"> | |||
{{Portal Box|title=DNS & Networking| | |||
* [[DNS servers]] | * [[DNS servers]] | ||
* [[Envoy Gateway]] | * [[Envoy Gateway]] | ||
| Line 12: | Line 14: | ||
* [[Network subnets]] | * [[Network subnets]] | ||
}} | }} | ||
{{Portal Box|title=Kubernetes | {{Portal Box|title=Kubernetes| | ||
* [[Cluster overview]] | * [[Cluster overview]] | ||
* [[Talos Linux]] | * [[Talos Linux]] | ||
| Line 18: | Line 20: | ||
* [[Longhorn storage]] | * [[Longhorn storage]] | ||
}} | }} | ||
{{Portal Box|title=Mail | {{Portal Box|title=Mail| | ||
* [[Stalwart Mail]] | * [[Stalwart Mail]] | ||
* [[DKIM keys]] | * [[DKIM keys]] | ||
}} | }} | ||
{{Portal Box|title=Monitoring | {{Portal Box|title=Monitoring| | ||
* [[VictoriaMetrics]] | * [[VictoriaMetrics]] | ||
* [[Grafana]] | * [[Grafana]] | ||
* [[Alertmanager]] | * [[Alertmanager]] | ||
}} | }} | ||
</div> | |||
</div> | </div> | ||
</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. | |||
Omit <code><div class="infranav-title">...</div></code> if you don't need a header bar above the grid. | |||
== Styles == | |||
The template's styles are defined in [[Template:Portal Box/styles.css]]. | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "A single card for a portal-style grid navigation | "description": "A single section card for a portal-style grid navigation box. Wrap multiple cards inside an infranav portal container.", | ||
"params": { | "params": { | ||
"title": | "title": { "label": "Title", "type": "string", "required": true, "description": "Heading shown above the card's content." }, | ||
"1": { "label": "Content", "type": "string", "required": true, "description": "Card body — typically a wikitext bullet list of links." } | |||
"1": | |||
}, | }, | ||
"format": "inline" | "format": "inline" | ||
Revision as of 15:32, 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
Sectioncall renders one section card. The outer wrapper controls the overall box border, title bar, and flex grid. Omit
...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 |