"साँचा:BookCat": अवतरणों में अंतर

Updated description.
Changing #default to a Wikijunior fall-through/main namespace match.
पंक्ति १:
<includeonly>{{#switch:{{NAMESPACE}}|Template={{#ifeq:"{{FULLCHAPTERNAME}}"|"{{FULLBOOKNAME}}"|[[Category:{{BOOKNAME}}/Templates|{{{1| }}}]]|[[Category:{{BOOKNAME}}/Templates|{{{1|{{FULLCHAPTERNAME}}}}}]]}}|Category={{#ifeq:"{{FULLCHAPTERNAME}}"|"{{FULLBOOKNAME}}"||[[Category:{{#titleparts:{{PAGENAME}}|-1}}|{{#titleparts:{{PAGENAME}}||-1}}]]{{#ifeq:"{{FULLCHAPTERNAME}}"|"Templates"| [[Category:Book-specific templates|{{PAGENAME}}]]}}}}|#defaultWikijunior| ={{#ifeq:"{{FULLCHAPTERNAME}}"|"{{FULLBOOKNAME}}"|[[Category:{{FULLBOOKNAME}}|{{{1| }}}]]|[[Category:{{FULLBOOKNAME}}|{{{1|{{FULLCHAPTERNAME}}}}}]]}} }}</includeonly><noinclude>
This template does the following, based on the page it's added to:
*Places subpages of a book in the book's category (<tt>Category:{{tlx|FULLBOOKNAME}}</tt>) and sorts them by chapter name.