Version 5 (modified by 9 years ago) (diff) | ,
---|
Contents
Note boxes with icons
Notice: This plugin is unmaintained and available for adoption.
Description
The NoteBox macro will render an HTML-DivContainer in different colors with different Icons. 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:
The 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, however a second macro cannot be embedded within the macro.
See also: WikiExtrasPlugin
Bugs/Feature Requests
Existing bugs and feature requests for NoteBoxMacro are here.
If you have any issues, create a new ticket.
defect |
5 / 5 |
|
---|---|---|
enhancement |
3 / 3 |
|
task |
1 / 1 |
Download
Download the latest revision from [download:noteboxmacro here].
Source
You can check out NoteBoxMacro from here using Subversion, or browse the source with Trac.
Installation
For detailed installation steps, please refer to t:TracPlugins. The following steps should work for most Trac configurations:
- Unzip the code and type:
python setup.py install
or useeasy_install
:easy_install http://trac-hacks.org/svn/noteboxmacro/0.11
- Restart the web server.
- 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.
Example
Use either:
- [[NoteBox(warn, my Text)]]
- [[NoteBox(tip, my Text)]]
- [[NoteBox(note, my Text)]]
where my Text can be replaced with your text.
Recent Changes
- 13676 by rjollos on 2014-02-19 10:51:59
-
Tagged version 1.0.
- 13675 by rjollos on 2014-02-19 10:50:48
-
Trimmed whitespace using
reindent.py
.
- 13600 by rjollos on 2014-01-21 06:06:55
-
1.0: Released version 1.0. Fixes #9907.
- Renamed class from
NoteBox
toNoteBoxMacro
. - Strip whitespace from arguments.
(more)
- Renamed class from
Author/Contributors
Author: gruenebe
Maintainer: none (needsadoption)
Contributors:
Attachments (1)
- NoteBoxExampleV1.0.png (14.9 KB) - added by 12 years ago.
Download all attachments as: .zip