Difference between revisions of "Template:Documentation/MasterTOC/Bg"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<div id="tocwrapper" class="docooo_tocwrapper" style="float:right;  width: 200px; padding: 0px; border: 3px solid #fff; border-left: 20px solid #fff; border-bottom: 20px solid #fff; margin-left: 40px; margin-bottom: 20px; margin-top: -5px;">
 +
<!--
 +
  <div id="icon" style="float:right; margin-right: -10px; margin-top: -10px;">[[Image:Book.png]]</div>
 +
//-->
 +
  <div id="{{{bookid}}}" style="border:1px solid #9BC0F5; padding: 0px; font-size: xx-small; background-color: #FFF;">
 +
    <div id="doc_toctitle" class="docooo_toctitle docsection">{{{booktitle}}}</div>
 +
    <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 id="tocfooter" class="docooo_tocfooter" style="padding: 1px;">
 +
{|border=0 width=100%
 +
|-
 +
|style="text-align:left;"|<span style="display: {{{ShowPrevPart|none}}}">[[{{{PrevPart}}}|&lt; Предишен раздел]]</span>
 +
|style="text-align:right;"|<span style="display: {{{ShowNextPart|none}}}">[[{{{NextPart}}}|Следващ раздел &gt;]]</span>
 +
|}
 +
</div>
 +
</div>
 +
    <div id="tocbody" class="docooo_tocbody" style="padding: 6px;">
 +
{{{toccontent}}}
 +
    </div>
 +
<div id="PrevNextPage" class="docooo_prevnextpage" style="font-size: xx-small!important; margin-bottom: 3px; margin-top: 3px;">
 +
{|border=0 width=100%
 +
|-
 +
|style="text-align:left;"|<span style="display: {{{ShowPrevPage|none}}}">[[{{{PrevPage}}}|&lt; Предишна страница]]</span>
 +
|style="text-align:right;"|<span style="display: {{{ShowNextPage|none}}}">[[{{{NextPage}}}|Следваща страница &gt;]]</span>
 +
|}
 +
</div>
 +
</div>
 +
</div>
 +
 +
<noinclude>
 +
 +
==Използване на параметрите==
 +
;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 <nowiki>{{{ShowPrevPage}}}</nowiki> 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 <nowiki>{{{ShowNextPage}}}</nowiki> 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: <nowiki>[[MyGuide|My Great Manual]]</nowiki>
 +
;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: <nowiki>[[MyGuide/MyPart|Part 1: My Great Part]]</nowiki>
 +
;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 "[")
 +
 +
{{Note|The style classes are not yet created in the css file}}
 +
 +
=== Simulated example ===
 +
 +
* '''ShowPrevPage''' set to '''none'''
 +
* '''ShowNextPage''' set to '''block'''
 +
* '''NextPage''' set to '''The Next Page'''
 +
* '''bookid''' set to '''1234'''
 +
* '''booktitle''' set to '''<nowiki>[[My Manual]]</nowiki>'''
 +
* '''ShowParttitle''' set to '''block'''
 +
* '''parttitle''' set to '''<nowiki>[[The First Part]]</nowiki>'''
 +
* '''ShowPrevPart''' set to '''none'''
 +
* '''ShowNextPart''' set to '''block'''
 +
* '''NextPart''' set to '''The Second Part'''
 +
* '''toccontent''' set to '''* Chapter<br /> * Chapter<br /> * Chapter'''
 +
 +
<div style="border: 1px dotted #000; padding: 20px; width: 400px; margin: 20px;">
 +
 +
<div id="tocwrapper" class="docooo_tocwrapper" style="width: 200px; padding: 0px; border: 5px solid #fff;">
 +
  <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="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: left; border-bottom: 1px solid #9099a8; display:block">
 +
: [[The First Part]]
 +
</div>
 +
<div id="tocfooter" class="docooo_tocfooter" style="padding: 1px;">
 +
{|border=0 width=100%
 +
|-
 +
|style="text-align:left;"|<span style="display: {{{ShowPrevPart|none}}}">[[{{{PrevPart}}}|&lt; Previous Part]]</span>
 +
|style="text-align:right;"|<span style="display: block">[[The Second Part|Next Part &gt;]]</span>
 +
|}
 +
</div>
 +
    <div id="tocbody" class="docooo_tocbody" style="padding: 6px;">
 +
* Chapter
 +
* Chapter
 +
* Chapter
 +
    </div>
 +
<div id="PrevNextPage" class="docooo_prevnextpage" style="font-size: small; margin-bottom: 10px;">
 +
{|border=0 width=100%
 +
|-
 +
|style="text-align:left;"|<span style="display: none">[[{{{PrevPage}}}|&lt; Previous Page]]</span>
 +
|style="text-align:right;"|<span style="display: block">[[The Next Page|Next Page &gt;]]</span>
 +
|}
 +
</div>
 +
</div>
 +
</div>
 +
 +
</div>
 +
 +
===Calculated example===
 +
(note: not usable in preview mode while editing this template):
 +
 +
