抜粋マクロを挿入する
The excerpt macro is used to mark a part of a page or live doc's content for reuse. Defining an excerpt enables other macros, such as the insert excerptand Insert the blog posts macro macros, to display the marked content elsewhere.
You can add multiple excerpts per page or doc and distinguish them from one another with a name you assign them. This allows you to create a page or doc full of blocks of content to reuse on other pages or docs. The content you add to the excerpt becomes the single source, which allows you to make a change in that one place, and all the pages that use the excerpt include macro to show that content will reflect the changes you made in the excerpt macro.
抜粋マクロを追加するには、次の手順に従います。
Confluence エディターで > [さらに表示] の順に選択します。
抜粋マクロを見つけて選択します。マクロ プレースホルダーが追加されて、右側のパネルが開きます。
Enter a name for the macro so that you can reference it on another page or live doc using the insert excerptmacro.
If you don't give the macro a name, you will only be able to include the content from the first excerpt macro on a page or doc.Select the Hide excerpt on this page check box if you want the content inside the macro to be hidden.
Add your content inside the excerpt macro placeholder in the page or doc. Most of the formatting options can be used, and elements in the toolbar can be inserted into the macro.
You can also type /
to bring up the same list you'd see by selecting from the toolbar.
抜粋マクロを編集するには、次の手順に従います。
マクロのプレースホルダーを選択します。フローティング ツールバーが表示されます。
編集を選択します。 右側のパネルが開きます。
パラメータを修正します。変更内容は、移動するごとに保存されます。
Resume editing, and the panel closes.
パラメーター
パラメーターは、マクロ出力の内容や形式を制御するために設定できるオプションです。Confluence 保存形式で使用されるパラメーター名がブラウザーで使用されるラベルと異なる場合は、以下の一覧に括弧付きで表示されます (example
)。
パラメーター | 既定 | 説明 |
---|---|---|
Excerpt name | null | Allows you to identify this macro so that you can add multiple Excerpt macros to one page or live doc and use a specific one on another page or doc using the Excerpt Include macro. |
Hide excerpt on this page | false | Controls whether the content contained in the Excerpt macro placeholder is displayed on the page or live doc. This option affects only the page or doc that contains the Excerpt macro. It does not affect any pages or docs where the content is reused. |
次の追加パラメーターは保存形式で使用可能です。エディターのオプションパネルと同様に機能します。
パラメーター名 | 必須 | 既定 | パラメーターの説明と指定可能な値 |
---|---|---|---|
| いいえ |
| 抜粋マクロ本体に含まれるコンテンツを新たに行を追加して表示するか、インラインで表示するか決定します。 利用可能な値:
This option affects only the page or doc that contains the Excerpt macro. It does not affect any pages or docs where the content is reused. |
この内容はお役に立ちましたか?