Template:Book

From open-support.info

(Difference between revisions)
Jump to: navigation, search
m
m
Line 1: Line 1:
-
{{book/core
+
{{#ifeq:{{SUBPAGENAME}}|{{#show:{{FULLPAGENAME}}|?language code}}
-
|next= {{#if:{{#var:book_lang}}
+
|{{book/core
-
|{{#show:{{BASEPAGENAME}}|?bookNext#}}
+
|next={{#show:{{BASEPAGENAME}}|?bookNext#}}
-
|{{#if:{{{3|}}}
+
  |prev={{
-
  |{{#rel2abs:{{{3}}} }}
+
  #titleparts:{{
-
  }}
+
   #ask:
-
  }}
+
-
|prev= {{#if:{{#var:book_lang}}
+
-
|{{#titleparts:
+
-
   {{#ask:
+
   [[Category:Books]]
   [[Category:Books]]
   [[bookNext::{{PAGENAME}}]]
   [[bookNext::{{PAGENAME}}]]
Line 15: Line 11:
   |link=none
   |link=none
   }}
   }}
-
  |-1
+
  |-1
   }}
   }}
-
  |{{#ask:
+
  |head={{
 +
  #if:{{{1|}}}
 +
  |{{{1}}}
 +
  |{{#show:{{NAMESPACE}}:{{BASEPAGENAME}}|?book heading}}
 +
  }}
 +
}}
 +
|{{book/core
 +
|next={{
 +
  #if:{{{3|}}}
 +
  |{{#rel2abs:{{{3}}} }}
 +
  }}
 +
|prev={{
 +
  #ask:
   [[Category:Books]]
   [[Category:Books]]
   [[bookNext::{{PAGENAME}}]]
   [[bookNext::{{PAGENAME}}]]
Line 24: Line 32:
   |link=none
   |link=none
   }}
   }}
-
  }}
+
  |head={{
-
|head= {{#if:{{{1|}}}
+
  #if:{{{1|}}}
-
|{{{1}}}
+
  |{{{1}}}
-
|{{#if:{{#var:book_lang}}|{{#show:{{#var:book_base}}|?bookHeading}}}}
+
  }}
  }}
  }}
}}<noinclude>
}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 05:30, 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