Autonumber headings and ordered lists
nav_first.pngFirst: package:1
Easy Logo and Header
Edited: 04 Jan 2010 13:54 by: pieterh
Comments: 7
Tags: prize-winner
nav_prev.pngPrevious: package:10
1, 2, or 3 Columns
Edited: 02 Feb 2010 17:17 by: pieterh
Comments: 2
Tags: prize-winner
Last: package:17
Mobile iPod
Edited: 02 Feb 2010 17:15 by: pieterh
Comments: 2
Tags:
nav_last.png
Next: package:12
Hide page info-watch-options
Edited: 06 Feb 2010 10:06 by: gerdami
Comments: 0
Tags:
nav_next.png

Autonumber headings and ordered lists
Package submitted by gerdami
1262422769|%e %B %Y, %H:%M

rating: +2+x

This package provides autonumbering of headings and ordered lists.

For a reason I ignore, it does not work here…
Module CSS is buggy: it replaces double quotes by " !!!

Include files

autonumber-headings-lists By gerdami 02 Jan 2010 09:01

Instructions

Installation

To install this package in your site, create/edit these pages with the following content:

This page Contains this line
AnyPage or _template [[include :css-competition:include:autonumber-headings-lists]]

Related

This package was published before as a HowTo.

Instructions

You must enclose the part of the text to be autonumbered into a div:

[[div class="heading_numbered"]]
...
[[/div]]

Examples

This page

  • begins with the [[include]]
  • then with [[div class="heading_numbered"]]
  • ends with [[/div]]

You must also enclose the lists to be autonumbered into a div:

Indented Numbered Lists

[[div class="list_numbered list_indent"]]
# list item
 # list item
 # list item
[[/div]]

gives:
  1. list item
    1. list item
    2. list item

Left aligned lists

[[div class="list_numbered list_noindent "]]
# list item
 # list item
 # list item
[[/div]]

gives:
  1. list item
    1. list item
    2. list item

Comments: 2

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License