The Info macro allows you to highlight helpful information on a Confluence page. It creates a blue-coloured box surrounding your text, as shown below.

Info Macro Example

テキストが情報マクロの中に表示されます。

Using the Info Macro

To add the Info macro to a page:

  1. In the Confluence editor, choose Insert > Other Macros.
  2. Find and select the required macro.

オートコンプリートでマクロを素早く入力する方法

Type { and the beginning of the macro name, to see a list of suggested macros. Details are in Using Autocomplete.

既存のマクロを編集する方法: マクロのプレースホルダをクリックして、[編集] を選択します。マクロのパラメータが編集可能な場合、マクロのダイアログ ウィンドウが開きます。

パラメーター

Parameters are options that you can set to control the content or format of the macro output. Where the parameter name used in Confluence storage format or wikimarkup is different to the label used in the macro browser, it will be listed below in brackets (example).

パラメーター

既定

説明

オプション タイトル
(title

なし

The title of the information box. If specified, the title text will be displayed in bold next to the icon.

Show Information Icon
(icon

true

「false」の場合、アイコンが非表示になります。

コー​​ドの例

次の例は、Confluence ページの基本的なマークアップを調べたり、編集したりする上級ユーザー向けに提供されています。 

マクロ名: info

マクロ本文: リッチ テキストの利用可

保存形式の例

以下の例ではすべてのパラメータと本文を表示しています。

<ac:structured-macro ac:name="info">
  <ac:parameter ac:name="icon">false</ac:parameter>
  <ac:parameter ac:name="title">This is my title</ac:parameter>
  <ac:rich-text-body>
    <p>
      <span>This is </span> <em>important</em> <span> information.</span>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>

下記の例はさまざまなオプションのパラメーターを使用した情報マクロの例です。

説明

Markup表示結果

定義済み本文ありおよびオプション パラメーターなしの情報マクロ

<ac:structured-macro ac:name="info">
  <ac:rich-text-body>
    <p>This is <em>important</em> information.</p>
  </ac:rich-text-body>
</ac:structured-macro>

 これは重要な情報です。

定義済みの本文およびオプションタイトルパラメーターありの情報マクロ

<ac:structured-macro ac:name="info">
  <ac:parameter ac:name="title">This is my title</ac:parameter>
  <ac:rich-text-body>
    <p>This is <em>important</em> information.</p>
  </ac:rich-text-body>
</ac:structured-macro>

This is my title

 これは重要な情報です。

定義済みの本文とオプションタイトルおよびアイコンパラメーターありの情報マクロ

<ac:structured-macro ac:name="info">
  <ac:parameter ac:name="icon">false</ac:parameter>
  <ac:parameter ac:name="title">This is my title</ac:parameter>
  <ac:rich-text-body>
    <p>
      <span>This is </span> <em>important</em> <span> information.</span>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>

This is my title

 これは重要な情報です。

Wiki マークアップの例

{info:title=This is my title|icon=false}
This is _important_ information.
{info}

 

 

  • ラベルなし