I wouldn't call that abusing. My sense is that that markup was intended
to be extensible. I've often thought that it could be used to enrich the
semantics in other places as well and so improve the DocBook output:

{{{#!wiki procedure
'''To do this that and the other thing'''
 1. Do this.
 2. Do that.
 3. Do the other thing.
}}}

Which when rendered as DocBook would become:

<procedure>
 <title>To do this that and the other thing</title>
 <step><para>Do this.</para></step>
 <step><para>Do that.</para></step>
 <step><para>Do the other thing.</para></step>
</procedure>

Then you might also have a ListProcedures macro that lists all the
procedures (filterable in various ways) in the wiki. Your sidebar would
turn into a <sidebar> element in DocBook :-)

It would be nice if there were some way to add things that become
attributes in the DocBook output, but I suspect that would go too far
beyond what wiki markup is intended to be.

David

> -----Original Message-----
> From: Frank Lin PIAT [mailto:fp...@klabs.be] 
> Sent: Monday, March 23, 2009 3:22 PM
> To: moin-user@lists.sourceforge.net
> Subject: [Moin-user] (ab)Using Admonitions to implement sidebar
> 
> Hello,
> 
> It seems that it is be possible to implement a sidebar using 
> the Admonition logic.
> You can see an example in [1]. The typical wiki code and CSS 
> are below.
> 
> What do you think about it?
> I could work on a patch if you are interested.
> 
> Franklin
> 
> 
> ### SAMPLE CODE ###
> {{{#!wiki sidebar
> '''New call for test'''
>  Test1 :: Foo
>  Test2 :: Bar.
> }}}
> ####
> 
> 
> [1] http://www.klabs.be/debian-wiki-dev/AdmonitionsAsSidebar
> 

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user

Reply via email to