Template:NAIVEBOOKNAME
Jump to navigation
Jump to search
![]() |
This template is used on over 84,000 pages. To avoid large-scale disruption and unnecessary server load, any changes should first be tested in the template sandbox or a user subpage. The tested changes can then be added in one single edit to this template. Please consider discussing any changes on the talk page before implementing them. |
Returns the name of the book including the namespace. Does not distinguish between content namespaces and non-content namespaces, naively assuming the current page is a page of a book.
Usage
Simply place {{Template:NAIVEBOOKNAME}}
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.
{{Template:NAIVEBOOKNAME|<full pagename>}}
Examples
page where called | result |
---|---|
Wikijunior:Biology | Wikijunior:Biology
|
Chess/Puzzles/Directmates | Chess
|
Wikijunior:Dinosaurs/Apatosaurus | Wikijunior:Dinosaurs
|
Category:Horticulture/Templates/Boxes | Category:Horticulture
|
Wikijunior talk:Bugs/Shield Bug | Wikijunior talk:Bugs
|
See also
- {{NAIVEBOOKSTEM}} — (deprecated) page name without subpages and without the namespace.
- {{BOOKNAME}} — deduces full root name of book associated with the current page.
- {{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.
- {{SUBJECTNAME}} — deduces full root name of subject associated with the current page.
- {{SUBJECTCATEGORY}} — deduces full root name of subject-category associated with the current page.