ギャラリー マクロは、Confluence ページに添付された画像に基づき、サムネイル画像のコレクションを表形式で表示します。ページの閲覧中、ユーザーはサムネイル画像をクリックして拡大し、スクリーンサイズのスライドショーとして見ることができます。
概要:
イラスト:ギャラリー マクロによる使用例
ページにギャラリー マクロを挿入するには:
パラメーターの完全な一覧は以下の表のとおりです。添付ファイルまたはページの名前にカンマが含まれている場合、それをシングル クォーテーションまたはダブル クォーテーションで囲むと、下記の関連パラメータで参照できます。例: "this,that.jpg", theother.png。
パラメーター | 既定 | 説明 |
|---|---|---|
ギャラリー タイトル | なし | ギャラリーのタイトルを指定します。 |
列の数 | 4 | 表の列数を指定します。 |
除外する画像 | 除外なし。ページのすべての写真を含める。 | ギャラリーは指定した写真を無視します。複数の写真をカンマ区切りで指定できます。 |
これらの画像のみを含める | ページのすべての写真を含める | 複数の写真を指定して含めると、その写真のみがギャラリーに表示されます。複数の写真をカンマ区切りで指定できます。 |
これらのラベルの画像を除外する(excludeLabel) | 除外なし。ページのすべての写真を含める。 | The gallery will ignore any pictures that have the specified label. You can specify more than one label, separated by commas. For information on labelling the attachments, see Add, Remove and Search for Labels. |
これらのラベルの画像のみを含める(includeLabel) | なし。画像はラベルでフィルタリングされません。 | Filters the images to display, based on a list of labels. If you wish to enter more than one label, separate the labels with commas. Confluence will show only images that have all the labels specified. (The match is an AND, not an OR.) For information on labelling the attachments, see Add, Remove and Search for Labels. |
次のページのイメージを使用 | ページが指定されていない場合、ギャラリー マクロはマクロが使用されているページに添付された画像を表示します。 | 表示する画像を含むページのタイトルを指定します。複数のページ名をカンマ区切りで指定できます。異なるスペースのページを指定するには、以下の構文を使用します: SPACEKEY:Page Title |
画像の並べ替え | なし。並べ替え順が指定されていないため、順不同。 | 画像を並べ替える属性を指定します。並べ替え順は降順パラメーターを選択していない限り、 昇順です(以下参照)。オプションは以下のとおりです。
|
逆順ソート | オフ。並べ替え順は昇順。 | 上記のSort Images Byパラメーターと組み合わせて使用します。Reverse Sort により、並べ替え順を昇順から降順に変更します。 保存形式と Wiki マークアップで使用可能な値:
|
次の例は、Confluence ページの基本的なマークアップを調べたり、編集したりする上級ユーザー向けに提供されています。
マクロ名: gallery
マクロ本文: なし。
<ac:structured-macro ac:name="gallery"> <ac:parameter ac:name="title">My holiday pictures</ac:parameter> <ac:parameter ac:name="reverse">true</ac:parameter> <ac:parameter ac:name="sort">size</ac:parameter> <ac:parameter ac:name="page">My page1, ds:Welcome to Confluence</ac:parameter> <ac:parameter ac:name="excludeLabel">badlabel1, badlabel2</ac:parameter> <ac:parameter ac:name="columns">3</ac:parameter> <ac:parameter ac:name="exclude">badpicture.png</ac:parameter> </ac:structured-macro> |
{gallery:title=My holiday pictures|reverse=true|sort=size|page=My page1, ds:Welcome to Confluence|excludeLabel=badlabel1, badlabel2|columns=3|exclude=badpicture.png} |