Wikibooks sử dụng một vài phương pháp để phân loại trang, cách dễ nhất là dùng "thể loại". Trang này thảo luận về các phương pháp để xếp loại trang vào các thể loại một cách hợp lý nhất.

Cấu trúc của Wikibooks: Các thể loại và các chủ đề chứa các cuốn sách, các cuốn sách chứa các trang và mô đun.
Cấu trúc của Wikibooks: Các thể loại và các chủ đề chứa các cuốn sách, các cuốn sách chứa các trang và mô đun.


Mục đích sửa

Các thể loại có 3 mục đích chính trong việc tổ chức sắp xếp sách:

  1. Categories serve as "book binders"; holding all pages or chapters of a book together in their own category.
  2. Categories sort books by subject matter. Thus, the "book binders" of all books on a subject will appear in a particular category. This allows navigation through all books from general to the most specific subjects.
  3. Categories serve to identify problem areas so that people can help improve books and the Wikibooks project.

Categories also allow automated lists of related pages to be compiled, because any changes to a category will cause any lists depending on the category to be updated as well. The most common example of this is in the construction of subject pages.

The sections below explain how to categorize books using the different methods to ensure books can be easily found.

Sách sửa

A book category is a category that indexes all pages, templates and media of a single book. Each book should have its own book category.

  • What to do:
For each page of the book, other than its main page, just place {{BookCat}} at the bottom of the page. Alternatively, place {{BookCat}} inside any template intended to be used on all pages of the book, which takes care of all the pages that use that template. It does no harm to do both, and no harm if {{BookCat}} ends up on the main page of the book (which might easily happen by accident if a template containing {{BookCat}} is also used on the book main page).
  • How it works:
