Template:Book

From open-support.info

(Difference between revisions)
Jump to: navigation, search
m
m
Line 1: Line 1:
-
<includeonly>{{#if:{{{root|}}}
+
<includeonly>{{#if:{{#titleparts:{{PAGENAME}}|-1}}
|{{book/core
|{{book/core
  |master page= {{#if:{{{master page|}}}
  |master page= {{#if:{{{master page|}}}
   |{{{master page}}}
   |{{{master page}}}
-
   |{{#show:{{{root}}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}
+
   |{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}
   }}
   }}
  |master rev = {{{master rev|}}}
  |master rev = {{{master rev|}}}
-
  |status    = {{#if:{{{status|}}}  |{{{status}}}  |{{#show:{{{root}}}|?docinfo status}}}}
+
  |status    = {{#if:{{{status|}}}  |{{{status}}}  |{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo status}}}}
-
  |progress  = {{#if:{{{progress|}}}|{{{progress}}}|{{#show:{{{root}}}|?docinfo progress}}}}
+
  |progress  = {{#if:{{{progress|}}}|{{{progress}}}|{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo progress}}}}
-
  |priority  = {{#if:{{{priority|}}}|{{{priority}}}|{{#show:{{{root}}}|?docinfo priority}}}}
+
  |priority  = {{#if:{{{priority|}}}|{{{priority}}}|{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo priority}}}}
-
  |category  = {{#if:{{{category|}}}|{{{category}}}|{{#show:{{{root}}}|?docinfo category}}}}
+
  |category  = {{#if:{{{category|}}}|{{{category}}}|{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo category}}}}
-
  |author    = {{#if:{{{author|}}}  |{{{author}}}  |{{#show:{{{root}}}|?docinfo author}}}}
+
  |author    = {{#if:{{{author|}}}  |{{{author}}}  |{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo author}}}}
-
  |editor    = {{#if:{{{editor|}}}  |{{{editor}}}  |{{#show:{{{root}}}|?docinfo editor}}}}
+
  |editor    = {{#if:{{{editor|}}}  |{{{editor}}}  |{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo editor}}}}
-
  |support    = {{#if:{{{support|}}} |{{{support}}} |{{#show:{{{root}}}|?docinfo support}}}}
+
  |support    = {{#if:{{{support|}}} |{{{support}}} |{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo support}}}}
-
  |lang      = {{#if:{{{lang|}}}    |{{{lang}}}    |{{#show:{{{root}}}|?docinfo language}}}}
+
  |lang      = {{#if:{{{lang|}}}    |{{{lang}}}    |{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo language}}}}
  |desc = {{#if:{{{desc|}}}
  |desc = {{#if:{{{desc|}}}
   |{{{desc}}}
   |{{{desc}}}
   |{{#if:{{{master page|}}}
   |{{#if:{{{master page|}}}
   |{{#show:{{{master page}}}|?description}}
   |{{#show:{{{master page}}}|?description}}
-
   |{{#show:{{#show:{{{root}}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}|?description}}
+
   |{{#show:{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo master page}}<!--
 +
            -->/{{#titleparts:{{PAGENAME}}|-1|2}}|?description}}
   }}
   }}
   }}
   }}
Line 25: Line 26:
   |{{#if:{{{master page|}}}
   |{{#if:{{{master page|}}}
   |{{#show:{{{master page}}}|?book heading}}
   |{{#show:{{{master page}}}|?book heading}}
-
   |{{#show:{{#show:{{{root}}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}|?book heading}}
+
   |{{#show:{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo master page}}<!--
 +
            -->/{{#titleparts:{{PAGENAME}}|-1|2}}|?book heading}}
   }}
   }}
   }}
   }}
Line 32: Line 34:
   |{{#if:{{{master page|}}}
   |{{#if:{{{master page|}}}
   |{{#show:{{{master page}}}|?book title}}
   |{{#show:{{{master page}}}|?book title}}
-
   |{{#show:{{#show:{{{root}}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}|?book title}}
+
   |{{#show:{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}|?book title}}
   }}
   }}
   }}
   }}
Line 39: Line 41:
   |{{#if:{{{master page|}}}
   |{{#if:{{{master page|}}}
   |{{#show:{{{master page}}}|?book next}}
   |{{#show:{{{master page}}}|?book next}}
-
   |{{#show:{{#show:{{{root}}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}|?book next}}
+
   |{{#show:{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}|?book next}}
   }}
   }}
   }}
   }}

Revision as of 13:30, 17 April 2011

The results of this template are not shown here.

[edit] [purge] Template documentation

Template:Book – a semantic template to manage a set of sequential pages like a traditional "Book". This is the "Book" template. It should be called in the following format:

{{Book
|1=
|2=
|3=
}}

Edit the page to see the template text.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox