ListStyles-Talk
This is a talk page for improving ListStyles.
Note that the value=x
option is set numerically even if you are using, for instance, the %alpha%
style. So if you wanted to start a second level numbered list at D you would use this:
## %ALPHA%%item value=4%this is a fourth ## and a fifth (should be numbered E) |
|
- Peter Bowers March 31, 2008, at 03:22 AM
This is nice if you know what number you want your item to have, but it defeats the purpose of having automatically numbered lists (e.g. what if you arbitrarily insert a new numbered item somewhere, now you'd have to go through all your explicit entries and reset those numbers!) it would be really nice if we could put %item value=resume%
to tell the engine to pick up where it left off... shi December 31, 2007, at 03:18 PM
See, test, comment Cookbook:ListResume. --Petko March 12, 2018, at 03:16 PM
PmWiki needs a List page, for list formatting (cf Tables), perhaps this page should be renamed to become that?
A; simon June 30, 2009, at 08:55 PMSimon
Doesn't work as expected. It 'Forgets' the nested level formats. See below:
# %ROMAN% Top level A ## %ALPHA% Second level A ## Second level ## Second level ### Third level A #### %alpha% Fourth level A ##### %roman% Fifth level A ##### Fifth level A #### Fourth level A # Top level AA ## Second level B ### Third level B #### Fourth level B ##### Fifth level B ### Third level B # Top level A |
|
It is not supposed to remember the styles of previous lists -- the wikistyles apply to the current list only. Each sub-list is different, see the HTML <ul> tags.
If you want something more consistent and easy to use, add your elaborate styles to local.css:
# %list myoutline% Top level ## Second level ## Second level ## Second level ### Third level #### Fourth level ##### Fifth level ##### Fifth level #### Fourth level # Top level ## Second level ### Third level #### Fourth level ##### Fifth level ### Third level # Top level |
|
This is in local.css:
ol.myoutline { list-style-type: upper-roman; } ol.myoutline ol { list-style-type: upper-alpha; } ol.myoutline ol ol { list-style-type: decimal; } ol.myoutline ol ol ol { list-style-type: lower-alpha; } ol.myoutline ol ol ol ol { list-style-type: lower-roman; }
--Petko
This is a talk page for improving PmWiki.ListStyles.