Pergi ke kandungan

Templat:BOOKNAME/doc

Daripada Wikibuku

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

Usage

[sunting]

Simply place {{BOOKNAME}} on a page to get the output. When used on category, template, user, or talk pages, returns the associated book name deduced from naming conventions. Otherwise returns the {{NAIVEBOOKNAME}}.

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

{{BOOKNAME|<full pagename>}}

This template can also be substituted (via subst:) rather than transcluded.

Examples

[sunting]

Templat:Magic word templates/book page examples

Internals

[sunting]

This template itself only contains the logic to sort out the namespace and pagename; deducing from those data the associated book name is then delegated to {{BOOKNAME/core}}.

See also

[sunting]

Templat:Magic word templates/book page see also Templat:Magic word templates/subject page see also