Stand with Ukraine 🇺🇦

Macro to be deleted — Confluence Cloud Macro

adminconfluence-content

The macro displays a warning message in Confluence Page Edit mode, instructing editors to delete the deprecated macro. In published mode, it hides the content. Useful on migrations or View/Edit page rendering differentiation. More details: rendering modes

Try for free

User Parameters

This macro comes without configurable user parameters.

Template

#if ($renderContext.outputType == "preview")
  ## Show warning banner
  ## This block will be shown on the Page EDIT mode
  <div style="background-color: var(--ds-background-accent-yellow-subtlest, #FFF7D6); padding: 10px; border-radius: 3px;">
    <div style="display: inline-block; vertical-align: top; width: 30px; text-align: center; margin-top: 4px;">
      <ac:image ac:width="19" ac:height="19">
        <ri:url ri:value="https://api.iconify.design/mdi/alert.svg?color=%23e67e22" />
      </ac:image>
    </div>
    <div style="display: inline-block; width: 95%;">
      <div style="font-weight: bold; margin: 1px 0 5px 0;">
        Delete me
      </div>
      <div style="margin: 3px 0 5px 0; white-space: normal; width: 95%;">
        This macro is no longer available. Please delete it.
      </div>
    </div>
  </div>
#else
  ## Do nothing
  ## This block will be shown on the Page VIEW mode
#end