[pmwiki-users] WikiStyles request

Dominique Faure dominique.faure.1 at free.fr
Sun Sep 11 04:50:34 CDT 2005


Hi,

A previous mailing-list topic about two-column definition lists lead to
the following style definition:

 $HTMLStylesFmt['columnlist'] = "
 dl.dlcol dt { float:left; padding-right:0.5em;}
 dl.dlcol dd { margin-left:13em; }\n";

 $WikiStyle['dlcol']['apply'] = 'list';
 $WikiStyle['dlcol']['class'] = 'dlcol';

I tried to reuse it with smaller definition terms reducing left-margin 
definition but without nice rendering when description wraps to more than a 
line (see for example history section of MonobookSkin cookbook page).

 %define=dw margin-left:-8em%
 :05/06/01:%dw% %dlcol% Initial release.
 :05/06/03:%dw% Handling of forgotten @@?action=print@@ and minor tweaks.


I was wondering how I could have a kind of parametrized style definition 
which could provide help in such cases. Something like:

 $HTMLStylesFmt['columnlist'] = "
 dl.dlcol dt { float:left; padding-right:0.5em;}
 dl.dlcol dd { margin-left:\$param['margin']; }\n";

 $WikiStyle['dlcol']['apply'] = 'list';
 $WikiStyle['dlcol']['class'] = 'dlcol';

which could be used as:

 :05/06/01:%dlcol param['margin']:5em% Initial release.
 :05/06/03: Handling of forgotten @@?action=print@@ and minor tweaks.

Any idea?
Dom





More information about the pmwiki-users mailing list