Template:Magic word templates/book page examples/doc
This is a documentation subpage for Template:Magic word templates/book page examples It contains usage information, categories and other content that is not part of the original template page. |
Usage
[edit source]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 |
|
Chess/Puzzles/Directmates |
|
Wikijunior:Biology |
|
Wikijunior:Dinosaurs/Apatosaurus |
|
Wikijunior talk:Bugs/Shield Bug |
|
Category:Horticulture/Templates/Boxes |
|
Category:Book:Wikijunior:Solar System/Templates |
|
Template:Wikijunior:Solar System/coolfacts |
|
User:Pi zero/Conlang/Beginner/Sounds |
|
User:Pi zero/sandbox/Conlang/Beginner/Sounds |
|
Category:User:Pi zero/sandbox/Conlang/Beginner/Sounds |
|
Template:User:Pi zero/sandbox/Conlang/Beginner/Sounds |
|
Shelf:Physical sciences |
|
Template:Shelf:Page |
|
Template:Shelf:Page/display |
|
Internals
[edit source]The examples are in subtemplate {{Magic word templates/book page examples/core}}; this template only chooses the target for demonstration and delegates there.