Difference between revisions of "Template:Catnav/doc"

From Moegirlpedia
Jump to: navigation, search
(Added category, ZhMGP link and JaMGP link)
 
Line 1: Line 1:
<includeonly>[[Category:Navigational templates]][[zh:Template:Catnav]][[ja:Template:Catnav]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
+
<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 5: 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 15: 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.

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.