[Trac-tickets] Re: [The Trac Project] #2048: Wiki macros for generating `<div>`s and `<span>`s with classes

The Trac Project noreply at edgewall.com
Fri Nov 4 17:19:02 CST 2005


#2048: Wiki macros for generating `<div>`s and `<span>`s with classes
-------------------------+--------------------------------------------------
 Reporter:  cboos        |        Owner:  cboos   
     Type:  enhancement  |       Status:  assigned
 Priority:  high         |    Milestone:  0.9.1   
Component:  wiki         |      Version:  devel   
 Severity:  minor        |   Resolution:          
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by cmlenz):

 I don't agree about the builtin styles… if users need divs/spans with
 custom classes, they should be providing the CSS to do the layout. Also
 don't like allowing authors to specify inline styles, really.

 Also, I still favor an explicit and somewhat more verbose syntax for
 blocks/divs:
 {{{
 [[BeginBlock(todo)]]
 Bla bla bla bla
 [[EndBlock]]
 }}}

 ''(I prefer the “block” to “div” as “block” is clearer about
 the intent IMHO.)''

 For spans, how about:
 {{{
 [[Inline(todo, I really need to do [ticket:123 this])]]
 }}}

 i.e. just include the text in the macro parameters.

 We ''could'' provide `[[BeginInline(todo)]]` and `[[EndInline]]` for cases
 where spans need to be nested, which I think should be a really rare case.

 Not stricly opposed to using “/” to end a block/span, need to think
 about that some more. :-P

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2048>
The Trac Project <http://trac.edgewall.com/>


More information about the Trac-Tickets mailing list