Pergi ke kandungan

Templat:BOOKPAGENAME/doc

Daripada Wikibuku

This template returns the part of the page name after the logical book name. Compare {{BOOKNAME}}.

Usage

[sunting]

Simply place {{BOOKPAGENAME}} on a page to get the output.

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

{{BOOKPAGENAME|<full pagename>}}

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 {{BOOKPAGENAME/core}}.

If the current page is part of a book (other than the book main page), {{BOOKNAME}}/{{BOOKPAGENAME}} is the full title of the page (similarly to {{NAMESPACE}}:{{PAGENAME}}).

See also

[sunting]

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