"साँचा:BookCat": अवतरणों में अंतर
Content deleted Content added
छो Fixed sort key |
Updates by Pi zero |
||
पंक्ति १:
<includeonly>{{#ifeq:{{FULLPAGENAME}}|{{TALKPAGENAME}}||{{#switch:{{NAMESPACE}}|Template={{#ifeq:
This template puts the page on which it's used (<code><nowiki>{{FULLPAGENAME}}</nowiki></code>) into appropriate categories, based on certain page-naming and page-categorization conventions.
When used without parameters, it
*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|<tt>Template:{{tlx|FULLBOOKNAME}}</tt>}} .▼
*
▲*
*Places any other category in its parent, sorted by its last name. The parent has the same name except removing every from the last slash on; and the last name is the part that was removed after that last slash. For example, {{nowrap|<tt>Category:My Book/Images</tt>}} would go in {{nowrap|<tt>Category:My Book</tt>}} with sort key <tt>Images</tt>.▼
*places a book's template category in the book's category and in {{nowrap|<code>[[:Category:Book-specific templates]]</code>}} .
▲*
Optional parameter {{nowrap|<code><nowiki>filing=deep</nowiki></code>}} changes the behavior on book pages, so that a book page with more than one slash in its name is placed in a subcategory of the category where its parent page would be placed, sorted by the page's last name. For example, using {{nowrap|<code><nowiki>{{BookCat|filing=deep}}</nowiki></code>}} on page {{nowrap|<code>My Book/Maps/Asia</code>}} would put that page in {{nowrap|<code>Category:My Book/Maps</code>}} with sort key <code>Asia</code> .
Optional parameter {{nowrap|<code><nowiki>template-filing=deep</nowiki></code>}} changes the behavior on template pages to deep filing (so {{nowrap|<code>Template:My book/Maps/Asia</code>}} would go in {{nowrap|<code>Category:My book/Templates/Maps</code>}}).
See [[Using Wikibooks/Subjects, Categories, and Classifications#Deep filing (advanced)]] for more information.
[[Category:Catalogue templates|{{PAGENAME}}]]</noinclude>
|