Confluence 5.0 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
The Page Properties macro enables you to embed data on a page and then display that data in tabular form on another page . You can put the Page Properties macro on as many pages as you like and use the Page Properties Report macro to display the collected data on one page. You can also choose to hide the metadata on the pages that contain the Page Properties macro.
This macro was previously known as the Metadata Details macro.
Basic usage of the Page Properties and Page Properties Report macros
ページ プロパティ マクロは、ページ プロパティ レポート マクロと組み合わせて使用されます。 マクロを使用するには、次の手順を実行します。 メタデータ キーと値のマクロ プレースホルダーの本文に 2 列のテーブルを追加します。 When you insert the Page Properties macro on a page Confluence automatically adds the label to the page. You can add more than one Page Properties macro to the page, but they will inherit the same label (e.g. you cannot have two Page Properties macros with different labels on the same page).
Screenshot: example 'Status' report
Using the Page Properties macro
Add the Page Properties macro to the page:
- In the Confluence editor, choose Insert > Other Macros.
- 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.既存のマクロを編集する方法: マクロのプレースホルダをクリックして、[編集] を選択します。マクロのパラメータが編集可能な場合、マクロのダイアログ ウィンドウが開きます。
- Add a label to the macro, using the macro parameters.
In the macro browser, add a Label. For example, "Status".
Add metadata keys and values as rows in a table, in the body of the macro placeholder.
In the macro body add a two column table. In the left column specify the keys (these will be the column headings in your report). In the right column specify the values for each key.
Screenshot: The macro placeholder in the Confluence editor
パラメーター
パラメータは、マクロ出力の内容や形式を制御するために設定するオプションです。
パラメーター | 既定 | 説明 |
---|---|---|
ラベル | (なし) | The label used to identify the metadata on this page. Confluence will add this label to the page. Any additional Page Properties macros will inherit this label. |
非表示 | False | ページ プロパティ マクロのデータを現在のページに表示するかどうかを決定します。この設定は、ページ プロパティ レポート マクロの詳細表示に影響しません。 |
例
The following examples outline how you can use the Page Properties and Page Properties Report macros together to create a Status Report or a Risk Report.
コードの例
参照先:
注意
- If you add a label to the parameter in the Page Properties macro, Confluence adds the label to the page.
- If you remove the label from the Page Properties macro, the label remains on the page.
- If you remove the label from the page but leave it in the Page Properties macro, Confluence puts the label back onto the page.
- You can add many Page Properties macros per page, however all Page Properties macros on the page will have the same labels applied to them. For example, if you add two Page Properties macros on a page, one with the label "risk" and the other with the label "status", both sets of metadata will appear in the Page Properties Report macro for the "status" label and for the "risk: label. This is true even if you have specified just one label in each Page Properties macro. It is the labels on the page that matter, not the labels in the macros.
- ページ内や Confluence ページの他の場所からメタデータを使用してメタデータを参照することはできません。
Other metadata macros
There are other metadata macros, which are not supported or documented on this page but which are worth mentioning:
{metadata-list} – Adds metadata keys and values. See Atlassian Answers.
- {metadata-values:pagename} – Displays the metadata values without the keys. You can use @self to get the metadata on the current page. See Atlassian Answers.
- {metadata-report}
- Macros added by the Confluence Metadata Plugin 2.