Template:Book
From open-support.info
(Difference between revisions)
m |
m |
||
| Line 1: | Line 1: | ||
| - | {{#if:{{ | + | <includeonly>{{#if:{{{root|}}} |
|{{book/core | |{{book/core | ||
| - | | | + | |master page={{#if:{{{master page|}}} |
| - | + | |{{{master page}}} | |
| - | + | |{{#show:{{{root}}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}} | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
}} | }} | ||
| - | | | + | |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|}}} |
| - | + | |{{#show:{{{master page}}}|?book title}} | |
| - | |{{#show:{{ | + | |{{#show:{{#show:{{{root}}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}|?book title}} |
| - | + | ||
}} | }} | ||
}} | }} | ||
| - | |next={{# | + | |next ={{#if:{{{next|}}} |
| - | + | |{{{next}}} | |
| - | + | |{{#if:{{{master page|}}} | |
| - | # | + | |{{#show:{{{master page}}}|?book next}} |
| - | + | |{{#show:{{#show:{{{root}}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}|?book next}} | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
}} | }} | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
}} | }} | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
}} | }} | ||
|{{book/core | |{{book/core | ||
| - | |lang= | + | |master page={{{master page|}}} |
| - | | | + | |master rev ={{{master rev|}}} |
| - | + | |status ={{{status}}} | |
| - | | | + | |progress ={{{progress}}} |
| - | | | + | |priority ={{{priority}}} |
| - | + | |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}}} | ||
| - | |{{ | + | |{{#if:{{{master page|}}}|{{#show:{{{master page}}}|?book title}}}} |
}} | }} | ||
| - | |next={{#if:{{{next|}}}| | + | |next = {{#if:{{{next|}}} |
| - | + | |{{{next}}} | |
| - | + | |{{#if:{{{master page|}}}|{{#show:{{{master page}}}|?book next}}}} | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
}} | }} | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
}} | }} | ||
| - | }}< | + | }}</includeonly><noinclude> |
| - | + | ||
| - | + | ||
| - | + | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 11:47, 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. |