[[PageOutline(2-5,Contents,pullout)]] = Note boxes with icons == Description This macro will render an HTML div-container in its own color and its own icon. The following containers are supported: {{{[[NoteBox(warn, my Text)]]}}} :: will render a red div-container with the given Text and a stopsign-image {{{[[NoteBox(tip, my Text)]]}}} :: will render a green div-container with the given Text and a lightbulb-image {{{[[NoteBox(note, my Text)]]}}} :: will render a blue div-container with the given Text and a notepaper-image It will look like this: [[Image(NoteBoxExampleV1.0.png)]] 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. See also: WikiExtrasPlugin == Bugs/Feature Requests Existing bugs and feature requests for NoteBoxMacro are [report:9?COMPONENT=NoteBoxMacro here]. If you have any issues, create a [/newticket?component=NoteBoxMacro new ticket]. [[TicketQuery(component=NoteBoxMacro,group=type,format=progress)]] == Download Download the latest revision from [export:noteboxmacro here]. == Source You can check out NoteBoxMacro from [/svn/noteboxmacro here] using Subversion, or [source:noteboxmacro browse the source] with Trac. == Installation For detailed installation steps, please refer to t:TracPlugins. The following steps should work for most Trac configurations: 1. Unzip the code and type: {{{#!sh python setup.py install }}} [[br]]or use `easy_install`: {{{#!sh easy_install https://trac-hacks.org/svn/noteboxmacro/0.11 }}} 1. Restart the web server. 1. Enable it at `admin/general/plugins`. If the plugin is installed and functioning correctly, you can see examples of its use at WikiMacros#NoteBox-macro. == Recent Changes [[ChangeLog(noteboxmacro, 3)]] == Author/Contributors '''Author:''' [wiki:gruenebe] [[BR]] '''Maintainer:''' [[Maintainer]] [[BR]] '''Contributors:'''