<pre>{{Documentation/MasterTOC/Bg
 +
|ShowPrevPage=none
 +
|ShowNextPage=block
 +
|NextPage=The Next Page
 +
|bookid=1234'''
 +
|booktitle=[[Моя наръчник]]
 +
|ShowParttitle=block
 +
|parttitle=[[Първа част]]
 +
|ShowPrevPart=none
 +
|ShowNextPart=block
 +
|NextPart=The Second Part
 +
|toccontent=* Глава
 +
* Chapter
 +
* Chapter
 +
}}
 +
</pre>
 +
 +
will be:
 +
 +
<div style="border: 1px dotted #000; padding: 20px; width: 400px; height: 200px; margin: 20px;">
 +
 
{{Documentation/MasterTOC/Bg
 
{{Documentation/MasterTOC/Bg
|ShowPrevPage={{{ShowPrevPage}}}
+
|ShowPrevPage=none
|PrevPage={{{PrevPage}}}
+
|ShowNextPage=block
|ShowNextPage={{{ShowNextPage}}}
+
|NextPage=The Next Page
|NextPage={{{NextPage}}}
+
|bookid=1234'''
|bookid=DevGuide
+
|booktitle=[[Моя наръчник]]
|booktitle=[[Bg/Documentation/DevGuide/OpenOffice.org Developers Guide|OpenOffice.org Developer's Guide]]
+
|ShowParttitle=block
|ShowParttitle=none
+
|parttitle=[[Първа част]]
 
|ShowPrevPart=none
 
|ShowPrevPart=none
 
|ShowNextPart=block
 
|ShowNextPart=block
|NextPart=Bg/Documentation/DevGuide/FirstSteps/First Steps
+
|NextPart=The Second Part
|toccontent=<section begin=toccontent />
+
|toccontent=* Глава
* [[Bg/Documentation/DevGuide/FirstSteps/First Steps|Първи стъпки]]
+
* Глава
* [[Bg/Documentation/DevGuide/ProUNO/Professional UNO|Professional UNO]]
+
* Глава
* [[Bg/Documentation/DevGuide/WritingUNO/Writing UNO Components|Writing UNO Components]]
+
}}
* [[Bg/Documentation/DevGuide/Extensions/Extensions|Разширения]]
+
</div>
* [[Bg/Documentation/DevGuide/AdvUNO/Advanced UNO|Advanced UNO]]
+
[[Category:Wiki Templates]]
* [[Bg/Documentation/DevGuide/OfficeDev/Office Development|Office Development]]
+
</noinclude>
* [[Bg/Documentation/DevGuide/Text/Text Documents|Текстови документи]]
+
* [[Bg/Documentation/DevGuide/Spreadsheets/Spreadsheet Documents|Spreadsheet Documents]]
+
* [[Bg/Documentation/DevGuide/Drawings/Drawing Documents and Presentation Documents|Drawing Documents and Presentation Documents]]
+
* [[Bg/Documentation/DevGuide/Charts/Charts|Charts]]
+
* [[Bg/Documentation/DevGuide/Basic/OpenOffice.org Basic|OpenOffice.org Basic]]
+
* [[Bg/Documentation/DevGuide/Database/Database Access|Database Access]]
+
* [[Bg/Documentation/DevGuide/Forms/Forms|Forms]]
+
* [[Bg/Documentation/DevGuide/UCB/Universal Content Broker|Universal Content Broker]]
+
* [[Bg/Documentation/DevGuide/Config/Configuration Management|Configuration Management]]
+
* [[Bg/Documentation/DevGuide/JavaBean/JavaBean for Office Components|JavaBean for Office Components]]
+
* [[Bg/Documentation/DevGuide/Accessibility/Accessibility|Accessibility]]
+
* [[Bg/Documentation/DevGuide/Scripting/Scripting Framework|Scripting Framework]]
+
* [[Bg/Documentation/DevGuide/GUI/Graphical User Interfaces|Graphical User Interfaces]]
+
* [[Bg/Documentation/DevGuide/AppendixA/OpenOffice.org API-Design-Guidelines|OpenOffice.org API-Design-Guidelines]]
+
* [[Bg/Documentation/DevGuide/AppendixB/IDL Documentation Guidelines|IDL Documentation Guidelines]]
+
* [[Bg/Documentation/DevGuide/AppendixC/Universal Content Providers|Universal Content Providers]]
+
* [[Bg/Documentation/DevGuide/AppendixD/UNOIDL Syntax Specification|UNOIDL Syntax Specification]]
+
* [[Bg/Documentation/DevGuide/Glossary/Glossary|Речник]]
+
<section end=toccontent />}}
+

Latest revision as of 06:33, 7 July 2018

{{{booktitle}}}

{{{toccontent}}}

[[{{{PrevPage}}}|< Предишна страница]] [[{{{NextPage}}}|Следваща страница >]]


Използване на параметрите

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 "[")
Documentation note.png The style classes are not yet created in the css file

Simulated 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
  • toccontent set to * Chapter
    * Chapter
    * Chapter
Book.png
[[{{{PrevPart}}}|< Previous Part]] Next Part >
  • Chapter
  • Chapter
  • Chapter
[[{{{PrevPage}}}|< Previous Page]] Next Page >

Calculated example

(note: not usable in preview mode while editing this template):

{{Documentation/MasterTOC/Bg
|ShowPrevPage=none
|ShowNextPage=block
|NextPage=The Next Page
|bookid=1234'''
|booktitle=[[Моя наръчник]]
|ShowParttitle=block
|parttitle=[[Първа част]]
|ShowPrevPart=none
|ShowNextPart=block
|NextPart=The Second Part
|toccontent=* Глава
* Chapter
* Chapter
}}

will be:

Първа част
[[{{{PrevPart}}}|< Предишен раздел]] Следващ раздел >
  • Глава
  • Глава
  • Глава
[[{{{PrevPage}}}|< Предишна страница]] Следваща страница >


Personal tools