Changes between Version 7 and Version 8 of NoteBoxMacro


Ignore:
Timestamp:
Nov 11, 2015, 4:52:01 PM (8 years ago)
Author:
figaro
Comment:

Removed superfluous examples

Legend:

Unmodified
Added
Removed
Modified
  • NoteBoxMacro

    v7 v8  
    55== Description
    66
    7 The !NoteBox macro will render an HTML-!DivContainer in different colors with different Icons. The following containers are supported:
     7This macro will render an HTML div-container in its own color and its own icon. The following containers are supported:
    88
    9  ![[NoteBox(warn, my Text)]] ::
     9 {{{[[NoteBox(warn, my Text)]]}}} ::
    1010  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)]]}}} ::
    1213  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)]]}}} ::
    1416  will render a blue div-container with the given Text and a notepaper-image
    1517
    1618It will look like this:
     19
    1720 [[Image(NoteBoxExampleV1.0.png)]]
    1821
    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, however a second macro cannot be embedded within the macro.
     22The [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.
    2023
    2124See also: WikiExtrasPlugin
     
    3336== Download
    3437
    35 Download the latest revision from [download:noteboxmacro here].
     38Download the latest revision from [export:noteboxmacro here].
    3639
    3740== Source
    3841
    39 You can check out NoteBoxMacro from [http://trac-hacks.org/svn/noteboxmacro here] using Subversion, or [source:noteboxmacro browse the source] with Trac.
     42You can check out NoteBoxMacro from [/svn/noteboxmacro here] using Subversion, or [source:noteboxmacro browse the source] with Trac.
    4043
    4144== Installation
     
    4447
    4548 1. Unzip the code and type:
    46 {{{
    47 #!sh
     49 {{{#!sh
    4850python setup.py install
    4951}}}
    5052 [[br]]or use `easy_install`:
    51 {{{
    52 #!sh
     53 {{{#!sh
    5354easy_install http://trac-hacks.org/svn/noteboxmacro/0.11
    5455}}}
     
    5758
    5859If the plugin is installed and functioning correctly, you can see examples of its use at WikiMacros#NoteBox-macro.
    59 
    60 == Example
    61 
    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.
    6760
    6861== Recent Changes