Template:Book/PageTitle
From open-support.info
(Difference between revisions)
m |
m |
||
| Line 5: | Line 5: | ||
|all | |all | ||
|title={{#vardefine:title|{{#show:{{#var:cpag}}|?book title}} | |title={{#vardefine:title|{{#show:{{#var:cpag}}|?book title}} | ||
| - | }}{{#if:{{#var:title}}|<!-- IS BLANK THEN --> | + | }}{{#if:{{#var:title}} |
| - | |{{#if:{{#var:mpag}} | + | |<!-- IS BLANK THEN --> |
| - | + | |{{#if:{{#var:mpag}}|{{#vardefine:title|{{#show:{{#var:mpag}}|?book title}} }} }} | |
| - | + | }}{{#if:{{#var:title}} | |
| - | }}{{#if:{{#var:title}}|<!-- IS BLANK THEN --> | + | |<!-- IS BLANK THEN --> |
|{{#vardefine:title|{{PAGENAME:{{#var:cpag}} }} }} | |{{#vardefine:title|{{PAGENAME:{{#var:cpag}} }} }} | ||
}} | }} | ||
Revision as of 08:05, 23 April 2011
Book/PageTitle - Template:Book/PageTitle -[edit] []
Template documentation
Template:Book/PageTitle – returns the respectable page title of a page in a book.
Usage
{{Book/PageTitle | PageName }}
| The above documentation is transcluded from Template:Book/PageTitle/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |