Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
indextrue
show-titlefalse
titleDescription

The Code Block Placeholder Macro passes its content to the Code Block Macro, after placeholders have been replaced with values from the referenced document's properties and/or space properties.

The placeholders in of form ${property name}.

The example above shows how placeholder reference properties from the current document (Props) and space properties. The content is then formatted by the Code Block Macro.

Tip Box

Since version 2.0 there is a very simple escape mechanism. Place a single '\' in front of the '${' and the replacement will not take place. A second backslash in front will escape the backslash and disable the escaping.

Assume that name is associated with the value 'value'.

InputResolves to
${name}value
\${name}${name}
\\${name}\\value




Section
titleProperties


Section
titleDocument
tagsproperty

The document to fetch property values for the placeholders. If not specified, the current document is used.


Section
titleApply Space Properties
tagsproperty

If checked the properties defined by the space of the document this macro is part of are applied as defaults.


Note Box

Since version 1.13 also space property templates are resolved. A space property value may contain a space property placeholder that is resolved before it is inserted for the placeholder specified in the body of this macro.

Document properties do not support placeholders. If a property with a placeholder is encountered it will be rejected if a space property for the same key is given. You can override this by the use of the property control  is-no-template.


Transclusion
documentCode Block Macro Standard Parameters without Plain-Option
idsContent


...