Template:Section nav: Difference between revisions

From 44Net Wiki
m KI5QKX moved page Template:Secton nav to Template:Section nav without leaving a redirect: Fix typo
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<!--
<div class="section-nav" style="margin:0 0 0.75em 0;">
Template:Section nav
<small>← Back to [[{{{hub}}}|{{{title|{{{hub}}}}}}]]</small>
{{{links|}}}
</div>


Usage examples:
[[Category:{{{category|Documentation}}}]]
  {{Section nav|hub=DNS|title=DNS|links=[[DNS/Overview|Overview]] · [[DNS/Portal/Subdomains|Subdomains]] · [[DNS/Portal/Records|Records]] · [[DNS/Portal/Reverse|Reverse]]|category=DNS}}
</includeonly>
  {{Section nav|hub=BGP|title=BGP|links=...|category=BGP}}
<noinclude>
Usage:


Optional:
<pre>
  |style=plain  (default)
{{Section nav
  |style=navbox  (if/when you have navbox)
| hub=DNS
  |nocat=1      (skip category)
  | title=DNS
-->
| links=<br /><small>[[DNS/Overview|Overview]] · [[DNS/Portal/Subdomains|Subdomains]] · [[DNS/Portal/Records|Records]] · [[DNS/Portal/Reverse|Reverse]]</small>
 
| category=DNS
{{#ifeq:{{{style|plain}}}|navbox
| {{navbox
  | name = section-nav-{{{hub|Section}}}
  | title = [[{{{hub|}}}|{{{title|{{{hub|}}}}}}]]
  | list1 = {{{links|}}}
  }}
| <div class="mw-section-nav" style="margin:0 0 0.75em 0;">
  {{small|← Back to [[{{{hub|}}}|{{{title|{{{hub|}}}}}}]]}}
  {{#if:{{{links|}}}|<br />{{small|{{{links}}}}}|}}
  </div>
}}
}}
</pre>


{{#ifeq:{{{nocat|}}}|1||{{#if:{{{category|}}}|[[Category:{{{category}}}]]|}}}}
</includeonly><noinclude>
== Section navigation template ==
Minimal:
<pre>{{Section nav|hub=DNS|title=DNS}}</pre>
With siblings:
<pre>{{Section nav|hub=DNS|title=DNS|links=[[DNS/Overview|Overview]] · [[DNS/Portal/Subdomains|Subdomains]] · [[DNS/Portal/Records|Records]] · [[DNS/Portal/Reverse|Reverse]]}}</pre>
With category:
<pre>{{Section nav|hub=DNS|title=DNS|category=DNS}}</pre>
Switch to navbox (once available):
<pre>{{Section nav|style=navbox|hub=DNS|title=DNS|links=...}}</pre>
</noinclude>
</noinclude>

Revision as of 22:10, 4 February 2026


Usage:

{{Section nav
 | hub=DNS
 | title=DNS
 | links=<br /><small>[[DNS/Overview|Overview]] · [[DNS/Portal/Subdomains|Subdomains]] · [[DNS/Portal/Records|Records]] · [[DNS/Portal/Reverse|Reverse]]</small>
 | category=DNS
}}