テンプレートから作成マクロは、ページにボタンを表示し、特定のテンプレートにリンクします。ボタンをクリックするとマクロがエディターを開き、新規ページ追加の準備が整い、所定のテンプレートに基づいてページへのコンテンツを追加します。

When adding the macro to the page, you can specify a blueprint or a user-created template in the macro. You will also specify the name of the button displayed, and the space in which the new page will appear.

スクリーンショット:3 つのボタンが表示されたページ - すべて「テンプレートからの作成マクロ」による表示

テンプレートから作成マクロマクロを使用する

ページにテンプレートから作成マクロマクロを追加するには:

  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).

パラメーター

既定

説明

Button Text'Create from Template'ページ上で表示されるマクロの説明。
Template Nameなし新規ページのベースとなるテンプレートまたはブループリントを選択します。現在のスペースに対しグローバルおよびユーザーが作成したテンプレートのみが表示されます(「スペース キー」欄で異なるスペースを指定してる場合は除く)

Template Title

空白

このマクロを使用して作成したページに既定値のタイトルを指定します(任意)。タイトルには、変数; @currentDate、@spaceName、@spaceKey を使用できます。
Space Key現在のページが作成されているスペース一意のスペース識別子(スペース キー)を与え、マクロを使用してページを作成する際に新規ページが作成される場所を特定します。

コー​​ドの例

参照先:

  • Confluence Storage Format for Macros
  • このマクロでは Wiki マークアップは使用できません。Wiki マークアップを使用して、このマクロを追加することはできません。

  • ラベルなし