# Page History

## Key

• This line was removed.
• Formatting was changed.
Wiki Markup
{info}This Playground wiki is a space to showcase Confluence features and for UCAR staff to try out Confluence for themselves. ThisEditing on this page is protectedrestricted but feel free to add your own pages.&nbsp;{info}
{warning}Please be aware that this wiki is viewable (not editable) by the public so use appropriate testing content.{warning}

h2. Wiki Markup

When editing wiki pages, you can use the default Rich Text Editor which gives you a toolbar and shows you pages roughly as they will appear or you can use the wiki markup mode. Wiki markup is the real code behind the scenes and Confluence includes powerful tags and macros that enable you to do cool things. In the examples below, wherever you see...

{code}a dotted line around some code...{code}
that's the wiki markup that generated what you see on the page.

The toc tag creates a table of contents for the current wiki page based on the heading tags you used. In this example, all the h2 tagged lines are displayed as a link that jumps you to that heading on the page.

{code}{toc:type=flat|separator=pipe|maxLevel=2}{code}
{toc:type=flat|separator=pipe|maxLevel=2}

h2. Editing

Select *Add > Page* to create your own page for trying out Confluence editing. You will see that you have a choice between using a Rich Text or Wiki Markup editor. Rich Text provides you with a word processor-like interface and Wiki Markup enables you to get under the hood and use the full power of Confluence's wiki notation syntax. A link to the [full notation guide|https://wiki.ucar.edu/renderer/notationhelp.action] is available in the Wiki Markup screen under Help Tips. You can "steal" code from other pages by clicking their Edit tab, copying Wiki markup you want to emulate and pressing Cancel. Then just paste what you copied into a page you added.

*Add News* creates a blog entry for a page, which is just a running list of news items or journal entries.

An *Edit button* will appear after you login for pages you have permissions to edit.

The *Tools and Space* dropdown menus make more wiki features and views available to you.

To create a new page, simply type it's name between brackets like...
{code}[newpagetitle]
{code}which gets rendered as a red linklike this [newpagetitle] ...which you click to create the page. Alternatively, you can click the Add Page link in the top right of the screen and then add a link to that page from any page you want.
\\

*Link to an Existing Wiki Page*
To link to an existing wiki page, simply type...
{code}[pagetitle]
{code}...which gets rendered as a link like this [pagetitle].
\\

