Template:Cat-nav: Difference between revisions

mNo edit summary
No edit summary
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><div class="boilerplate metadata" id="update" style="text-align: center; background: #efefff; margin: .5em 10%; padding: 0 1em; border: #9F9FFF 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;[[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}}}]]|}}
'''Categories-Navigation''': ''[[Categories]]:[[Categories:{{{1}}}|{{{1}}}]]{{#if: {{{2|}}}|&#58;[[Categories:{{{1}}}:{{{2}}}|{{{2}}}]]|}}{{#if: {{{3|}}}|&#58;[[Categories:{{{1}}}:{{{2}}}:{{{3}}}|{{{3}}}]]|}}{{#if: {{{4|}}}|:[[Categories:{{{1}}}:{{{2}}}:{{{3}}}:{{{4}}}|{{{4}}}]]|}}
----
</div></includeonly>
</div></includeonly>
<noinclude>
<noinclude>
[[Category:Template]]
<!--                background  frame
OLD green colorus:  #EFFFEF    #9FFF9F  (IMO too "flashy", a more neutral colour would be better)
NEW grey  colours:  #F9F9F9    #AAAAAA  (like TOC, looks quite elegant)
NEW blue  colours:  #EFEFFF    #A3A3CC   
-->
==Examples==
<tt><nowiki>{{cat-nav|Elements}}</nowiki></tt>
{{cat-nav|Elements}}
<tt><nowiki>{{cat-nav|Elements|Fantasy}}</nowiki></tt>
{{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: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}}
MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.