Difference between revisions of "Documentation/Dashboard/Wiki Editing Policy"

From Apache OpenOffice Wiki
Jump to: navigation, search
(.doctoc)
Line 16: Line 16:
 
===CSS Styles===
 
===CSS Styles===
  
====.doctoc====
+
====.DocTOC====
  
 
Class to allow for easy creation of TOC templates.
 
Class to allow for easy creation of TOC templates.
Line 42: Line 42:
 
   }
 
   }
 
   
 
   
  .DocDown {  
+
=====Result=====
    text-align: right;
+
The style can be used in TOC templates as follows:
    color: #AAA;
+
 
    border-top: 1px solid #AAA;
+
<code>
    padding: 0px;
+
{|class="DocTOC"
    margin-top: 15px;
+
|-
  }
+
!Title of the Book
 +
|-
 +
|
 +
* Book Chapter 1
 +
* Book Chapter 2
 +
* Book Chapter 3
 +
|}
 +
</code>
 +
 
 +
and rendered like this:
 +
 
 +
{|style="border:1px solid #9099a8; padding: 0px; font-size: xx-small; background-color: #FFF; width: 200px; margin-left: 40px; margin-bottom: 20px; "
 +
|-style="text-align: center; font-weight: bold; font-size: small; background-color: #c5d0e1; margin:0px;"
 +
!Title of the Book
 +
|-
 +
|
 +
* Book Chapter 1
 +
* Book Chapter 2
 +
* Book Chapter 3
 +
|}
  
 
===Templates===
 
===Templates===

Revision as of 15:39, 10 August 2007

Template:Documentation/BeingEdited

Template Usage

Look here if you are unfamiliar with mediawiki templates.

If you create a new template to be used in the wiki documentation, name it as a subpage of Documentation

  • wrong: mytemplate
  • right: Documentation/mytemplate

We don't need to create a subhierarchy for templates under Documentation (like "Documentation/templates") since all templates live inside the Template: namespace, anyway.

Proposed Templates and CSS Styles

CSS Styles

.DocTOC

Class to allow for easy creation of TOC templates.

Example
.DocTOC { 
   float:right;
   border:1px solid #9099a8;
   padding: 0px;
   font-size: xx-small;
   background-color: #FFF;
   width: 200px;
   margin-left: 40px;
   margin-bottom: 20px;
   margin-top: -35px;
 }

.DocTOC th { 
   text-align: center;
   font-weight: bold;
   font-size: small;
   background-color: #c5d0e1;
   margin:0px;
 }

Result

The style can be used in TOC templates as follows:

Title of the Book
* Book Chapter 1
* Book Chapter 2
* Book Chapter 3

and rendered like this:

Title of the Book
  • Book Chapter 1
  • Book Chapter 2
  • Book Chapter 3

Templates

Documentation/FAQTOC

Documentation/hbar

Documentation/DraftPage

Documentation/NavigationTemplate

Documentation/BeingEdited

Documentation/NeedsHelp

Documentation/GettingStartedTOC

Spacer

Graphical Content

Linking

Personal tools