Confluence - Chapter 3

Macros


Macros

Macros are plugins that enhance Confluence’s functionality. A wide variety is available, from official options to community-created tools. While some are premium and offer advanced features, there are plenty of free options to explore.

You are probably already familiar with common plugins like:

But there are a lot more combinations that you can make from them. The following section will include a list of amazing Macros worth checking out. There will be examples of a few combinations and how to make the most of them.


Advanced Macros

I wouldn’t suggest you going and trying all of them, instead go to the next section to start learning simple combinations and go from there.

Small Details:

Page Optimization:

Page Organization:

Pay To Win Macros:

Cloud Macros

Hardcore Macros

Macro Combinations

Macros are comparable to Terraform functions. It’s essential to recognize that there are easier ways to accomplish tasks. Yet, to fully leverage the tool, it’s crucial to stretch its capabilities and intertwine multiple functions with a specific goal in mind.

Practical Enhancements

Sometimes people don’t use certain options of their macros which can impact in the way things are felt.

If you document is heavy on code I could assume your readers won’t care most of the time in the code itself but rather what you are talking about. For those cases, the expand option from the Code Macro will make a difference.

This can also be done for images of even sections, with the expand macros. I personally hid memes this way.

Quick Wins

If you’ve only got the mental bandwidth for a few Macros, prioritize the following macros to get ahead of multiple documentations:

In the following example, the main page “Macros Example” displays two results with the ChildTabs that are the pages under it. The context behind those pages will be explained in the Datasource Page’s example. Still, you must know that separated pages are loaded simultaneously and quickly accessible through the parent page.

The cross-reference between those is not limited by location but just for simplicity.

childtabs-macro-content-side-by-side

Panels, Cards, Sections, and Layouts

The Panel allows to create a section with colored background, but you can get more creative and do more by also using it with Deck of Cards

Let’s begin with a new page example, the ‘Cloud Guardians’ team: panel-example-final-result

Compared to the first example of the ‘Gotta Go Fast’ team, it looks more imposing. Even though it seems similar, there are a lot of changes, but for now, let’s focus on the main ones:

It may look similar to the configuration, but it has its nuances. Starting from the title:

panel-example-configuration-1

  1. A Panel sets the background to match set the color.
  2. The Knuckles SEGA logo is centered and has a smaller size.
  3. The title image was generated using the Tech Headlines font on the Font SpaceTech site.
    • It looks invisible as I change it with the MacOS image editor to be white and compatible with the background.
  4. A simple line made with the Horizontal Rule macro separates the contents from the logo.
    • Not much thought was put into it; it felt right.
  5. Next section is divided with a Layout section of 2/3.
  6. Titles start at level 2 with red color. This makes the transition from huge L1 text to normal-sized paragraphs less weird.
  7. We use the Panel macro with a background of #FAFFFD (Baby Powder color) to highlight the content section, ensuring important sections stand out.
  8. We make sure the Content Table section contains the rule to start at level 2; otherwise, it will have a weird indentation.

And well, that was the fun part. For the next part we will see the Deck of Cards, Let’s first refresh the Macros that we will use for this section:

  1. Deck of Cards
  2. Section
  3. Column
  4. Section
  5. Panel
  6. Span

Please note that for screenshots, the last card of the first tab won’t be visible. You’re not missing anything.

panel-example-configuration-2

Yeah, I know. It’s quite messy to read and probably hard to edit, too. However, I can only say that the result is worth the trouble.

So it goes like this:

  1. Originally the first Panel was going to set a different color for the whole Deck of Cards, but it didn’t looked right, so I avoided doing it like that. See images below to understand the pain: panel-example-bad-ending On that note, keep in mind that other Macros do not render in the preview: panel-example-nested-panels
  2. The Deck of Cards creates horizontal tabs containing one or multiple Cards.
  3. Inside of a Card we will have the Section.
  4. Section will contain the Column macro.
  5. Column will have a Panel.
  6. Each Panel will have the text and display using a Span.
  7. The Span is used for set parameters to the block and have consistency.
  8. A Button Hyperlink is used to provide a way for users to access the other links related to each Product.
  9. The rest of Columns follow the same pattern. The percentage associated with it may variate but it is suggested to stick to percentages to not have issues when displaying.

Optimized Colors and Contrast

Originally the example didn’t looked like the one shown before. It was like this:

Click to expand
panel-example-first-attempt


Even thought it may look alright, reading with highcontrast or weird colors can throw your attention away.

There are plenty of tools to get ideas of how to get better colors based on a palette by either of concepts of complementary colors or the like.

For this site I used Coolors, and took as main color the Knuckles red (#E63D26) locked that color and started generating palettes like pulling for a Gacha Character, and in the end I went with the Baby Powder as it was more subtle.

The contrast is another element to keep in mind if you are going to user bright colors. As it may affect the readiblity and chakra mislalignment.

panel-sections-wcolors-example

Just to recap:

Buttons

You can Customize Button Hyperlink With CSS by using the CSS Style Sheet