00525: Add %dlcol% wikistyle

Summary: Add %dlcol% wikistyle
Created: 2005-09-15 10:37
Status: Closed
Category: Cookbook
From: Pm
Assigned:
Priority: 5533
Version: 2.0.5
OS:

Description: The cookbook on pmwiki.org defines a special %dlcol% wikistyle, which is helpful for creating "columned" definition lists. For example:

:Item 1:%dlcol% The first item
:Item 2:The second item
:Item 3:A longer item.  Lorem ipsum dolor sit amet, consectetuer \
adipiscing elit. In consectetuer ornare nisl. Maecenas lacus. \
Integer commodo porttitor est.
:Item 4:Another short item
Item 1
The first item
Item 2
The second item
Item 3
A longer item. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In consectetuer ornare nisl. Maecenas lacus. Integer commodo porttitor est.
Item 4
Another short item

Should %dlcol% or something like it be added to the core distribution?


%dlcol% should also embed something to allow customization of definition data's left margin. With following definition:

 
$WikiStyleApply['descr'] = 'dd';
$WikiStyle['descr']['apply'] = 'descr';

We may write:

 
%define=dw descr margin-left:5em%
:Item 1:%dlcol%%dw% The first item
:Item 2:%dw%The second item
:Item 3:%dw%A longer item.  Lorem ipsum dolor sit amet, consectetuer \
adipiscing elit. In consectetuer ornare nisl. Maecenas lacus. \
Integer commodo porttitor est.

Dfaure


I don't care, I use tables, because they are more flexible and I dont have to remember so many markups. Elsni


Even better would be an option to allow this to be the default for definition lists (i.e., eliminate the requirement for invoking the on the first item.

Note, will invoking the wikistyle escape the item from wikitrails and the new page text variables?

Pico October 08, 2006, at 10:06 PM


Since the cookbook is being redesigned to not use %dlcol%, I've definitely decided against adding this to the core. It can be left as a recipe, or perhaps it should be added to the Cookbook.WikiStylePlus? recipe.

Pm April 17, 2007, at 02:56 PM