How to apply this Macro to a whole space?

To apply the Macro to all pages of a space, you just need to put Wiki Markup of this macro into header or footer of Space Tool.

Wiki Markup Usage

We suggest you put the wiki macro into footer if you want to insert macro in to some pages with different parameters. If you want make sure any page is using the same parameters then you should add the wiki macro into the header.

Example of Wiki Markup

Automatically generate Wiki Macro

From the version 3.1.0, we provide a new feature to generate the wiki macro automatically. Only admin can do this from Configuration.