साँचा:Shelves/विव

विकिपुस्तक से

यह साँचा किसी पुस्तक को किसी एक अलमारी (अथवा कई अलमारियों) में सूचीबद्ध करता है, साथ ही पुस्तक श्रेणी भी जोड़ता है।

प्रयोगविधि[सम्पादन]

इस साँचे का प्रयोग केवल किसी पुस्तक के मुख्य पन्ने पर ही करना होता है। इस साँचे में प्राचल के रूप में अलमारी के नाम देना होता है जैसे कि:

{{अलमारियाँ|भूगोल|पर्यावरण|इत्यादि}}

ऐसी श्रेणियों के लिए जो किसी अलमारी से संबंधित नहीं हैं, जैसे कि श्रेणी:प्रकार अनुसार पुस्तकें की उप श्रेणियाँ, आप साँचा {{Categories}} का प्रयोग करें।

किसी पुस्तक के उपपृष्ठों, अर्थात मुख्य पन्ने के अलावा उस पुस्तक के हिस्से के रूप में बने बाकी पन्नों पर {{BookCat}} साँचे का प्रयोग किया जाना चाहिए।

आतंरिक कार्य[सम्पादन]

This template is responsible for adding books to the hidden allbooks categories, which allow automatic generation of lists of books belonging either to a given shelf or to any of its sub-shelves. When this template detects that it is being used on the main page of a book, for each shelf specified it calls {{shelves/leaf}}, via Module:TScope#map. This is why this template should only be used for shelf categories: {{shelves/leaf}} uses shelf pages to figure out which allbooks categories to add the book to, and if there are no shelf pages to consult, it reports the problem to श्रेणी:पुस्तक:विकिपुस्तक स्टैक/ध्यान देने की आवश्यकता. By using {{categories}} for non-subject categories, one avoids nuisance reports to श्रेणी:पुस्तक:विकिपुस्तक स्टैक/ध्यान देने की आवश्यकता.

The book is also added to hidden श्रेणी:पुस्तक:विकिपुस्तक स्टैक/पुस्तकें; and, if no shelves are specified, to श्रेणी:पुस्तक:विकिपुस्तक स्टैक/पुस्तकें/बिनाअलमारी.

If the template detects that it was called on a page that isn't the main page of a book, it does nothing.

This template can be induced to display diagnostic messages, explaining why it has put the page in श्रेणी:पुस्तक:विकिपुस्तक स्टैक/ध्यान देने की आवश्यकता, by specifying parameter diagnose=true.

इन्हें भी देखें[सम्पादन]

  • {{categories}} — adds book to non-subject categories
  • {{alphabetical}} — adds book to alphabetical classification
  • {{status}} — classifies book by completion status
  • {{BOOKNAME}} — Returns the name of the book including the namespace