Jump to content

Template:Navbox: Difference between revisions

From MTRNord's Wiki
m Fix collapse button
Fix collapse button
 
Line 1: Line 1:
<templatestyles src="Template:Navbox/styles.css" /><div class="mw-navbox">
<templatestyles src="Template:Navbox/styles.css" /><table class="mw-navbox mw-collapsible"><caption class="mw-navbox-title">{{{title|Navigation}}}</caption>
<div class="mw-navbox-title">{{{title|Navigation}}}</div>
<tr><td><table class="mw-navbox-inner">
<div class="mw-collapsible"><table>
{{#if:{{{group1_label|}}}|<tr><th class="mw-navbox-group">{{{group1_label}}}</th><td class="mw-navbox-list">{{{group1_links|}}}</td></tr>}}
{{#if:{{{group1_label|}}}|<tr><td class="mw-navbox-group">{{{group1_label}}}</td><td class="mw-navbox-list">{{{group1_links}}}</td></tr>}}
{{#if:{{{group2_label|}}}|<tr><th class="mw-navbox-group">{{{group2_label}}}</th><td class="mw-navbox-list">{{{group2_links|}}}</td></tr>}}
{{#if:{{{group2_label|}}}|<tr><td class="mw-navbox-group">{{{group2_label}}}</td><td class="mw-navbox-list">{{{group2_links}}}</td></tr>}}
{{#if:{{{group3_label|}}}|<tr><th class="mw-navbox-group">{{{group3_label}}}</th><td class="mw-navbox-list">{{{group3_links|}}}</td></tr>}}
{{#if:{{{group3_label|}}}|<tr><td class="mw-navbox-group">{{{group3_label}}}</td><td class="mw-navbox-list">{{{group3_links}}}</td></tr>}}
{{#if:{{{group4_label|}}}|<tr><th class="mw-navbox-group">{{{group4_label}}}</th><td class="mw-navbox-list">{{{group4_links|}}}</td></tr>}}
{{#if:{{{group4_label|}}}|<tr><td class="mw-navbox-group">{{{group4_label}}}</td><td class="mw-navbox-list">{{{group4_links}}}</td></tr>}}
</table></td></tr>
</table></div></div><noinclude>
</table><noinclude>
 
== Usage ==
== Usage ==


Place at the bottom of related pages. Each group shows a label on the left and pipe-separated wikilinks on the right.
Place at the bottom of related pages. Each group has a label on the left and pipe-separated wikilinks on the right.


<pre>
<pre>
Line 16: Line 15:
| title        = Cluster networking
| title        = Cluster networking
| group1_label  = DNS
| group1_label  = DNS
| group1_links  = [[dns-a]] · [[dns-b]] · [[DNS zones]]
| group1_links  = [[DNS servers]] · [[dns-a]] · [[dns-b]]
| group2_label  = Subnets
| group2_label  = Subnets
| group2_links  = [[Node subnet (10.0.64.0/19)]] · [[Pod subnet (10.0.128.0/17)]] · [[Service subnet (10.0.96.0/19)]]
| group2_links  = [[Node subnet (10.0.64.0/19)]] · [[Pod subnet (10.0.128.0/17)]]
| group3_label  = Ingress
| group3_label  = Ingress
| group3_links  = [[Envoy Gateway]] · [[HTTP routes]]
| group3_links  = [[Envoy Gateway]] · [[HTTP routes]]
Line 26: Line 25:
</pre>
</pre>


Use <code>·</code> (middle dot, <code>&amp;middot;</code>) or plain wiki links separated by spaces as list separators.
Use <code>·</code> (middle dot) or spaces as link separators.


<templatedata>
<templatedata>
Line 32: Line 31:
     "description": "Bottom navigation box linking a cluster of related infrastructure pages. Complements categories by providing curated lateral navigation.",
     "description": "Bottom navigation box linking a cluster of related infrastructure pages. Complements categories by providing curated lateral navigation.",
     "params": {
     "params": {
         "title":        { "label": "Title",        "type": "string", "required": true, "description": "Name shown in the navbox header bar." },
         "title":        { "label": "Title",        "type": "string", "required": true },
         "group1_label": { "label": "Group 1 label", "type": "string" },
         "group1_label": { "label": "Group 1 label", "type": "string" },
         "group1_links": { "label": "Group 1 links", "type": "string", "description": "Wikilinks separated by · or spaces." },
         "group1_links": { "label": "Group 1 links", "type": "string", "description": "Wikilinks separated by · or spaces." },

Latest revision as of 14:15, 18 April 2026

Navigation



Usage

Place at the bottom of related pages. Each group has a label on the left and pipe-separated wikilinks on the right.

{{Navbox
| title         = Cluster networking
| group1_label  = DNS
| group1_links  = [[DNS servers]] · [[dns-a]] · [[dns-b]]
| group2_label  = Subnets
| group2_links  = [[Node subnet (10.0.64.0/19)]] · [[Pod subnet (10.0.128.0/17)]]
| group3_label  = Ingress
| group3_links  = [[Envoy Gateway]] · [[HTTP routes]]
| group4_label  = Mesh
| group4_links  = [[Cilium]] · [[WireGuard (Proxmox)]]
}}

Use · (middle dot) or spaces as link separators.

Bottom navigation box linking a cluster of related infrastructure pages. Complements categories by providing curated lateral navigation.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

no description

Stringrequired
Group 1 labelgroup1_label

no description

Stringoptional
Group 1 linksgroup1_links

Wikilinks separated by · or spaces.

Stringoptional
Group 2 labelgroup2_label

no description

Stringoptional
Group 2 linksgroup2_links

no description

Stringoptional
Group 3 labelgroup3_label

no description

Stringoptional
Group 3 linksgroup3_links

no description

Stringoptional
Group 4 labelgroup4_label

no description

Stringoptional
Group 4 linksgroup4_links

no description

Stringoptional