Template:Book

From open-support.info

(Difference between revisions)
Jump to: navigation, search
m
m
Line 1: Line 1:
-
{{#if:{{Book/Lang}}
+
<includeonly>{{#if:{{{root|}}}
|{{book/core
|{{book/core
-
  |lang=/{{BASEPAGENAME}}
+
  |master page={{#if:{{{master page|}}}
-
|root={{#titleparts:{{FULLPAGENAME}}|1}}
+
  |{{{master page}}}
-
|home={{#titleparts:{{FULLPAGENAME}}|1}}/{{SUBPAGENAME}}
+
  |{{#show:{{{root}}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}
-
|head={{
+
-
  #if:{{{heading|}}}
+
-
  |{{{heading}}}
+
-
  |{{#show:{{NAMESPACE}}:{{BASEPAGENAME}}|?book heading}}
+
   }}
   }}
-
  |name={{
+
  |master rev ={{{master rev|}}}
-
   #if:{{{title|}}}
+
|status    ={{#if:{{{status|}}}  |{{{status}}}  |{{#show:{{{root}}}|?docinfo status}}}}
 +
|progress   ={{#if:{{{progress|}}}|{{{progress}}}|{{#show:{{{root}}}|?docinfo progress}}}}
 +
|priority  ={{#if:{{{priority|}}}|{{{priority}}}|{{#show:{{{root}}}|?docinfo priority}}}}
 +
|category  ={{#if:{{{category|}}}|{{{category}}}|{{#show:{{{root}}}|?docinfo category}}}}
 +
|author    ={{#if:{{{author|}}}  |{{{author}}}  |{{#show:{{{root}}}|?docinfo author}}}}
 +
|editor    ={{#if:{{{editor|}}}  |{{{editor}}}  |{{#show:{{{root}}}|?docinfo editor}}}}
 +
|support    ={{#if:{{{support|}}} |{{{support}}} |{{#show:{{{root}}}|?docinfo support}}}}
 +
|lang      ={{#if:{{{lang|}}}    |{{{lang}}}    |{{#show:{{{root}}}|?docinfo language}}}}
 +
|desc      ={{#if:{{{desc|}}}
 +
  |{{{desc}}}
 +
  |{{#if:{{{master page|}}}
 +
  |{{#show:{{{master page}}}|?description}}
 +
  |{{#show:{{#show:{{{root}}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}|?description}}
 +
  }}
 +
  }}
 +
|heading    ={{#if:{{{heading|}}}
 +
  |{{{hading}}}
 +
  |{{#if:{{{master page|}}}
 +
  |{{#show:{{{master page}}}|?book heading}}
 +
  |{{#show:{{#show:{{{root}}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}|?book heading}}
 +
  }}
 +
  }}
 +
|title      ={{#if:{{{title|}}}
   |{{{title}}}
   |{{{title}}}
-
   |{{
+
   |{{#if:{{{master page|}}}
-
  #if:{{#show:{{NAMESPACE}}:{{BASEPAGENAME}}|?book title}}
+
  |{{#show:{{{master page}}}|?book title}}
-
   |{{#show:{{NAMESPACE}}:{{BASEPAGENAME}}|?book title}}
+
   |{{#show:{{#show:{{{root}}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}|?book title}}
-
  |{{PAGENAME}}
+
   }}
   }}
   }}
   }}
-
  |next={{#show:{{NAMESPACE}}:{{BASEPAGENAME}}|?book next#}}/{{SUBPAGENAME}}
+
  |next       ={{#if:{{{next|}}}
-
|prev={{
+
  |{{{next}}}
-
  #if:{{
+
  |{{#if:{{{master page|}}}
-
   #ask:
+
  |{{#show:{{{master page}}}|?book next}}
-
  [[Category:Books]]
+
   |{{#show:{{#show:{{{root}}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}|?book next}}
-
  [[book next::{{#titleparts:{{FULLPAGENAME}}|-1}}]]
+
-
  |format=list
+
-
  |limit=1
+
-
  |link=none
+
   }}
   }}
-
  |{{
 
-
  #ask:
 
-
  [[Category:Books]]
 
-
  [[book next::{{#titleparts:{{FULLPAGENAME}}|-1}}]]
 
-
  |format=list
 
-
  |limit=1
 
-
  |link=none
 
-
  }}/{{SUBPAGENAME}}
 
   }}
   }}
-
}}{{docinfo
 
-
|master page={{NAMESPACE}}:{{BASEPAGENAME}}
 
-
|master rev ={{{master rev|}}}
 
-
|status    ={{{status|}}}
 
-
|progress  ={{{progress|}}}
 
-
|priority  ={{{priority|}}}
 
-
|author    ={{{author|}}}
 
-
|editor    ={{{editor|}}}
 
-
|support    ={{{support|}}}
 
-
|category  ={{{category|}}}
 
-
|desc      ={{{desc|}}}
 
  }}
  }}
|{{book/core
|{{book/core
-
  |lang=
+
|master page={{{master page|}}}
-
  |root={{#titleparts:{{FULLPAGENAME}}|1}}
+
|master rev ={{{master rev|}}}
-
|home={{#titleparts:{{FULLPAGENAME}}|1}}
+
|status    ={{{status}}}
-
  |head={{#if:{{{heading|}}}|{{{heading}}}|}}
+
|progress  ={{{progress}}}
-
  |name={{
+
|priority  ={{{priority}}}
-
  #if:{{{title|}}}
+
|category  ={{{category}}}
 +
|author    ={{{author}}}
 +
|editor    ={{{editor}}}
 +
|support    ={{{support}}}
 +
  |lang       ={{{lang}}}
 +
  |desc      ={{#if:{{{desc|}}}
 +
  |{{{desc}}}
 +
  |{{#if:{{{mastert page|}}}|{{#show:{{{master page}}}|?description}}}}
 +
  }}
 +
  |heading = {{#if:{{{heading|}}}
 +
  |{{{hading}}}
 +
  |{{#if:{{{master page|}}}|{{#show:{{{master page}}}|?book heading}}}}
 +
  }}
 +
  |title = {{#if:{{{title|}}}
   |{{{title}}}
   |{{{title}}}
-
   |{{PAGENAME}}
+
   |{{#if:{{{master page|}}}|{{#show:{{{master page}}}|?book title}}}}
   }}
   }}
-
  |next={{#if:{{{next|}}}|{{#rel2abs:{{{next}}}|{{FULLPAGENAME}}}}}}
+
  |next = {{#if:{{{next|}}}
-
|prev={{
+
  |{{{next}}}
-
  #ask:
+
  |{{#if:{{{master page|}}}|{{#show:{{{master page}}}|?book next}}}}
-
  [[Category:Books]]
+
-
  [[book next::{{FULLPAGENAME}}]]
+
-
  |format=list
+
-
  |limit=1
+
-
  |link=none
+
   }}
   }}
-
}}<!--
 
-
-->{{#if:{{{next|}}}|{{#set:book next={{#rel2abs:{{{next}}}|{{FULLPAGENAME}}}}}}}}<!--
 
-
-->{{docinfo
 
-
|status  ={{{status|}}}
 
-
|progress={{{progress|}}}
 
-
|priority={{{priority|}}}
 
-
|author  ={{{author|}}}
 
-
|editor  ={{{editor|}}}
 
-
|support ={{{support|}}}
 
-
|category={{{category|}}}
 
-
|desc    ={{{desc|}}}
 
  }}
  }}
-
}}<!--
+
}}</includeonly><noinclude>
-
-->{{#if:{{{heading|}}}|{{#set:book heading={{{heading}}} }}}}<!--
+
-
-->{{#if:{{{title|}}}  |{{#set:book title  ={{{title}}}  }}}}<!--
+
-
--><noinclude>
+
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 11:47, 17 April 2011

[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