Template:Book/PageTitle

From open-support.info

< Template:Book(Difference between revisions)
Jump to: navigation, search
m (ページの作成:「{{coalesce |{{#show:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}|?bookTitle}} |{{#show:{{#if:{{{1|}}}|{{Book/Base|{{{1}}}}}|{{#var:book_base}}}}|?bookTitle}} |{{#if:{{{1|}}}|...」)
m
 
(10 intermediate revisions not shown)
Line 1: Line 1:
-
{{coalesce
+
{{#vardefine:cpag|{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}} }}
-
|{{#show:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}|?bookTitle}}
+
}}{{#vardefine:mpag|{{#show:{{#var:cpag}}|?docinfo master page#}}
-
|{{#show:{{#if:{{{1|}}}|{{Book/Base|{{{1}}}}}|{{#var:book_base}}}}|?bookTitle}}
+
}}{{#if:{{#var:mpag}}
-
|{{#if:{{{1|}}}|{{{1}}}|{{#var:book_base}}}}
+
|
 +
|{{#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|}}}
 +
|
 +
|all
 +
|title={{#vardefine:title|{{#show:{{#var:cpag}}|?book title}}
 +
}}{{#if:{{#var:title}}
 +
|
 +
|{{#if:{{#var:mpag}}|{{#vardefine:title|{{#show:{{#var:mpag}}|?book title}} }} }}
 +
}}{{#if:{{#var:title}}
 +
|
 +
|{{#vardefine:title|{{PAGENAME:{{#var:cpag}} }} }}
 +
}}
 +
}}{{#switch:{{{show|}}}
 +
|all
 +
|heading={{#vardefine:heading|{{#show:{{#var:cpag}}|?book heading}}
 +
}}{{#if:{{#var:heading}}
 +
|
 +
|{{#if:{{#var:mpag}}
 +
  |{{#vardefine:heading|{{#show:{{#var:mpag}}|?book heading}} }}
 +
  }}
 +
}}
 +
}}{{#switch:{{{show|}}}
 +
|all    = {{#if:{{#var:heading}}|{{#var:heading}}&nbsp;}}{{#var:title}}
 +
|heading = {{#var:heading}}
 +
|{{#var:title}}
}}<noinclude>
}}<noinclude>
{{docinfo
{{docinfo

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