|
Cookbook /
OutlineListsSummary: Deprecated, see WikiStylesPlus
Version:
Prerequisites: pmwiki-2.0.0
Status: Stable
Maintainer: Pm
Categories: Obsolete -- see WikiStylesPlus
Votes:
Questions answered by this recipeCan I get PmWiki to generate numbered lists using standard outline numbering? (I.A.1.i.a) DescriptionThe following code enables an
With this in place, one can create lists like:
NotesContributors
SandboxThis page has the outline modification installed, so you can play with outline lists below.
I just created a GuiEdit button function for this: $GUIButtons['outline'] = array(530,
'\\n# %outline% Top Level \\n## Second Level \\n### Third Level ',
'\\n', '', '$GUIButtonDirUrlFmt/outline.gif"$[Outline list]"');
I also created a button image: Attach:outline.gifΔ Is it possible to modify this recipe to make numbered outlines like this? 1.1 second level
1.1.1 third level
1.1.2 third level
1.2 second level
2. top-level Unfortunately, AFAIK HTML doesn't directly support this style of numbering. --Pm It's quite possible with CSS counters, but doesn't work in the majority of browsers. It goes something like this:
ol { counter-reset: item }
li { display: block }
li:before { content: counters(item, ".") " "; counter-increment: item }
Is it possible to modify this recipe to make numbered outlines like this? a second level
i third level
ii third level
b second level
2. top-level Hello Melvyn, This should acomplish what you are after.
$HTMLStylesFmt[] = "
ol.outline2 { list-style-type:decimal; }
ol.outline2 ol { list-style-type:lower-alpha; }
ol.outline2 ol ol { list-style-type:lower-roman; }
";
$WikiStyle['outline2'] = array('class'=>'outline2','apply'=>'list');
This has the same usage as above save use the My best regards to you, Feral March 14, 2007, at 05:18 PM
|