Book categories use names based on the name of the book itself, with a prefix Book:. For example, the book category for a book titled "Cryptozoology" should be "Category:Book:Cryptozoology". Books and book categories should be categorized by subject using all the same subject categories (we'll discuss subject categories next).
Historically, book categories didn't have a prefix Book:, so the book category for title "Cryptozoology" would be "Category:Cryptozoology". We are slowly converting to the new naming convention; many pre-existing book categories on the site use the old convention.
The {{BookCat}} device automatically deduces, from the name of the page it is on, what book it's in, files the page it is on into the book's category, and sorts the pages inside that category by the portion of the page name following the name of the book. As a result, the book category provides an alphabetical index of all the book's pages.
Template {{BOOKCATEGORY}} produces the name of the book category of the book associated with the page on which it occurs; or, you can provide it with a page name as a parameter, {{BOOKCATEGORY|<page name>}}, and it will produce the name of the book category of the book associated with <page name>. Currently, {{BOOKCATEGORY}} can detect whether a given book uses the old or new convention for book-category names; and it would also presumably handle any future change in the naming convention (if such a thing should ever happen).

Chủ đề sửa

A subject category is a category that groups together books on a related topic.

  • What to do:
On the main page of each book, place {{subjects|...}} at the bottom of the page, replacing "..." with one or more names of subjects, separated by "pipe" characters (the vertical bar, like the one just before the "..." in the example: | ).
Books should only be added to subjects as specific as possible. For example, the book Music Theory is located in Subject:Music theory, but not in Subject:Music, because musical theory is a more specific topic than music. Most books only belong to one or two subjects; use multiple subjects only to aid in finding books that are legitimately important to several subject areas and not used to simply advertise new books. Subjects are used to help make finding books easier, so proper filing of books in subjects is important.
Examples: at this writing, book Modern History has {{subjects|History}}, while book HydroGeoSphere has {{subjects|Geology|Computer software}}.
  • How it works:
Subject categories use names based on the name of the subject, with a prefix Subject:. Subject names use sentence casing because, unlike books, the name of a subject is not a title. For example, the subject category for Subject:Music theory would be [[:Bản mẫu:SUBJECTCATEGORY]]. A subject should only be created when there are multiple books that can be added to it.
Each subject has three pages associated with it:
  • a subject page, called "Subject:<name>", which is the primary place to go for topic <name>. The subject page explains what the subject is about; says what other subject or subjects this one is contained in, and what other subjects are contained in this one; lists books on this subject by how complete they are; and lists featured books on this subject. The book lists include books in subsections as well as books filed directly in that subject. The very biggest subjects, like Subject:Mathematics, list subsections but not books, because the list of books would be so awkwardly long.
  • a subject category, called "Category:Subject:<name>", which contains just those books that are filed specifically under that subject. This page echoes the information display from the subject page.
  • an internal category, whose page is not meant to be publicly viewed, called "Category:Subject:<name>/all books", which contains all books filed under the subject or any other subject contained within it.
The {{subjects}} template on a book main page knows what subjects the book should be filed under. Each subject page has information on it naming the one or two parent subjects containing that subject. The various pages share information between them automatically to populate the internal categories, which enable the subject pages — and the subject categories — to list books in all subsections as well as books filed directly in the subject.

Dự án sửa

Một thể loại dự án là một thể loại dùng để liên kết một số cuốn sách có liên quan với một dự án cụ thể. Ví dụ: tất cả các sách có nội dung về một chương trình khóa học (sách khoa học, sách toán học và sách ngôn ngữ). Đối với những trường hợp này, bạn nên thêm tất cả các sách liên quan vào các thể loại dự án cần thiết.

Tổ chức sửa

Wikibooks dùng một số sơ đồ tổ chức khác như một liệt kê theo thứ tự ABC và một hệ thống các cấp độ đọc. Mỗi hệ thống tổ chức này sử dụng các thể loại để tạo ra danh sách sách.

Thể loại con sửa

A subcategory is a category that links to one or more other categories through the use of the category system, effectively creating a parent-child relationship. All categories should be a subcategory of one or more other categories, except for the root category. By using subcategories, we can all navigate through the category system faster and more effectively find the book, page, image, or template we are looking for.

Subcategories should only be created as needed, such as dividing a large subject or book category in order to find books or pages more quickly. Any new category created for this purpose should have a good descriptive name that shares some common characteristics with the larger category name. For example, Category:Subject:Music theory is a subcategory of Category:Subject:Music and effectively describes a common relationship between the two categories. Another example is Category:Subject:Algebra and Category:Subject:Mathematics.

Book subcategories are also sometimes used; for instance, if a book is not using a flat structure and consists of several chapters with many subpages in each one, {{BookCat|filing=deep}} can be placed on the pages of the book or in a template placed on those pages to create subcategories of the form Category:Book Name/Chapter Name. Then simply add {{BookCat}} to those subcategories to automatically place them in the root book category of the book.

Cách thể loại hoạt động sửa

Các trang được xếp vào một thể loại bằng cách thêm liên kết thể loại ở trong các trang (thường ở dưới cùng). Ví dụ: dự án này đã được liệt kê trong Thể loại:Các thể loại bằng cách thêm:

[[Thể loại:Các thể loại|{{SUBPAGENAME}}]]

Một từ ma thuật (magic word) ám chỉ một tên trang con giúp chúng ta sắp xếp các trang trong thể loại theo thứ tự tên. Điều này có thể thật sự hữu ích cho sách vì tất cả các trang đều bắt đầu bằng tên sách.

Giả sử bạn đang tìm kiếm thông tin về hành vi và tập quán của động vật. Trong trường hợp này, chỉ có một cách duy nhất để tìm sách về chủ đề này, đó là tra cứu cây thể loại sau:

Nếu bạn muốn tham khảo nội dung Hành vi của Động vật được tìm thấy ở đây, bạn cần phải thêm {{BookCat}} vào cuối mỗi trang, thêm {{Chủ đề|động vật học}} vào Hành vi của Động vật và thêm {{BookCat}} vào Thể loại:Sách:Hành vi của Động vật. (Trong trường hợp này, {{BookCat}} cho biết trang mà nó đang ở là một thể loại sách và hãy nhìn vào trang chính của cuốn sách để xem nó thuộc về chủ đề nào.) Lúc này, bạn sẽ bắt đầu hiểu cách Động vật học được thêm vào Sinh học, và vân vân.

Nói chung, các thể loại sẽ đi từ thể loại chung nhất (thể loại cha) đến thể loại cụ thể nhất (thể loại con). Bạn có thể liên kết đến một thể loại bằng cách thêm:

[[:Thể loại:Tên thể loại|nội dung tên thể loại sẽ hiển thị]]

Xem thêm sửa

Xem Trợ giúp:Thể loại để có mô tả về các danh mục trong các dự án Wikimedia nói chung.