7 | | This plugin allows you to link to an attachment of the current wiki or a ticket by number. This is useful for generic pages. See below for examples. |
| 7 | This plugin allows you to link to an attachment of the current wiki or a ticket by number. This is useful for generic pages. |
| 8 | |
| 9 | As an example: |
| 10 | |
| 11 | {{{ |
| 12 | [[AttachmentNum(1)]] # First attachment, result: "attachment:'first.doc'". |
| 13 | [[AttachmentNum(1, raw=True)]] # First attachment (raw link), result: "raw-attachment:'first.doc'". |
| 14 | [[AttachmentNum(1, format=short)]] # First attachment, hyper-linked filename is printed only, result: "first.doc". |
| 15 | }}} |
41 | | raw = True # Optional default settings |
42 | | format = short # ATM format is only 'short' or 'long' (default) |
43 | | }}} |
44 | | |
45 | | == Example |
46 | | |
47 | | {{{ |
48 | | [[AttachmentNum(1)]] # First attachment, result: "attachment:'first.doc'". |
49 | | [[AttachmentNum(1, raw=True)]] # First attachment (raw link), result: "raw-attachment:'first.doc'". |
50 | | [[AttachmentNum(1, format=short)]] # First attachment, hyper-linked filename is printed only, result: "first.doc". |
| 49 | raw = True # optional default settings |
| 50 | format = short # format is 'short' or 'long' (default) |