Difference between revisions of "Template:Documentation/MasterTOC"
From Apache OpenOffice Wiki
(to more understanding TOC structure headers it must look as tree section) |
|||
Line 10: | Line 10: | ||
<div id="icon" style="float:right; margin-right: -10px; margin-top: -10px;">[[Image:Book.png]]</div> | <div id="icon" style="float:right; margin-right: -10px; margin-top: -10px;">[[Image:Book.png]]</div> | ||
<div id="{{{bookid}}}" style="border:1px solid #9099a8; padding: 0px; font-size: xx-small; background-color: #FFF;"> | <div id="{{{bookid}}}" style="border:1px solid #9099a8; padding: 0px; font-size: xx-small; background-color: #FFF;"> | ||
− | <div id="doc_toctitle" class="docooo_toctitle" style="background-color: #c5d0e1; border: 0px solid #9099a8; padding: 1px;font-weight: bold; text-align: | + | <div id="doc_toctitle" class="docooo_toctitle" style="background-color: #c5d0e1; border: 0px solid #9099a8; padding: 1px;font-weight: bold; text-align: left; font-size:120%;">{{{booktitle}}}</div> |
− | <div id="parttitle" class="docooo_parttitle" style="padding: 1px;font-weight: bold; text-align: | + | <div id="parttitle" class="docooo_parttitle" style="padding: 1px;font-weight: bold; text-align: left; border-bottom: 1px solid #9099a8; display:{{{ShowParttitle|none}}}"> |
+ | : {{{parttitle}}} | ||
+ | </div> | ||
<div id="tocbody" class="docooo_tocbody" style="padding: 6px;"> | <div id="tocbody" class="docooo_tocbody" style="padding: 6px;"> | ||
{{{toccontent}}} | {{{toccontent}}} | ||
Line 68: | Line 70: | ||
<div id="icon" style="float:right; margin-right: -10px; margin-top: -10px;">[[Image:Book.png]]</div> | <div id="icon" style="float:right; margin-right: -10px; margin-top: -10px;">[[Image:Book.png]]</div> | ||
<div id="1234" style="border:1px solid #9099a8; padding: 0px; font-size: xx-small; background-color: #FFF;"> | <div id="1234" style="border:1px solid #9099a8; padding: 0px; font-size: xx-small; background-color: #FFF;"> | ||
− | <div id="toctitle" class="docooo_toctitle" style="background-color: #c5d0e1; border: 0px solid #9099a8; padding: 1px;font-weight: bold; text-align: | + | <div id="toctitle" class="docooo_toctitle" style="background-color: #c5d0e1; border: 0px solid #9099a8; padding: 1px;font-weight: bold; text-align: left; font-size:120%;">[[My Manual]]</div> |
− | <div id="parttitle" class="docooo_parttitle" style="padding: 1px;font-weight: bold; text-align: | + | <div id="parttitle" class="docooo_parttitle" style="padding: 1px;font-weight: bold; text-align: left; border-bottom: 1px solid #9099a8; display:block"> |
+ | : [[My First Part]] | ||
+ | </div> | ||
<div id="tocbody" class="docooo_tocbody" style="padding: 6px;"> | <div id="tocbody" class="docooo_tocbody" style="padding: 6px;"> | ||
* Chapter | * Chapter |
Revision as of 12:57, 29 May 2008
Usage of Parameters
- ShowPrevPage
- set to "block" to show the "previous page" link, set to "none" to hide it. This parameter is not set in the TOC based on this template, but rather in the file containing that TOC. So the parameter value is "passed through" the TOC to this template and therefore must explicitly be set to none to hide the link. The TOC must use {{{ShowPrevPage}}} as the parameter value to ensure passing along.
- PrevPage
- the path to the previous page (no surrounding "[")
- ShowNextPage
- set to "block" to show the "next page" link, set to "none" to hide it. This parameter is not set in the TOC based on this template, but rather in the file containing that TOC. So the parameter value is "passed through" the TOC to this template and therefore must explicitly be set to none to hide the link. The TOC must use {{{ShowNextPage}}} as the parameter value to ensure passing along.
- NextPage
- the path to the previous page (no surrounding "[")
- bookid
- The id for the book (not yet evaluated)
- booktitle
- The book title that appears at the top of the TOC in full wiki syntax (i.e. as a link: [[MyGuide|My Great Manual]]
- ShowParttitle
- set to "block" to show the part title. This will be used in Sub-TOCs. It will default to hidden when not specified.
- parttitle
- The title of the part that this Sub-TOC covers in full wiki syntax (i.e. as a link: [[MyGuide/MyPart|Part 1: My Great Part]]
- toccontent
- The content of the TOC as lists and divs.
- ShowPrevPart
- set to "block" in to show the "previous part" link at the bottom of the TOC. If this parameter is set at the TOC level (and not on the file level like the prev/next page parameter), it will default to hidden when not specified.
- PrevPart
- the path to the first page of the previous part (no surrounding "[")
- ShowNextPart
- set to "block" in to show the "previous part" link at the bottom of the TOC. If this parameter is set at the TOC level (and not on the file level like the prev/next page parameter), it will default to hidden when not specified.
- NextPart
- the path to the first page of the next part (no surrounding "[")
Example
- ShowPrevPage set to none
- ShowNextPage set to block
- NextPage set to The Next Page
- bookid set to 1234
- booktitle set to [[My Manual]]
- ShowParttitle set to block
- parttitle set to [[The First Part]]
- ShowPrevPart set to none
- ShowNextPart set to block
- NextPart set to [[The Second Part]]