Difference between revisions of "Template:Smallnav"

From Moegirlpedia
Jump to: navigation, search
(Missing bracket)
Line 28: Line 28:
 
}}
 
}}
 
}}{{
 
}}{{
   #if: {{{hide|}}}| |&nbsp;&gt; <span title="本條目">{{#if: {{{name|}}}|{{{name}}}|{{PAGENAME}}}}</span>
+
   #if: {{{hide|}}}| |&nbsp;&gt; <span title="This article">{{#if: {{{name|}}}|{{{name}}}|{{PAGENAME}}}}</span>
 
}}</div>{{#if: {{{frame|}}}|</div>}}[[Category:Pages with smallnav]]<noinclude>
 
}}</div>{{#if: {{{frame|}}}|</div>}}[[Category:Pages with smallnav]]<noinclude>
 
{{Documentation}}</noinclude>
 
{{Documentation}}</noinclude>

Revision as of 20:48, 8 March 2022

 > Smallnav
Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

Example usage

{{smallnav|Page name 1|Page name 2|...|Page name 9|name=|hide=}}

Page name 1 to page name 9
Links to the specified page name. A maximum of 9 can be specified. and automatically generate links. You can use | to customize the page name.
name=
Manually set the page name.
hide=
Whether to omit the original page name. An entry name is required.
Automatically generated hidden category [pages using smallnav]
Maintenance can be found in Category:Hidden categories.

Other uses

A special small navigation bar with only three items, displayed in the center, for context-sensitive navigation of consecutive works.

Usage

{{smallnav/chronology|previous|next||name=|hide=|align=}}

name=
Manually set the page name.
hide=
Whether to omit the original page name. An entry name is required.
align=
Alignment, the default is center. You can fill in left or right.