Template:SHELFCATEGORY/doc
Appearance
This is a documentation subpage for Template:SHELFCATEGORY It may contain usage information, categories and other content that is not part of the original template page. |
This template generates the conventional name for the shelf-category of the shelf intrinsically associated with the current page.
Usage
[edit source]Simply place {{SHELFCATEGORY}}
on a page to get the output.
Optionally specify a page as a parameter to see the output for a different page than the current one.
{{SHELFCATEGORY|<full pagename>}}
The shelf-category name is derived from {{SHELFNAME}}.
Examples
[edit source]page where called | result | note |
---|---|---|
Shelf:Biology | Category:Shelf:Biology
| |
Biology | Category:Shelf:Biology
|
likely the Shelf: prefix was simply omitted
|
Wikijunior:Shelf:Biology | Category:Shelf:Biology
|
the Shelf: prefix in the pagename overrides all other considerations
|
Wikijunior:Biology | Category:Shelf:Wikijunior:Biology
|
parallel to content-space behavior of {{BOOKNAME}} |
Template:Biology | Category:Shelf:Biology
|
ignore namespace prefix of non-content namespace |
Category:Shelf:Biology/all books | Category:Shelf:Biology
|
the Shelf: prefix in the pagename overrides all other considerations
|
Category:Biology/all books | Category:Shelf:Biology
|
ignore namespace prefix of non-content namespace |
See also
[edit source]- {{SHELFNAME}} — deduces full root name of shelf intrinsically associated with the current page.
- {{BOOKNAME}} — deduces full root name of book associated with the current page.
- {{BOOKPAGENAME}} — deduces the part of page name after name of associated book.
- {{BOOKSORTKEY}} — deduces usual sort key for use in book categories.
- {{BOOKTEMPLATE}} — deduces full root name for templates of book associated with the current page.
- {{BOOKCATEGORY}} — deduces full root name for categories of book associated with the current page.
- {{BOOKTALKNAME}} — deduces main talk page name of book associated with the current page.
- {{CHAPTERNAME}} — deduces first field of page name after the book name.
- {{NAIVEBOOKNAME}} — page name without subpages and retaining the namespace.