Template:Book
From open-support.info
(Difference between revisions)
m |
m |
||
Line 2: | Line 2: | ||
|{{book/core | |{{book/core | ||
|lang=/{{BASEPAGENAME}} | |lang=/{{BASEPAGENAME}} | ||
- | |next={{#show:{{BASEPAGENAME}}|? | + | |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}} | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
}} | }} | ||
|{{book/core | |{{book/core | ||
- | | | + | |lang= |
- | + | |root={{#titleparts:{{FULLPAGENAME}}|1}} | |
- | + | |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 | ||
}} | }} | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 06:03, 15 April 2011
[edit] [ ] 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.
The above documentation is transcluded from Template:Book/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |