Template:Book
From open-support.info
(Difference between revisions)
m |
m |
||
Line 1: | Line 1: | ||
- | <includeonly>{{#if:{{{ | + | <includeonly>{{#if:{{#titleparts:{{PAGENAME}}|-1}} |
|{{book/core | |{{book/core | ||
|master page= {{#if:{{{master page|}}} | |master page= {{#if:{{{master page|}}} | ||
|{{{master page}}} | |{{{master page}}} | ||
- | |{{#show:{{{ | + | |{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}} |
}} | }} | ||
|master rev = {{{master rev|}}} | |master rev = {{{master rev|}}} | ||
- | |status = {{#if:{{{status|}}} |{{{status}}} |{{#show:{{{ | + | |status = {{#if:{{{status|}}} |{{{status}}} |{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo status}}}} |
- | |progress = {{#if:{{{progress|}}}|{{{progress}}}|{{#show:{{{ | + | |progress = {{#if:{{{progress|}}}|{{{progress}}}|{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo progress}}}} |
- | |priority = {{#if:{{{priority|}}}|{{{priority}}}|{{#show:{{{ | + | |priority = {{#if:{{{priority|}}}|{{{priority}}}|{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo priority}}}} |
- | |category = {{#if:{{{category|}}}|{{{category}}}|{{#show:{{{ | + | |category = {{#if:{{{category|}}}|{{{category}}}|{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo category}}}} |
- | |author = {{#if:{{{author|}}} |{{{author}}} |{{#show:{{{ | + | |author = {{#if:{{{author|}}} |{{{author}}} |{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo author}}}} |
- | |editor = {{#if:{{{editor|}}} |{{{editor}}} |{{#show:{{{ | + | |editor = {{#if:{{{editor|}}} |{{{editor}}} |{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo editor}}}} |
- | |support = {{#if:{{{support|}}} |{{{support}}} |{{#show:{{{ | + | |support = {{#if:{{{support|}}} |{{{support}}} |{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo support}}}} |
- | |lang = {{#if:{{{lang|}}} |{{{lang}}} |{{#show:{{{ | + | |lang = {{#if:{{{lang|}}} |{{{lang}}} |{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo language}}}} |
|desc = {{#if:{{{desc|}}} | |desc = {{#if:{{{desc|}}} | ||
|{{{desc}}} | |{{{desc}}} | ||
|{{#if:{{{master page|}}} | |{{#if:{{{master page|}}} | ||
|{{#show:{{{master page}}}|?description}} | |{{#show:{{{master page}}}|?description}} | ||
- | |{{#show:{{#show:{{{ | + | |{{#show:{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo master page}}<!-- |
+ | -->/{{#titleparts:{{PAGENAME}}|-1|2}}|?description}} | ||
}} | }} | ||
}} | }} | ||
Line 25: | Line 26: | ||
|{{#if:{{{master page|}}} | |{{#if:{{{master page|}}} | ||
|{{#show:{{{master page}}}|?book heading}} | |{{#show:{{{master page}}}|?book heading}} | ||
- | |{{#show:{{#show:{{{ | + | |{{#show:{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo master page}}<!-- |
+ | -->/{{#titleparts:{{PAGENAME}}|-1|2}}|?book heading}} | ||
}} | }} | ||
}} | }} | ||
Line 32: | Line 34: | ||
|{{#if:{{{master page|}}} | |{{#if:{{{master page|}}} | ||
|{{#show:{{{master page}}}|?book title}} | |{{#show:{{{master page}}}|?book title}} | ||
- | |{{#show:{{#show:{{{ | + | |{{#show:{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}|?book title}} |
}} | }} | ||
}} | }} | ||
Line 39: | Line 41: | ||
|{{#if:{{{master page|}}} | |{{#if:{{{master page|}}} | ||
|{{#show:{{{master page}}}|?book next}} | |{{#show:{{{master page}}}|?book next}} | ||
- | |{{#show:{{#show:{{{ | + | |{{#show:{{#show:{{#titleparts:{{FULLPAGENAME}}|1}}|?docinfo master page}}/{{#titleparts:{{PAGENAME}}|-1|2}}|?book next}} |
}} | }} | ||
}} | }} |
Revision as of 13:30, 17 April 2011
The results of this template are not shown here.
[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. |