Versions Compared

Key

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

...

Parameters

Required

Default

Notes

first unnamed
parameter

(tick)

 

(tick)


The metadata key (name by which the value can be accessed).

  • Character restrictions?
macro body

The metadata value

trim


true

Should the macro body contents be trimmed (remove whitespace)?

  • true – yes, trim (recommended)
  • false – no, leave as is

page


 current page

Where should the metadata be stored (default = current page)?

  • @parent – store on the parent page, not the current page
  • @children – store on child pages, not the current page

Note: This parameter only works on pages, not blog posts.

...

Note: This example requires Space Modespace mode for the pagecreated event to work.

...retrieving later

...

You can either use the {get-metadata} macro, if you want to output the value in normal wiki contnet content (or a macro that supports such content):

Code Block
languagetext
themeRDark
This document was created by:
 [~{get-metadata:Document Author}]


Or a Value ReferencesReference (if applicable):

Code Block
languagetext
themeRDark
This document was created by:
 [~@Document Author@]

...