Difference between revisions of "Template:Smallnav"

From Moegirlpedia
Jump to: navigation, search
(Created page with "{#if: {{{frame|}}}|<div class="pathnavbox">}} <div id="topicpath" title="" style="border:1px outset #eef;padding:0.3em 0.6em;margin:0 0 0 0;background:#eef;background-image: l...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{#if: {{{frame|}}}|<div class="pathnavbox">}}
+
{{#if: {{{frame|}}}|<div class="pathnavbox">}}
 
<div id="topicpath" title="" style="border:1px outset #eef;padding:0.3em 0.6em;margin:0 0 0 0;background:#eef;background-image: linear-gradient(bottom, rgb(238,238,255) 0%, rgb(250,250,255) 54%);background-image: -o-linear-gradient(bottom, rgb(238,238,255) 0%, rgb(250,250,255) 54%);background-image: -moz-linear-gradient(bottom, rgb(238,238,255) 0%, rgb(250,250,255) 54%);background-image: -webkit-linear-gradient(bottom, rgb(238,238,255) 0%, rgb(250,250,255) 54%);background-image: -ms-linear-gradient(bottom, rgb(238,238,255) 0%, rgb(250,250,255) 54%);background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0,rgb(238,238,255)),color-stop(0.54, rgb(250,250,255)));clear:both;font-size:smaller;cursor:default;">
 
<div id="topicpath" title="" style="border:1px outset #eef;padding:0.3em 0.6em;margin:0 0 0 0;background:#eef;background-image: linear-gradient(bottom, rgb(238,238,255) 0%, rgb(250,250,255) 54%);background-image: -o-linear-gradient(bottom, rgb(238,238,255) 0%, rgb(250,250,255) 54%);background-image: -moz-linear-gradient(bottom, rgb(238,238,255) 0%, rgb(250,250,255) 54%);background-image: -webkit-linear-gradient(bottom, rgb(238,238,255) 0%, rgb(250,250,255) 54%);background-image: -ms-linear-gradient(bottom, rgb(238,238,255) 0%, rgb(250,250,255) 54%);background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0,rgb(238,238,255)),color-stop(0.54, rgb(250,250,255)));clear:both;font-size:smaller;cursor:default;">
  
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>}}<noinclude>
 
{{Documentation}}</noinclude>
 
{{Documentation}}</noinclude>

Latest revision as of 23:31, 14 April 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.