The attachments macro is documented on
Displaying List of Attachments in a Page
.