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

+category
Combining code from {{BookTemplateCat}}
पंक्ति १:
<includeonly>{{#switch:{{NAMESPACE}}|Template=[[Category:{{BOOKNAME}}/Templates|{{FULLCHAPTERNAME}}]]|Category=[[Category:{{BOOKNAME}}|{{FULLCHAPTERNAME}}]] [[Category:Book-specific templates|{{PAGENAME}}]]|#default={{#ifeq:"{{FULLCHAPTERNAME}}"|"{{FULLBOOKNAME}}"|[[Category:{{FULLBOOKNAME}}|{{{1| }}}]]|[[Category:{{FULLBOOKNAME}}|{{{1|{{FULLCHAPTERNAME}}}}}]]}}</includeonly><noinclude> }}
</includeonly><noinclude>
Sorts a book by book title or by chapter name depending on what page it's added to.
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.
*Places a book's templates in the template category ({{nowrap|<tt>Category:{{tlx|BOOKNAME}}/Templates</tt>}}). ''This only works if a book's templates begin with'' {{nowrap|Template:{{tlx|FULLBOOKNAME}}/}}.
*Places a book's template category in the book's category and {{nowrap|[[:Category:Book-specific templates]]}}.
 
See [[Using Wikibooks/Subjects, Categories, and Classifications#Deep filing (advanced)]] for more information.
[[Category:Catalogue templates]]</noinclude>