• Products
  • Documentation
  • Resources

Insert the create space button macro

This macro was intentionally excluded from the new editor and will be deprecated from the legacy editor soon. Read the announcement for more. 

The Create Space Button macro displays a create space icon that links to the 'Create Space' page. To see this icon, viewers need the 'Create Space' permission which is assigned by a site administrator.

Use the Create Space Button macro

To add the Create Space Button macro:

  1. When editing , select from the toolbar

  2. Find the item to be inserted and select it

  3. Select Insert

You can also type / on the page to bring up the same list you'd see by selecting from the toolbar.

To edit the Create Space Button macro:

  1. Select the macro placeholder. The floating toolbar appears.

  2. Select Edit. The right panel opens.

  3. Modify the parameters. Your changes are saved as you go.

  4. Resume editing the page, and the panel closes.

Parameters

Parameters are options that you can set to control the content or format of the macro output. 

If the parameter name used in Confluence Cloud storage format or wikimarkup is different than the label used when inserting macros using the browser or the slash command, it will be listed below in brackets (example).

Parameter

Default

Description

Icon Size
size 

large

Specify whether to use large or small icon. Available values:

  • large

  • small

Wiki markup example

Wiki markup is useful when you need to add a macro outside the editor, for example as custom content in the sidebar, header or footer of a space.

Macro name: create-space-button

Macro body: None.

1 2 3 4 5 {create-space-button:size=small} {create-space-button:height=50px|width=50px}

The following additional parameters are available in storage format and wiki markup.

Parameter name

Required

Default

Parameter description and accepted values

width

No

Natural size of icon

(1:1 pixel ratio)

The width of the icon to be displayed, specified in pixels. Confluence will stretch or shrink the width of the icon to the number of pixels specified.

Note: This parameter is not available via the macro browser.

height

No

Natural size of icon

(1:1 pixel ratio)

The height of the icon to be displayed, specified in pixels. Confluence will stretch or shrink the height of the icon to the number of pixels specified.

This parameter is not available via the macro browser.

 

Additional Help