Type the name of the site followed by the \| character and the URL like this...
{code}[NSF|http://www.nsf.gov]
{code}...which renders like this [NSF|http://www.nsf.gov].
\\

{code}...which renders like this [~mstobbs].
\\

To link to all the children of a page, type...
{code}{children:all=true}
{code}...which renders like this.
\\
{children:all=true}{*}Show Attachments*
You can always click the Attachments tab to see all attachments to a page, but if you want to list them inline in your page, use the attachments tag...
{code}{attachments}
{code}...which renders like this.
You can also link to a specific file attached to a page.
\\
*Automatic Index*
To create an automatic index of links to pages in your wiki that are alphabetical and cross-referenced, type...
{code}{index}
{code}...which renders like this [index].
\\

h2. Lists

Confluence supports a variety of lists. The following code...
{code}- simple list (use -- symbol)
- item 2

* bulleted list (use * symbol)
** bullet indent (use **)

# numbered list (use # symbol)
# numbered
## numbered indented (use ##)
{code}...renders as this.
- simple list (use - symbol)
- item 2

* bulleted list (use * symbol)
** bullet indent (use \**)

# numbered list (use # symbol)
# numbered
## numbered indented (use ##)

h2. Images, Galleries, and Animations

Use images and other media inline on your pages by attaching them to the page and then referencing them using proper Confluence notation. The tags below are organized into a table for layout purposes.
| Inline thumbnail image |
| \!MesaAurora.jpg\|thumbnail\! |
| !MesaAurora.jpg|thumbnail,width=32,height=32! |

| Photo Gallery |
| \{gallery:\|title=Photo Gallery\} |
| {gallery:columns=3|title=Photo Gallery}{gallery} |

h4. Video

[Animations and Movies]

h2. Plugins

Confluence has a very active community of developers who extend Confluence's functionality with [plugins|https://plugins.atlassian.com]. Here are a few that we have installed.

- Team Calendars - see macro example below
- Chart - see macro example below
- Latex - see macro example below
- [Scaffolding|http://wiki.customware.net/repository/display/AtlassianPlugins/Scaffolding+Plugin]
- Gliffy - Click Add button on a page you can edit and select "Add Gliffy Diagram"
- Balsamiq - Click Add button on a page you can edit and select "UI Mockup"

{children:page=PluginsPlugin Examples}

h3. Team Calendars

To add a calendar, select Calendar from the menu item that is your name in the upper right. Once you create a calendar, you can add it to any page with the Team Calendars macro via the Macro Browser.

{calendar:id=148ce9cd-eaa4-40c0-879f-b6277b938eeb|defaultView=month}

h3. Chart
{code}{chart:type=line|title=Chart of Temperatures in Brisbane|yLabel=Celcius
|| Month || Min || Max ||
| January | 31.3 | 37.5 |
| February | 26.8 | 32.7 |
| March | 25.1 | 28 |
| April | 18.7 | 25.3 |
{chart}
{code}
{chart:type=line|title=Chart of Temperatures in Brisbane|yLabel=Celcius |dataDisplay=true|dataOrientation=vertical}
|| Month || Min || Max ||
| January | 31.3 | 37.5 |
| February | 26.8 | 32.7 |
| March | 25.1 | 28 |
| April | 18.7 | 25.3 |
{chart}

h3. Latex
{code}{latex}
$$F = G \frac{m_1 m_2}{r^2}$$
{latex}
{code}
{latex}
$$F = G \frac{m_1 m_2}{r^2}$$
{latex}

h2. Templates

Templates enable Space Administrators to define structured pages so that when editors add a new page, they will be presented with a form to fill out the content of the page. To try a template, click Add Page and click the link to create a page from a template. Select the template you want and proceed to fill out its variables. To create templates, click Browse Space and select Advanced. If you have Space Admin privileges you will see a Space Templates link.

*Template Examples*

The [Scaffolding Plugin|http://wiki.customware.net/repository/display/AtlassianPlugins/Scaffolding+Plugin] provides even more powerful templating including live templates which update pages when the template is changed.

\\

h2. Blogs

Confluence has a blog built into each wiki. To create a blog entry, click the Add News link in the upper right of the screen. Click Browse Space and then click the News tab to see blog entries. If you prefer, you can show blog entries inline on any page using the blog tag...
{code}{blog-posts:5|content=titles}
{code}...which renders like this.
\\
{blog-posts:3}

h2. Notes

Confluence supports numerous macros for easily making notes stand out to users. Here are some examples. Edit this page to see the simple code behind them.
{tip:title=Handy Hint}The tip tag is handy for giving users hints
{tip}
{info:title=Useful Information}The info tag is helpful for providing information in your Confluence pages
{info}
{note:title=Be Careful}The body of the note here
{note}
{warning:title=Warning}Insert warning message here\!
{warning}
{panel:title=Panel| borderStyle=solid| borderColor=#ccc| titleBGColor=#EEEEEE| bgColor=#FFFFCE}
Panels are useful for sidebars or related information
{panel}

h2. Code Examples

Code examples are a snap with the \{code\} tag. Java is the default code type, but you can specify JavaScript, ActionScript, XML, HTML and SQL too, and source code formatters will color and properly indent your code.
public String getFoo()
{
return foo;
}
{code}
{code:xml}<item>
<parameter tag="attribute"/>
</item>
{code}

For security reasons, this playground wiki does not provide access to Confluence's administration features. At your request, we can make you a space administrator so that you can set permissions and other parameters for a space you manage. Below are screenshots (click thumbnail image to expand) of space administrator screens as well as a global Confluence administration screen (which only the WEG team has access to) so that you can get a feel for how configurable Confluence is. Here, layout is accomplished using sections and columns which is an alternative to tables.
{code}{section}

{column}
!Picture 1.png|thumbnail!
{column}

{column}
!Picture 2.png|thumbnail!
{column}

{section}
{code}
{section}

{column}

\!Picture 1.png\|thumbnail,width=32,height=32\!Space Administration screen (Space owner)
{column}
{column}

\!Picture 2.png\|thumbnail,width=32,height=32\!Confluence Administration screen (WEG staff)
{column}
{section}

h2. Import & Export

{section}

{column}

*Import text files*

If you choose to initially populate your space with existing text files, you will need to zip or tar your files and send them to webmaster@ucar.edu for import into your space. The files need to reside on the Confluence server in order to be imported.

*HTML files*

Confluence will render HTML on a page if it is surrounded by \{html\} tags. Please limit your HTML code to simple HTML and CSS display of content and avoid cross-site scripting.
{code:htmltitle=embedded HTML example}{html}
<table>
<tr>
<td>Firstname</td>
<td>Lasname</td>
</tr>
</table>
{html}
{code}{*}Import other wikis*

Confluence has a [Universal Wiki Converter|http://confluence.atlassian.com/display/CONFEXT/Universal+Wiki+Converter] which supports conversion of numerous other wikis into Confluence. The WEG is currently extending the UWC codebase to support Swiki conversion.

*Export as PDF, HTML or XML*

Confluence can export your entire space as a PDF, HTML website, or in XML. This feature is available by clicking Browse Space and then the Advanced tab.
{column}
{column}

\!importFiles.png\|thumbnail,width=32,height=32\!Import text files

\!exportSpace.png\|thumbnail,width=32,height=32\!Export space as PDF, HTML or XML
{column}
{section}