[pmwiki-users] Re: improved markup for floating images...?

V.Krishn mistyfire at autograf.pl
Tue Jul 26 08:01:06 CDT 2005


> On Tuesday 26 July 2005 15:09, lists at wildgooses.com wrote:
> Ugg.. The more I play with pmwiki the more I feel that you violate your
> own rule to "keep it simple".  
I don't know how I could say it, but the philosophy of "keep is simple" is 
what making PmWiki code light/fast and not to forget secure(wiki-text wise) 
and no database use.
> Compared with media-wiki I am finding it 
> quite hard to figure out how to do more than basic markup...
>
> Why don't we just introduce an img:xxx tag and use that?  Have a look at
> the way media-wiki does it - I quite like their syntax (It's on my todo
> list to have a bash at this img tag actually)
Please find some time to view:
http://insteps.net/notebook2/channel.php/Notes/Sample1
http://insteps.net/notebook2/channel.php/Notes/Sample2
.....the stylesheet associated with it is:
http://insteps.net/pub/cookbook/snotes/snotes.css

I have tried using text and images with various kinds of floats that I would 
possibly think off. The result is quite satisfactory.
>
> Also a lot of this formatting can probably be done more easily anyway if
> the table syntax could be nested and divs wrapped around stuff.  Yeah
Nested tables... mmhmm sounds very complex.
Is there something very specific why one would need it in normal wiki 
formatting/editing?
And dont't forget (:div:) supports simple tables "|| ||" within it.

I have not tried simple tables || || within (:tables:).
> it's not perfect, but it's a lot easier to remember and more consistent
> if you just stick your image in a table and then format the table to be
> right aligned...
>
> I have come up against the DIV limitation already - I wanted a table
> with some text aligned in all cells at the bottom of the cell - I
> figured using a div around the text to set the vertical-align property
> would do it, but of course one can't nest them...  grrr.  
Is there any page where you could direct? Maybe its possible with present 
implementation. :-)
> The table 
> syntax itself is similarly frustrating because you seem to need to use
> straight tags for the table level syntax, and then style="xxx:yy" syntax
> for the cells...?
>
> I'm way off topic now, but my final gripe which is causing me pain is
> why something simple like %text-align=right% doesn't work (ie do
> anything)?  The help pages suggest that it should do so...?  Using %p
> text-align=right% is fine, but if you omit the block specification then
> it doesn't seem to work... (Actually why do we need a block level spec
> anyway?)
>
> I think your syntax seems to be heading more and more towards early
> html.  Why not try and head more towards XML where you have a tag
> starting some syntax and then a definite end to the tag?  Just a thought
>
> Ed W
V.Krishn




More information about the pmwiki-users mailing list