Template:BOOKNAME/doc

From Wikibooks, open books for an open world
Jump to: navigation, search

Returns the name of the book without the namespace. Does not distinguish between content namespaces and non-content namespaces, naively assuming the current page is a page of a book.

Usage[edit]

Simply place {{BOOKNAME}} 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.

{{BOOKNAME|<full pagename>}}

Examples[edit]

page where called result
Wikijunior:Biology Biology
Chess/Puzzles/Directmates Chess
Wikijunior:Dinosaurs/Apatosaurus Dinosaurs
Category:Horticulture/Templates/Boxes Horticulture
Wikijunior talk:Bugs/Shield Bug Bugs

See also[edit]

  • {{FULLBOOKNAME}} — page name without subpages and retaining the namespace.
  • {{ROOTBOOKNAME}} — 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.
  • {{ROOTSUBJECTNAME}} — deduces full root name of subject associated with the current page.
  • {{SUBJECTCATEGORY}} — deduces full root name of subject-category associated with the current page.