Using a macro, you can add extra functionality or include dynamic content on a page. For example, the Attachments macro will list a page's attachments in the page itself, so that readers do not have to visit the Attachments tab.

Adding a Macro to your 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.

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

マクロ パラメーター

Many macros allow you to include optional parameters to control the macro's output.

例えば、添付ファイル マクロにはオプションのパラメーターが 2 つあり、これによって次のことが可能です。

  • Specify the file formats of the attachments displayed.
  • Choose whether or not you want old versions of the attachments displayed.

マクロ プレースホルダー

マクロ プレースホルダーはエディタ内に表示され、ページにマクロを追加した場所を示します。

ページの編集時に次の操作が可能です。

  • Double-click a macro placeholder (or click the placeholder and choose Edit) to open the macro dialog window, where you can edit the macro's parameters.
  • Select a macro placeholder to cut, copy and paste the macro.

Macros Shipped with your Confluence Installation

When you download your Confluence installation file, many macros are shipped with the download. Below is a list of the macros currently shipped with Confluence. Click a macro name for details of the usage, including optional parameters and examples.

アクティビティ ストリーム マクロ
アンカー マクロ
添付ファイル マクロ
ブログ投稿マクロ
変更履歴マクロ
チャート マクロ
チーズ マクロ
子ページ表示マクロ
コー​ド ブロック マクロ
列マクロ
ラベル別コンテンツ マクロ
ユーザー別コンテンツ マクロ
コンテンツ レポート テーブル マクロ
投稿者マクロ
投稿者の概要マクロ
テンプレートから作成マクロ
スペース作成ボタンマクロ
抜粋インクルード マクロ
抜粋マクロ
展開マクロ
お気に入りページ マクロ
ガジェット マクロ
ギャラリー マクロ
グローバル レポート マクロ
HTML インクルード マクロ
HTML マクロ
IM Presence マクロ
ページを含めるマクロ
情報マクロ
Jira 課題マクロ
JIRA Macro
JUnit レポート マクロ
ラベルのリストマクロ
Livesearch マクロ
Loremipsum マクロ
Multimedia マクロ
ナビゲーション マップ マクロ
ネットワーク マクロ
書式設定済みマクロ
注意マクロ
ページ インデックス マクロ
ページ プロパティ マクロ
ページ プロパティ レポート マクロ
ページ ツリー マクロ
ページ ツリー検索マクロ
パネル マクロ
人気のあるラベル マクロ
プロフィール画像マクロ
最近更新されたダッシュボード マクロ
最近の更新マクロ
最近使用されたラベル マクロ
関連ラベル マクロ
RSS フィード マクロ
検索結果マクロ
セクション マクロ
スペースの添付ファイル マクロ
スペース詳細マクロ
スペース ジャンプ マクロ
スペースの一覧マクロ
ステータス マクロ
目次マクロ
目次の領域マクロ
タスク一覧マクロ
ヒント マクロ
ユーザー リスト マクロ
ユーザープロファイル マクロ
ユーザーステータス一覧マクロ
ファイル マクロの表示
警告マクロ
ウィジェット コネクタ マクロ

Information about Other Macros

Other macros are available as plugins or as user macros, and can be installed by your Confluence administrator. For example, macros that may be of interest are available from Adaptavist, CustomWare and the Confluence SharePoint Connector. Not applicable to Confluence OnDemand.

Writing your own Macros

To learn how to write your own macro, take a look at the following documentation:

  • User macros are simple template-like macros that allow you to create simple formatting macros using the Confluence web interface. Read more about Writing User Macros. Not applicable to Confluence OnDemand.
  • The Confluence Plugin Guide tells you how to develop a plugin for Confluence.

コー​​ドの例

参照先: