Template:Book/PageTitle

From open-support.info

< Template:Book(Difference between revisions)
Jump to: navigation, search
m
m
 
Line 1: Line 1:
-
{{ #vardefine:cpag|{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}} }}
+
{{#vardefine:cpag|{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}} }}
}}{{#vardefine:mpag|{{#show:{{#var:cpag}}|?docinfo master page#}}
}}{{#vardefine:mpag|{{#show:{{#var:cpag}}|?docinfo master page#}}
 +
}}{{#if:{{#var:mpag}}
 +
|
 +
|{{#vardefine:mpag|{{#show:{{#titleparts:{{#var:cpag}}|1}}|?docinfo master page#}}
 +
}}{{#if:{{#var:mpag}}
 +
|{{#vardefine:mpag|{{#var:mpag}}<!--
 +
  -->{{#if:{{#titleparts:{{#var:cpag}}||2}}|/{{#titleparts:{{#var:cpag}}||2}} }} }}
 +
|
 +
}}
}}{{#switch:{{{show|}}}
}}{{#switch:{{{show|}}}
-
|<!-- BLANK -->
+
|
|all
|all
|title={{#vardefine:title|{{#show:{{#var:cpag}}|?book title}}
|title={{#vardefine:title|{{#show:{{#var:cpag}}|?book title}}
  }}{{#if:{{#var:title}}
  }}{{#if:{{#var:title}}
-
  |<!-- IS BLANK THEN -->
+
  |
  |{{#if:{{#var:mpag}}|{{#vardefine:title|{{#show:{{#var:mpag}}|?book title}} }} }}
  |{{#if:{{#var:mpag}}|{{#vardefine:title|{{#show:{{#var:mpag}}|?book title}} }} }}
  }}{{#if:{{#var:title}}
  }}{{#if:{{#var:title}}
-
  |<!-- IS BLANK THEN -->
+
  |
  |{{#vardefine:title|{{PAGENAME:{{#var:cpag}} }} }}
  |{{#vardefine:title|{{PAGENAME:{{#var:cpag}} }} }}
  }}
  }}
Line 15: Line 23:
|all
|all
|heading={{#vardefine:heading|{{#show:{{#var:cpag}}|?book heading}}
|heading={{#vardefine:heading|{{#show:{{#var:cpag}}|?book heading}}
-
  }}{{#if:{{#var:heading}}|<!-- IS BLANK THEN -->
+
  }}{{#if:{{#var:heading}}
 +
|
  |{{#if:{{#var:mpag}}
  |{{#if:{{#var:mpag}}
   |{{#vardefine:heading|{{#show:{{#var:mpag}}|?book heading}} }}
   |{{#vardefine:heading|{{#show:{{#var:mpag}}|?book heading}} }}
Line 24: Line 33:
|heading = {{#var:heading}}
|heading = {{#var:heading}}
|{{#var:title}}
|{{#var:title}}
-
}} - {{#var:mpag}} - {{#show:{{#var:mpag}}|?book title}}<noinclude>
+
}}<noinclude>
{{docinfo
{{docinfo
|author = Dick6809
|author = Dick6809

Latest revision as of 08:57, 23 April 2011

Book/PageTitle
[edit] [purge] Template documentation

Template:Book/PageTitle – returns the respectable page title of a page in a book.

Usage

{{Book/PageTitle | PageName }}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox