+1 for option 2
"info", "warning", "error" shouldn't be the way you
style the message,
but the purpose of the message. Moreover, writing {info} .. {info} is
shorter, easier to remember and much more natural for someone that
doesn't care what's behind the macro.
On 1/31/07, phunghainam(a)xwiki.com <phunghainam(a)xwiki.com> wrote:
Hi all !
http://jira.xwiki.org/jira/browse/XWIKI-524
Now we're going to rewrite the info, warning, error and floatingbox macros to make
use of the style macro.
I'm proposing 2 choices:
Option 1 : we will use this syntax for info, warning, error and floatingbox macros :
{style:type=warning}
This is the warning !!
{style}
{style:type=info}
This is the Info !!
{style}
{style:type=error}
This is the Error !!
{style}
{style:type=floatingbox }
This is the floatingbox !!
{style}
Option 2 :
{warning}
This is the warning with multiple lines !!
This is the warning with multiple lines !!
{warning}
{info}
This is the info with multiple lines !!
This is the info with multiple lines !!
{info}
......
which syntax should we use for xwiki ! I need your opinions about this problem.
Thanks and best regards !
- Phung Nam.
--
You receive this message as a subscriber of the xwiki-dev(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws