Changes between Version 13 and Version 14 of TicketBoxMacro
- Timestamp:
- Mar 28, 2008, 1:03:29 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TicketBoxMacro
v13 v14 7 7 title="sample image" style="float:right"/> 8 8 }}} 9 Display list of ticket numbers in a box on the right side of the page. 10 The purpose of this macro is show related tickets compactly. 11 You can list tickets explicitly or specify a report that generates them (to do the same with [TracQuery queries] instead of [TracReports reports], use the [trac:TicketQuery TicketQuery macro]). Tickets will be displayed as sorted and uniq'ed. 12 An example image is shown op the right of this page. 9 This macro displays the list of ticket numbers in a box on the right 10 side of the page compactly. 11 You can specify the tickets explicitly or use the result of reporting. 12 The tickets will be displayed as sorted and uniq'ed. 13 An example image is shown on the right of this page. 14 15 Note: 'query' format is not yet supported. 13 16 14 17 == Bugs/Feature Requests == … … 45 48 == Example == 46 49 47 Simple list of tickets by specifiying ticket numbers.50 These example shows the simple list of tickets by specifiying ticket numbers. 48 51 '#' character can be omitted: 49 52 {{{ … … 52 55 }}} 53 56 54 List tickets expanded from the report result. 55 Third example uses dynamic variable. 56 The special variable 'USER' can be specified. If not specified, 57 login name (or anonymous) is used: 57 These examples lists the tickets from the report result. 58 Second examplesh uses dynamic variable 'COMPONENT'. 59 The special variable 'USER' is always avaiable and it is 60 your login name (or 'anonymous' if not logged in). 61 You can override the variable 'USER' like third example. 58 62 {{{ 59 63 [[TicketBox({1})]] … … 63 67 }}} 64 68 65 Combination of above is allowed. The tickets are listed as sorted and uniq'ed: 69 The combination of above is allowed. 70 The tickets are listed as sorted and uniq'ed: 66 71 {{{ 67 [[TicketBox({1 ),#50,{2},100)]]72 [[TicketBox({1},#50,{2},100)]] 68 73 }}} 69 74 70 Specifying asize of the box:75 You can specify the size of the box: 71 76 {{{ 72 77 [[TicketBox(500pt,{1})]] … … 75 80 }}} 76 81 77 Specifying a title of the box. 78 single and double quoted string are allowed. 79 If '%d' in title string will be replaced with count of tickets: 82 You can specify the title. 83 The value should be surrounded by single or double quote. 84 You can also embed the number of tickets by '%d' in title string like 85 third example: 80 86 {{{ 81 87 [[TicketBox('Related Tickets',#1,#2)]] 82 88 [[TicketBox("Related Tickets",#1,#2)]] 83 89 [[TicketBox("There are %d tickets",{1})]] 90 }}} 91 92 If you do not make box floating, put the 'inline' argument. 93 The box is placed in the text. 94 If you want to show with summary string, put 'summary' argument: 95 {{{ 96 [[TicketBox({1},inline)]] 97 [[TicketBox({1},summary,inline)]] 84 98 }}} 85 99