Template:Book
From open-support.info
(Difference between revisions)
m |
m |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{root|}}} | <includeonly>{{#if:{{{root|}}} | ||
|{{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:{{{root}}}|?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:{{{root}}}|?docinfo status}}}} |
- | |progress ={{#if:{{{progress|}}}|{{{progress}}}|{{#show:{{{root}}}|?docinfo progress}}}} | + | |progress = {{#if:{{{progress|}}}|{{{progress}}}|{{#show:{{{root}}}|?docinfo progress}}}} |
- | |priority ={{#if:{{{priority|}}}|{{{priority}}}|{{#show:{{{root}}}|?docinfo priority}}}} | + | |priority = {{#if:{{{priority|}}}|{{{priority}}}|{{#show:{{{root}}}|?docinfo priority}}}} |
- | |category ={{#if:{{{category|}}}|{{{category}}}|{{#show:{{{root}}}|?docinfo category}}}} | + | |category = {{#if:{{{category|}}}|{{{category}}}|{{#show:{{{root}}}|?docinfo category}}}} |
- | |author ={{#if:{{{author|}}} |{{{author}}} |{{#show:{{{root}}}|?docinfo author}}}} | + | |author = {{#if:{{{author|}}} |{{{author}}} |{{#show:{{{root}}}|?docinfo author}}}} |
- | |editor ={{#if:{{{editor|}}} |{{{editor}}} |{{#show:{{{root}}}|?docinfo editor}}}} | + | |editor = {{#if:{{{editor|}}} |{{{editor}}} |{{#show:{{{root}}}|?docinfo editor}}}} |
- | |support ={{#if:{{{support|}}} |{{{support}}} |{{#show:{{{root}}}|?docinfo support}}}} | + | |support = {{#if:{{{support|}}} |{{{support}}} |{{#show:{{{root}}}|?docinfo support}}}} |
- | |lang ={{#if:{{{lang|}}} |{{{lang}}} |{{#show:{{{root}}}|?docinfo language}}}} | + | |lang = {{#if:{{{lang|}}} |{{{lang}}} |{{#show:{{{root}}}|?docinfo language}}}} |
- | |desc | + | |desc = {{#if:{{{desc|}}} |
|{{{desc}}} | |{{{desc}}} | ||
|{{#if:{{{master page|}}} | |{{#if:{{{master page|}}} | ||
Line 21: | Line 21: | ||
}} | }} | ||
}} | }} | ||
- | |heading | + | |heading = {{#if:{{{heading|}}} |
|{{{hading}}} | |{{{hading}}} | ||
|{{#if:{{{master page|}}} | |{{#if:{{{master page|}}} | ||
Line 28: | Line 28: | ||
}} | }} | ||
}} | }} | ||
- | |title | + | |title = {{#if:{{{title|}}} |
|{{{title}}} | |{{{title}}} | ||
|{{#if:{{{master page|}}} | |{{#if:{{{master page|}}} | ||
Line 35: | Line 35: | ||
}} | }} | ||
}} | }} | ||
- | |next | + | |next = {{#if:{{{next|}}} |
|{{{next}}} | |{{{next}}} | ||
|{{#if:{{{master page|}}} | |{{#if:{{{master page|}}} | ||
Line 43: | Line 43: | ||
}} | }} | ||
}} | }} | ||
+ | |prev = {{#ask: | ||
+ | [[Category:Books]] | ||
+ | [[book next::{{FULLPAGENAME}}]] | ||
+ | |?# | ||
+ | |format = list | ||
+ | |limit = 1 | ||
+ | }} | ||
|{{book/core | |{{book/core | ||
- | |master page={{{master page|}}} | + | |master page = {{{master page|}}} |
- | |master rev ={{{master rev|}}} | + | |master rev = {{{master rev|}}} |
- | |status | + | |status = {{{status}}} |
- | |progress | + | |progress = {{{progress}}} |
- | |priority | + | |priority = {{{priority}}} |
- | |category | + | |category = {{{category}}} |
- | |author | + | |author = {{{author}}} |
- | |editor | + | |editor = {{{editor}}} |
- | |support | + | |support = {{{support}}} |
- | |lang | + | |lang = {{{lang}}} |
- | |desc | + | |desc = {{#if:{{{desc|}}} |
|{{{desc}}} | |{{{desc}}} | ||
|{{#if:{{{mastert page|}}}|{{#show:{{{master page}}}|?description}}}} | |{{#if:{{{mastert page|}}}|{{#show:{{{master page}}}|?description}}}} | ||
Line 71: | Line 78: | ||
}} | }} | ||
}} | }} | ||
+ | |prev = {{#ask: | ||
+ | [[Category:Books]] | ||
+ | [[book next::{{FULLPAGENAME}}]] | ||
+ | |?# | ||
+ | |format = list | ||
+ | |limit = 1 | ||
+ | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 12:19, 17 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. |