Changes between Version 7 and Version 8 of NoteBoxMacro
- Timestamp:
- Nov 11, 2015, 4:52:01 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NoteBoxMacro
v7 v8 5 5 == Description 6 6 7 Th e !NoteBox macro will render an HTML-!DivContainer in different colors with different Icons. The following containers are supported:7 This macro will render an HTML div-container in its own color and its own icon. The following containers are supported: 8 8 9 ![[NoteBox(warn, my Text)]]::9 {{{[[NoteBox(warn, my Text)]]}}} :: 10 10 will render a red div-container with the given Text and a stopsign-image 11 ![[NoteBox(tip, my Text)]] :: 11 12 {{{[[NoteBox(tip, my Text)]]}}} :: 12 13 will render a green div-container with the given Text and a lightbulb-image 13 ![[NoteBox(note, my Text)]] :: 14 15 {{{[[NoteBox(note, my Text)]]}}} :: 14 16 will render a blue div-container with the given Text and a notepaper-image 15 17 16 18 It will look like this: 19 17 20 [[Image(NoteBoxExampleV1.0.png)]] 18 21 19 The [http://trac.edgewall.org/browser/tags/trac-0.11/trac/wiki/api.py?marks=118-139#L118 parse_args] function from the Trac API is used to parse the input, therefore commas must be escaped with a backslash . That is, make the following replacement: `,` -> `\,`. Everything in the second argument is interpreted as wiki markup, howevera second macro cannot be embedded within the macro.22 The [http://trac.edgewall.org/browser/tags/trac-0.11/trac/wiki/api.py?marks=118-139#L118 parse_args] function from the Trac API is used to parse the input, therefore commas must be escaped with a backslash (\). That is, the following replacement must be made: `,` -> `\,`. Everything in the second argument is interpreted as wiki markup, however, a second macro cannot be embedded within the macro. 20 23 21 24 See also: WikiExtrasPlugin … … 33 36 == Download 34 37 35 Download the latest revision from [ download:noteboxmacro here].38 Download the latest revision from [export:noteboxmacro here]. 36 39 37 40 == Source 38 41 39 You can check out NoteBoxMacro from [ http://trac-hacks.org/svn/noteboxmacro here] using Subversion, or [source:noteboxmacro browse the source] with Trac.42 You can check out NoteBoxMacro from [/svn/noteboxmacro here] using Subversion, or [source:noteboxmacro browse the source] with Trac. 40 43 41 44 == Installation … … 44 47 45 48 1. Unzip the code and type: 46 {{{ 47 #!sh 49 {{{#!sh 48 50 python setup.py install 49 51 }}} 50 52 [[br]]or use `easy_install`: 51 {{{ 52 #!sh 53 {{{#!sh 53 54 easy_install http://trac-hacks.org/svn/noteboxmacro/0.11 54 55 }}} … … 57 58 58 59 If the plugin is installed and functioning correctly, you can see examples of its use at WikiMacros#NoteBox-macro. 59 60 == Example61 62 Use either:63 * '''![[NoteBox(warn, my Text)]]'''64 * '''![[NoteBox(tip, my Text)]]'''65 * '''![[NoteBox(note, my Text)]]'''66 where '''my Text''' can be replaced with your text.67 60 68 61 == Recent Changes