Template:Book

From open-support.info

(Difference between revisions)
Jump to: navigation, search
m
m
Line 2: Line 2:
|{{book/core
|{{book/core
  |lang=/{{BASEPAGENAME}}
  |lang=/{{BASEPAGENAME}}
-
  |next={{#show:{{BASEPAGENAME}}|?bookNext#}}
+
|root={{#titleparts:{{FULLPAGENAME}}|1}}
 +
|home={{#titleparts:{{FULLPAGENAME}}|1}}/{{SUBPAGENAME}}
 +
|head={{
 +
  #if:{{{heading|}}}
 +
  |{{{heading}}}
 +
  |{{#show:{{NAMESPACE}}:{{BASEPAGENAME}}|?book heading}}
 +
  }}
 +
|name={{
 +
  #if:{{{title|}}}
 +
  |{{{title}}}
 +
  |{{
 +
  #if:{{#show:{{NAMESPACE}}:{{BASEPAGENAME}}|?book title}}
 +
  |{{#show:{{NAMESPACE}}:{{BASEPAGENAME}}|?book title}}
 +
  |{{PAGENAME}}
 +
  }}
 +
  }}
 +
  |next={{#show:{{NAMESPACE}}:{{BASEPAGENAME}}|?book next#}}/{{SUBPAGENAME}}
  |prev={{
  |prev={{
   #titleparts:{{
   #titleparts:{{
Line 13: Line 29:
   }}
   }}
   |-1
   |-1
-
   }}
+
   }}/{{SUBPAGENAME}}
-
|head={{
+
-
  #if:{{{1|}}}
+
-
  |{{{1}}}
+
-
  |{{#show:{{NAMESPACE}}:{{BASEPAGENAME}}|?book heading}}
+
-
  }}
+
-
|root={{#titleparts:{{FULLPAGENAME}}|1}}
+
-
|home={{#titleparts:{{FULLPAGENAME}}|1}}/{{SUBPAGENAME}}
+
  }}
  }}
|{{book/core
|{{book/core
-
  |next={{
+
  |lang=
-
  #if:{{{3|}}}
+
|root={{#titleparts:{{FULLPAGENAME}}|1}}
-
  |{{#rel2abs:{{{3}}} }}
+
|home={{#titleparts:{{FULLPAGENAME}}|1}}
-
  }}
+
|head={{#if:{{{heading|}}}|{{{heading}}}|}}
 +
|next={{#if:{{{next|}}}|{{#rel2abs:{{{next}}} }}}}
  |prev={{
  |prev={{
   #ask:
   #ask:
Line 35: Line 45:
   |link=none
   |link=none
   }}
   }}
-
|head={{
 
-
  #if:{{{1|}}}
 
-
  |{{{1}}}
 
-
  }}
 
-
|root={{#titleparts:{{FULLPAGENAME}}|1}}
 
-
|home={{#titleparts:{{FULLPAGENAME}}|1}}
 
  }}
  }}
}}<noinclude>
}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 06:03, 15 April 2011

Template:Book/core

[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