الگو:BOOKCATEGORY
This template generates the name for the book-category of the book associated with the current page. There is precedent for change in this naming convention; at this writing the category is named Category:Book:{{BOOKNAME}}
, while historically it was named Category:{{BOOKNAME}}
.
Usage
ویرایشSimply place {{BOOKCATEGORY}}
on a page to get the output.
Optionally specify a page as an unnamed parameter to see the output for a different page than the current one.
{{BOOKCATEGORY|<full pagename>}}
Optionally specify the book name as parameter book
to derive the associated book category name, bypassing the algorithm for deducing book name from page name; useful for deriving book category name when book name is already known, as in {{BookCat}}.
{{BOOKCATEGORY|book=<book name>}}
Examples
ویرایشالگو:Magic word templates/book page examples
Internals
ویرایشThis template contains the logic to sort out the base-name of the book. During the transition from the old naming scheme to the new one, a subtemplate {{BOOKCATEGORY/core}} was used to deduce the associated book-category name by determining which naming scheme the particular book used.
See also
ویرایش- {{BookCat}}
الگو:Magic word templates/book page see also الگو:Magic word templates/subject page see also
توضیحات بالا تراگنجاندهشده از الگو:BOOKCATEGORY/توضیحات است. (ویرایش | تاریخچه) ویرایشگران میتوانند در صفحات تمرین (ایجاد | آینه) و آزمایشی (ایجاد) این الگو را آزمایش کنند. لطفاً ردهها را به زیرصفحهٔ /توضیحات بیافزایید. زیرصفحههای این الگو. |