Template:BOOKTEMPLATE/doc

< Template:BOOKTEMPLATE

This template generates the conventional name for the main template of the book associated with the current page; this is also conventionally a prefix for the names of the book's other templates. As of this writing, this name is Template:{{ROOTBOOKNAME}}.

UsageEdit

Simply place {{BOOKTEMPLATE}} on a page to get the output. To call the template, use {{{{BOOKTEMPLATE}}|...}}. To call a subtemplate Foo, use {{{{BOOKTEMPLATE}}/Foo|...}}.

Optionally specify a page as a parameter to see the output for a different page than the current one.

{{BOOKTEMPLATE|<full pagename>}}

ExamplesEdit

page where called result
Wikijunior:Biology Template:Wikijunior:Biology
Chess/Puzzles/Directmates Template:Chess
Wikijunior:Dinosaurs/Apatosaurus Template:Wikijunior:Dinosaurs
Category:Horticulture/Templates/Boxes Template:Horticulture
Wikijunior talk:Bugs/Shield Bug Template:Wikijunior:Bugs
Category:Book:Wikijunior:Solar system/templates Template:Wikijunior:Solar system
Template:Wikijunior:Solar system/coolfacts Template:Wikijunior:Solar system

See alsoEdit

  • {{ROOTBOOKNAME}} — deduces full root name of book associated with the current page.
  • {{BOOKCATEGORY}} — deduces full root name for categories of book associated with the current page.
  • {{BOOKNAME}} — page name without subpages and without the namespace.
  • {{FULLBOOKNAME}} — page name without subpages and retaining the namespace.
  • {{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.