Template:Cat-nav: Difference between revisions

From AniDB
Jump to navigation Jump to search
m (Using blue-ish for now.)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div class="boilerplate metadata" id="update" style="text-align: center; background: #A3A3CC; margin: .5em 10%; padding: 0 1em; border: #EFEFFF 1px solid;">
<includeonly><div class="boilerplate metadata" id="update" style="text-align: center; background: #EFEFFF; margin: .5em 10%; padding: 0 1em; border: #A3A3CC 1px solid;">
'''Categories Navigation''': ''[[Categories]]&#58;&#58;[[Categories:{{{1}}}|{{{1}}}]]{{#if: {{{2|}}}|&#58;&#58;[[Categories:{{{1}}}:{{{2}}}|{{{2}}}]]|}}{{#if: {{{3|}}}|&#58;&#58;[[Categories:{{{1}}}:{{{2}}}:{{{3}}}|{{{3}}}]]|}}{{#if: {{{4|}}}|&#58;&#58;[[Categories:{{{1}}}:{{{2}}}:{{{3}}}:{{{4}}}|{{{4}}}]]|}}
'''Categories Navigation''': ''[[Categories]]&#58;[[Categories:{{{1}}}|{{{1}}}]]{{#if: {{{2|}}}|&#58;[[Categories:{{{1}}}:{{{2}}}|{{{2}}}]]|}}{{#if: {{{3|}}}|&#58;[[Categories:{{{1}}}:{{{2}}}:{{{3}}}|{{{3}}}]]|}}{{#if: {{{4|}}}|&#58;[[Categories:{{{1}}}:{{{2}}}:{{{3}}}:{{{4}}}|{{{4}}}]]|}}
</div></includeonly>
</div></includeonly>
<noinclude>
<noinclude>
<!--               bachground frame
<!--               background frame
  OLD green colors: #efffef     #9FFF9F  (IMO too "flashy", a more neutral colour would be better)
  OLD green colorus: #EFFFEF     #9FFF9F  (IMO too "flashy", a more neutral colour would be better)
  NEW grey  colors: #F9F9F9    #AAAAAA  (like TOC, looks quite elegant)
  NEW grey  colours: #F9F9F9    #AAAAAA  (like TOC, looks quite elegant)
  NEW blue  colors: #A3A3CC    #EFEFFF
  NEW blue  colours: #EFEFFF    #A3A3CC     
-->
-->
''Example:''
==Examples==
<tt><nowiki>{{cat-nav|Elements}}</nowiki></tt>
{{cat-nav|Elements}}
  <tt><nowiki>{{cat-nav|Elements|Fantasy}}</nowiki></tt>
  <tt><nowiki>{{cat-nav|Elements|Fantasy}}</nowiki></tt>
{{cat-nav|Elements|Fantasy}}


{{cat-nav|Elements|Fantasy}}
{{eyecatch|Note|Up to 4 category levels can be set via <tt>cat-nav</tt>, but only the first two levels are actually used in the wiki.}}
<tt><nowiki>{{cat-nav|Setting|Place|Europe}}</nowiki></tt>
{{cat-nav|Setting|Place|Europe}}
<tt><nowiki>{{cat-nav|Setting|Place|Europe|United Kingdom}}</nowiki></tt>
{{cat-nav|Setting|Place|Europe|United Kingdom}}


[[Category:Template]]
[[Category:Navigation Template]]
</noinclude>
</noinclude>

Latest revision as of 18:26, 6 May 2009


Examples

{{cat-nav|Elements}}
{{cat-nav|Elements|Fantasy}}


Note Up to 4 category levels can be set via cat-nav, but only the first two levels are actually used in the wiki.
{{cat-nav|Setting|Place|Europe}}
{{cat-nav|Setting|Place|Europe|United Kingdom}}