Changes between Version 13 and Version 14 of AttachmentNumMacro


Ignore:
Timestamp:
Apr 14, 2018, 9:40:41 AM (6 years ago)
Author:
figaro
Comment:

Moved example to description

Legend:

Unmodified
Added
Removed
Modified
  • AttachmentNumMacro

    v13 v14  
    55== Description
    66
    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.
     7This plugin allows you to link to an attachment of the current wiki or a ticket by number. This is useful for generic pages.
     8
     9As 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}}}
    816
    917== Bugs/Feature Requests
     
    2129Download the zipped source from [export:attachmentnummacro/0.11 here].
    2230
    23 There is also a version on [pypi:TracAttachmentNumMacro PyPi].
     31The plugin is also available on [pypi:TracAttachmentNumMacro PyPI].
    2432
    2533== Source
     
    3947
    4048[attachmentnum]
    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".
     49raw = True      # optional default settings
     50format = short  # format is 'short' or 'long' (default)
    5151}}}
    5252