Template:ROOTBOOKNAME

From Wikibooks, open books for an open world
Jump to: navigation, search
[edit] [history] [purge] Template documentation

This template returns the name of the book associated with the page on which it's used, assuming certain naming conventions.

Usage

When used on category, template, or talk pages, returns the associated book name. Otherwise the full book name is returned.

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

{{ROOTBOOKNAME|Page Name}}

Examples

Wikijunior:BiologyWikijunior:Biology

Chess/Puzzles/DirectmatesChess

Wikijunior:Dinosaurs/ApatosaurusWikijunior:Dinosaurs

Category:Horticulture/Templates/BoxesHorticulture

Wikijunior talk:Bugs/Shield BugWikijunior:Bugs

See also