• घर
  • बेतरतीब
  • लॉग-इन करें
  • सेटिंग्स
Donate Now If this site has been useful to you, please give today.
  • विकिपुस्तक के बारे में
  • अस्वीकरण
विकिपुस्तक

साँचा:BookCat

  • भाषा
  • ध्यान रखें
  • सम्पादित करें
साँचा विवरण[देखें] [संपादन] [इतिहास] [पर्ज़ करें]

This template puts the page on which it's used ({{FULLPAGENAME}}) into appropriate categories, based on certain page-naming and page-categorization conventions.

सामग्री

  • १ Usage
  • २ Parameters
  • ३ Eamples
  • ४ Internals
  • ५ See also

Usage

सम्पादन

When used without parameters, it

  • places subpages of a book in the book's category (श्रेणी:पुस्तक:{{BOOKNAME}}) and sorts them by chapter name.
  • places a book's templates in the book's template category (श्रेणी:पुस्तक:{{BOOKNAME}}/साँचे). This only does the right thing if a book's templates begin with  साँचा:{{BOOKNAME}} .
  • places a book's template category in the book's category and in  श्रेणी:पुस्तक-विशेषक साँचे .
  • places any other category in its parent, sorted by the category's last name. The parent has the same name except removing everything from the last slash on; and the last name is the part that was removed after that last slash. For example, Category:My Book/Images  would go in  Category:My Book  with sort key  Images .

Parameters

सम्पादन

Optional parameter  filing=deep  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  {{BookCat|filing=deep}}  on page  My Book/Maps/Asia  would put that page in  Category:My Book/Maps  with sort key  Asia .

Optional parameter  template-filing=deep  changes the behavior on template pages to deep filing (so  Template:My book/Maps/Asia  would go in  Category:My book/Templates/Maps).

Optional parameter  sort or sortkey specifies a sort key to be used for categorization instead of relying on {{BOOKSORTKEY}}.

Optional first unnamed parameter is a full page name to use instead of the {{FULLPAGENAME}} of the current page.

An alternative template {{BookCat/diagnose}} reports the output of {{BookCat}} (with or without parameters) as an inert string, rather than categorizing the current page.

Eamples

सम्पादन

Internals

सम्पादन

This template itself only contains the logic to sort out the identity of the target page; deducing the appropriate categorization is then delegated to {{BookCat/core}}. As of this writing, parameters assembled here are namespace, pagename, fullpagename, and sortkey; the first unnamed parameter is removed, and all other parameters are passed through to the subtemplate.

See also

सम्पादन
  • See Using Wikibooks/Shelves, Categories, and Classifications#Deep filing (advanced) for more information.
  • Instances are listed at
  • Category:Pages with deep filing.
  • Category:Pages passing sort key to BookCat
  • Category:Pages passing page name to BookCat
  • {{BOOKCATEGORY}} is closely related.
उपरिलिखित विवरण पृष्ठ साँचा:BookCat/विव से ट्रांसक्लूड किया गया है। (संपादन | इतिहास)
संपादकगण इस साँचे के प्रयोगपृष्ठ (बनाएँ | मिरर करें) और testcases (बनाएँ) पन्नों पर परीक्षण संपादन कर सकते हैं।
श्रेणियाँ कृपया /विव उपपृष्ठ पर जोड़ें। इस साँचा के उपपृष्ठ।
"https://hi.wikibooks.org/w/index.php?title=साँचा:BookCat&oldid=27722" से प्राप्त
अंतिम बार ४ फ़रवरी २०२० को २०:४० बजे संपादित किया गया

भाषाएँ

    • العربية
    • বাংলা
    • Ελληνικά
    • English
    • Español
    • فارسی
    • Français
    • 日本語
    • Македонски
    • ਪੰਜਾਬੀ
    • Português
    • Русский
    • တႆး
    • සිංහල
    • Тоҷикӣ
    • ไทย
    • Türkçe
    • Tiếng Việt
    • 中文
    विकिपुस्तक
    • Wikimedia Foundation
    • Powered by MediaWiki
    • इस पृष्ठ का पिछला बदलाव ४ फ़रवरी २०२० को २०:४० बजे हुआ था।
    • उपलब्ध सामग्री CC BY-SA 4.0 के अधीन है जब तक अलग से उल्लेख ना किया गया हो।
    • गोपनीयता नीति
    • विकिपुस्तक के बारे में
    • अस्वीकरण
    • आचार संहिता
    • विकासक
    • सांख्यिकी
    • कुकी का वर्णन
    • उपयोग की शर्तें
    • डेस्कटॉप