Resume ordered/numbered lists interrupted by other markup.
See the Usage examples below and test the recipe on the talk page.
- Add to config.php this line:
No configuration is required.
In a wiki page, use the wikistyle
%list resume% on the first item, on all lists that are connected (including the first list). For example:
# %list resume% item one # item two Here some other markup, then the numbering needs to continue. # %list resume% item three # item four # item five
Here some other markup, then the numbering needs to continue.
If you have different lists that each needs to be resumed, place wikistyles with additional keywords like
%list resume-name% (case sensitive):
# %list resume-dairy% milk # yogurt Note, different list follows. # %list resume-fruit% apple # pear # apricot Some markup, then the first list resumes. # %list resume-dairy% cheese # cream # cheesecake Other markup, then the second list resumes. # %list resume-fruit% ananas # banana
Note, different list follows.
Some markup, then the first list resumes.
Other markup, then the second list resumes.
As you can see, the resumed lists do not need to immediately follow one another. Some of the lists can even be nested in different levels: as long as they have the wikistyle on their first item, their numbering will continue.
- The wikistyle
%list resume%is placed on the first item on all lists that are connected including the first list.
- The recipe is not compatible with the wikistyle
%item value=X%. Connected/resumed lists should not use that wikistyle, the numbering is automatic.
Change log / Release notes
- 20180312: First public release, ready to be tested.
- PITS /
- 01105 Add %item value=resume% to list processing (Closed, added as Cookbook:ListResume)
- PmWiki /
- ListStyles Styles for use in wiki lists
- ListStyles-Talk Discussion of ListStyles
Written and maintained by Petko.
See discussion at ListResume-Talk
User notes +1: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.