Template:Book
From open-support.info
(Difference between revisions)
m |
m |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:root|{{#titleparts:{{FULLPAGENAME}}|1}} | <includeonly>{{#vardefine:root|{{#titleparts:{{FULLPAGENAME}}|1}} | ||
}}{{#vardefine:path|{{#if:{{#titleparts:{{PAGENAME}}|-1}}|{{#titleparts:{{PAGENAME}}||2}}}} | }}{{#vardefine:path|{{#if:{{#titleparts:{{PAGENAME}}|-1}}|{{#titleparts:{{PAGENAME}}||2}}}} | ||
- | }} | + | }}{{#vardefine:main|{{#if:{{{master page|}}} |
- | + | |{{{master page}}} | |
- | + | |{{#if:{{#var:path}} | |
- | + | |{{#if:{{#show:{{#var:root}}|?docinfo master page#}} | |
- | + | |{{#show:{{#var:root}}|?docinfo master page#}}/{{#var:path}} | |
- | + | ||
}} | }} | ||
- | }}{{#vardefine:stat|{{#if:{{{status|}}} |{{{status}}} |{{#show:{{#var:root}}|?docinfo status}}}} | + | }} |
+ | }}{{#ifeq:{{#var:main}}|{{FULLPAGENAME}} | ||
+ | |{{#vardefine:main|}} | ||
+ | | | ||
+ | }}{{#if:{{#var:path}} | ||
+ | |{{ #vardefine:stat|{{#if:{{{status|}}} |{{{status}}} |{{#show:{{#var:root}}|?docinfo status}}}} | ||
}}{{#vardefine:prog|{{#if:{{{progress|}}}|{{{progress}}}|{{#show:{{#var:root}}|?docinfo progress}}}} | }}{{#vardefine:prog|{{#if:{{{progress|}}}|{{{progress}}}|{{#show:{{#var:root}}|?docinfo progress}}}} | ||
}}{{#vardefine:prio|{{#if:{{{priority|}}}|{{{priority}}}|{{#show:{{#var:root}}|?docinfo priority}}}} | }}{{#vardefine:prio|{{#if:{{{priority|}}}|{{{priority}}}|{{#show:{{#var:root}}|?docinfo priority}}}} | ||
Line 17: | Line 21: | ||
}}{{#vardefine:lang|{{#if:{{{lang|}}} |{{{lang}}} |{{#show:{{#var:root}}|?docinfo language}}}} | }}{{#vardefine:lang|{{#if:{{{lang|}}} |{{{lang}}} |{{#show:{{#var:root}}|?docinfo language}}}} | ||
}} | }} | ||
- | |{{ | + | |{{ #vardefine:stat|{{{status|}}} |
- | + | ||
}}{{#vardefine:prog|{{{progress|}}} | }}{{#vardefine:prog|{{{progress|}}} | ||
}}{{#vardefine:prio|{{{priority|}}} | }}{{#vardefine:prio|{{{priority|}}} |
Revision as of 08:21, 20 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. |