Difference between revisions of "Template:Catnav/doc"

From Moegirlpedia
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
<includeonly>[[Category:Category page templates]][[Category:Navigational templates]][[zh:Template:Catnav]][[ja:Template:Catnav]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
 
== Instructions ==
 
== Instructions ==
 
It is placed at the top of the category page to facilitate the creation of navigation links.
 
It is placed at the top of the category page to facilitate the creation of navigation links.
Line 4: Line 5:
 
For example, after entering the following way in [[:Category:School-Live!]]:
 
For example, after entering the following way in [[:Category:School-Live!]]:
  
<nowiki>{{catnav|Categories|Works|Works by country|Works from Japan}}</nowiki>
+
<nowiki>{{catnav|Categories|Works|Works by country|Works from Japan}}</nowiki>
  
 
<div id="topicpath" title="catnav" style="border:1px outset #eef;padding:0.3em 0.6em;margin:0 0 0 0;background:#eef;clear:both;font-size:smaller;">[[:Category:Categories|Categories]] &gt; [[:Category:Works|Works]] &gt; [[:Category:Works by country|Works by country]] &gt; [[:Category:Works from Japan|Works from Japan]] &gt; School-Live!</div>
 
<div id="topicpath" title="catnav" style="border:1px outset #eef;padding:0.3em 0.6em;margin:0 0 0 0;background:#eef;clear:both;font-size:smaller;">[[:Category:Categories|Categories]] &gt; [[:Category:Works|Works]] &gt; [[:Category:Works by country|Works by country]] &gt; [[:Category:Works from Japan|Works from Japan]] &gt; School-Live!</div>
Line 14: Line 15:
 
It can also be displayed this way:
 
It can also be displayed this way:
  
<nowiki>{{catnav|Works|…|Works from Japan}}</nowiki>
+
<nowiki>{{catnav|Works|…|Works from Japan}}</nowiki>
 
<div id="topicpath" title="catnav" style="border:1px outset #eef;padding:0.3em 0.6em;margin:0 0 0 0;background:#eef;clear:both;font-size:smaller;">[[:Category:Works|Works]] &gt; … &gt; [[:Category:Works from Japan|Works from Japan]] &gt; School-Live!</div>
 
<div id="topicpath" title="catnav" style="border:1px outset #eef;padding:0.3em 0.6em;margin:0 0 0 0;background:#eef;clear:both;font-size:smaller;">[[:Category:Works|Works]] &gt; … &gt; [[:Category:Works from Japan|Works from Japan]] &gt; School-Live!</div>
 
A way to skip intermediate classifications. Not limited to "...", as long as it is not the correct category name, it will not be linked and the normal text will be displayed.
 
A way to skip intermediate classifications. Not limited to "...", as long as it is not the correct category name, it will not be linked and the normal text will be displayed.
 
<noinclude>[[Category:Template documentation]]</noinclude>
 

Latest revision as of 18:36, 14 May 2022

Instructions

It is placed at the top of the category page to facilitate the creation of navigation links.

For example, after entering the following way in Category:School-Live!:

{{catnav|Categories|Works|Works by country|Works from Japan}}

The above result will be displayed.

A maximum of 9 parameters can be added.

It can also be displayed this way:

{{catnav|Works|…|Works from Japan}}

Works > … > Works from Japan > School-Live!

A way to skip intermediate classifications. Not limited to "...", as long as it is not the correct category name, it will not be linked and the normal text will be displayed.