Template:Navbox: Difference between revisions
Created page with "<templatestyles src="Template:Navbox/styles.css" /><div class="mw-navbox"> <div class="mw-navbox-title mw-collapsible mw-made-collapsible">{{{title|Navigation}}} <span class="mw-collapsible-toggle mw-collapsible-toggle-default">[<a>hide</a>]</span></div> <div class="mw-collapsible-content"><table> {{#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><td cla..." |
Fix collapse button |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<templatestyles src="Template:Navbox/styles.css" />< | <templatestyles src="Template:Navbox/styles.css" /><table class="mw-navbox mw-collapsible"><caption class="mw-navbox-title">{{{title|Navigation}}}</caption> | ||
< | <tr><td><table class="mw-navbox-inner"> | ||
< | {{#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>< | {{#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>< | {{#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>< | {{#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>< | </table></td></tr> | ||
</table></ | </table><noinclude> | ||
== Usage == | == Usage == | ||
Place at the bottom of related pages. Each group | 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 15: | Line 15: | ||
| title = Cluster networking | | title = Cluster networking | ||
| group1_label = DNS | | group1_label = DNS | ||
| group1_links = [[ | | 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 | | 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 25: | Line 25: | ||
</pre> | </pre> | ||
Use <code>·</code> (middle dot | Use <code>·</code> (middle dot) or spaces as link separators. | ||
<templatedata> | <templatedata> | ||
| Line 31: | 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 | "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." }, | ||