Confluence 4.0 : Confluence Plugins for Technical Documentation
This page last changed on Aug 09, 2011 by pwatson.
Extended Wiki Markup FeaturesAll wiki markup extensions are provided by macros in Confluence. Some macros are built in to Confluence. Other macros are supplied by plugins. Quick Overview of MacrosBefore looking at plugins, let's take a quick look at macros in general. There are two ways to add a macro to your page:
A number of macros are shipped with your Confluence installation by default. See Working With Macros. Below we describe some plugins that provide additional useful macros for Confluence: Composition PluginThe Composition plugin adds some formatting features to compose a page in a more flexible way. Using the macros provided by the Composition plugin, you can:
Using the Composition Plugin to Outline Text BlocksUse the {cloak} macro to outline a text block. Usage: The following code creates a text block named 'SeeAlso' for the outlined 'See Also' section within a page. The text block with id='SeeAlso' will be hidden after the 'See Also' title: {composition-setup} h2. {toggle-cloak:id=SeeAlso} See Also {cloak:id=SeeAlso} h3. Working With Macros: [Link 1] [Link 2] h3. Working with Rich Text Editor: [Link 3] [Link 4] {cloak} Alternatives: You can also use the {expand} macro available in Confluence by default, but this macro can outline only text of the same level and cannot hide headings within the text. The {expand} macro does not require parameters and just hides the text placed between the {expand} tags. Note: If you need to outline a text block containing nested headings, consider the text structure. Maybe the block is too big. You could create a child page from this block to decompose the whole text. Then you can include and outline the text block using the {include} macro within {expand}. Using the Composition Plugin to Add Tabs to a PageUse the {deck} and {card} macros to separate content between tabs on the same page. Usage: The following code creates two tabs with client information: {composition-setup} h1. Client Name {deck:id=ClientName} {card:label=Basic} Client Company Name: Company [Client Web Site|http://url.com] Our projects: [Project1|Project1 Home] {card} {card:label=Contacts} Company CEO: John Brown, e_mail: brown@company.com {card} {deck} The tabs on a page will look like this: Using the Composition Plugin to Flow your Text around ImagesUse the {float} macro to make your text flow around images or diagrams. Usage: The following code demostrates how a picture can be surrounded by the description, as often shown in printed publications: {composition-setup} {float:left} !shakespeare.jpg! {float} William Shakespeare (baptised 26 April 1564; died 23 April 1616) was an English poet and playwright, widely regarded as the greatest writer in the English language and the world's pre-eminent dramatist. ... The page will look like this: For more macros, see the Composition plugin page. Scaffolding PluginThe Scaffolding plugin allows you to create sophisticated page templates in order to add content easily and fast. Scaffolding templates are suitable for dynamically-filled data and allow people to create pages by completing form fields and selecting values from drop-down lists. The Scaffolding templates are useful for creating pages with a well-determined structure, such as:
Example: The following Scaffolding template creates a description of an API method: h3. Method Name {text-data:methodName|required=true}{text-data} h3. Method Description {text-data:methodDescription|type=area|required=true|width=100%}description{text-data} h3. Parameters {table-data:parameters} || Name || Type || Mandatory || Description || | {text-data:paramName}ParamName{text-data} | {list-data:paramType}{list-option:Number}Number{list-option}{list-option:String}String{list-option}{list-option:DateTime}DateTime{list-option}{list-option:MACaddress}MACaddress{list-option}{list-option:IPaddress}IPaddress{list-option}{list-data} | {list-data:paramMandatory}{list-option:Required}Required{list-option}{list-option:Optional}Optional{list-option}{list-data} | {text-data:paramDescription|type=area}param description{text-data} | {table-data} h3. Return Value The returned value is an XML structure of the following format: \{code:xml\} \{code\} Where elements mean: {table-data:returnValues} || Name || Type || Description || | {text-data:paramName}ParamName{text-data} | {list-data:paramType}{list-option:Number}Number{list-option}{list-option:String}String{list-option}{list-option:DateTime}DateTime{list-option}{list-option:MACaddress}MACaddress{list-option}{list-option:IPaddress}IPaddress{list-option}{list-data} | {text-data:paramDescription}param description{text-data} | {table-data} h3. Remarks {text-data:remarks}remarks{text-data} h3. See Also This template will look like this: For more information on how to create templates in Confluence, see Adding a Template. Alternatives: Confluence includes built-in templates which as useful for static data and simple text. For more information, see Working with Templates. Notes: The Scaffolding (and any) template changes will affect only new pages created from the modifed template. In order to change the existing pages, you need to edit each individual page and add or modify the formatting manually. For more information on Scaffolding, see the Scaffolding plugin page. Extended Version ControlAttachment Checkout PluginThe Attachment Checkout plugin adds check-out/check-in functionality for Confluence attachments. It allows you to control the versions of the documents attached to a page with the same file name. Attachment checkout allows Confluence to warn contributors that the document is being edited by someone else. Note that there are no merge features for attachments. Example: To store and control the versions of Project Vision documentation received from a customer on the Confluence page: For information on working with attachments, see Working with Attachments. Drawing ToolsGliffy PluginThe Gliffy plugin provides an embedded diagram editor. Gliffy allows you to create and edit diagrams directly from a Confluence page. It supports various diagram types (UML, business process, and so on). Alternatives: As an alternative you can use the standalone version of Gliffy available at http://www.gliffy.com/. Gliffy online has a free basic version. For more information, see the Gliffy plugin page. Notes
Further Reading
![]() ![]() ![]() ![]() |
![]() |
Document generated by Confluence on Sep 19, 2011 02:37 |