Template:NAIVEBOOKSTEM/doc
This is a documentation subpage for Template:NAIVEBOOKSTEM It contains usage information, categories and other content that is not part of the original template page. |
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.
The technical function of this template is now duplicated by magic word {{ROOTPAGENAME}}
, and a more sophisticated logical book name template is available at {{BOOKNAME}}.
Usage
editSimply place {{Template:NAIVEBOOKSTEM}}
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:NAIVEBOOKSTEM|<full pagename>}}
Examples
editpage where called | result |
---|---|
Wikijunior:Biology | Biology
|
Chess/Puzzles/Directmates | Chess
|
Wikijunior:Dinosaurs/Apatosaurus | Dinosaurs
|
Category:Book:Horticulture/Templates/Boxes | Book:Horticulture
|
Wikijunior talk:Bugs/Shield Bug | Bugs
|
See also
edit- {{NAIVEBOOKNAME}} — page name without subpages and retaining 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.