[pmwiki-users] WikiStyles request

Patrick R. Michaud pmichaud at pobox.com
Sun Sep 11 08:02:32 CDT 2005


On Sun, Sep 11, 2005 at 11:50:34AM +0200, Dominique Faure wrote:
> 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.

That would be either

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

or

    %define=dw margin-left:-8em%
    :05/06/01:%dlcol dw% Initial release.
    :05/06/03: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:
> ...
> 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.

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

Pm




More information about the pmwiki-users mailing list