Template:Magic word templates/book page examples/doc

Usage edit

Transclude this on the documentation page of a magic word template relating a page to its associated book, to produce a table of examples of the template's behavior on various page names. The template is expected to accept an unnamed parameter overriding the current page name. See for example Template:BOOKNAME/doc.

This template itself accepts an unnamed parameter specifying the name of the template to be demonstrated; otherwise it uses {{OBJECTPAGENAME}}. For example,

{{Template:Magic word templates/book page examples|BOOKNAME}}

would produce

page where called result
Taxi Tongue/Dialogue 4

Taxi Tongue

Chess/Puzzles/Directmates

Chess

Wikijunior:Biology

Wikijunior:Biology

Wikijunior:Dinosaurs/Apatosaurus

Wikijunior:Dinosaurs

Wikijunior talk:Bugs/Shield Bug

Wikijunior:Bugs

Category:Horticulture/Templates/Boxes

Horticulture

Category:Book:Wikijunior:Solar System/Templates

Wikijunior:Solar System

Template:Wikijunior:Solar System/coolfacts

Wikijunior:Solar System

User:Pi zero/Conlang/Beginner/Sounds

User:Pi zero/Conlang

User:Pi zero/sandbox/Conlang/Beginner/Sounds

User:Pi zero/sandbox/Conlang

Category:User:Pi zero/sandbox/Conlang/Beginner/Sounds

User:Pi zero/sandbox/Conlang

Template:User:Pi zero/sandbox/Conlang/Beginner/Sounds

User:Pi zero/sandbox/Conlang

Shelf:Physical sciences

Wikibooks Stacks

Template:Shelf:Page

Wikibooks Stacks

Template:Shelf:Page/display

Wikibooks Stacks

Internals edit

The examples are in subtemplate {{Magic word templates/book page examples/core}}; this template only chooses the target for demonstration and delegates there.