[pmwiki-users] PmWiki/ConditionalMarkup

Dominique Faure dominique.faure at gmail.com
Fri Mar 10 01:49:51 CST 2006


Back to my http://www.pmwiki.org/wiki/PmWiki/ConditionalMarkup-Draft,
I apologize I didn't applied the
http://www.pmwiki.org/wiki/PmWiki/DocumentationGuidelines topics
there, and more precisely this one:

*  Don't use table markups for things other than tables.

Then to solve this, couldn't we have a kind of %dlcol% style available
to write nice lists as below:

===8<----
    The built-in conditions include:

    :[@(:if name PAGENAME:)@]: %dlcol% - current page is named "[@PAGENAME@]"
    :[@(:if group GROUPNAME:)@]: - current group is named "[@GROUPNAME@]"
    :[@(:if auth LEVEL:)@]: - viewer is authorized at "[@LEVEL@]"
where [@LEVEL@] can \
        be [@read@], [@edit@], [@upload@], [@attr@] or [@admin@]

    ...

    Negated forms of conditions also work:

    ...
===8<----

This style would be followed by something to adjust the left margin of
the definition datas as:
%define=dd15 apply=dd margin-left=15em%:

    :[@(:if name PAGENAME:)@]: %dlcol dd15% - current page is named
"[@PAGENAME@]"

The more reliable way would be to have parametrized styles which could
allow things like:

    :[@(:if name PAGENAME:)@]: %dlcol(15em)% - current page is named
"[@PAGENAME@]"

Is that possible?
Dom




More information about the pmwiki-users mailing list