wiki:NumberedHeadlinesPlugin

Version 1 (modified by martin_s, 8 years ago) (diff)

New hack NumberedHeadlinesPlugin, created by martin_s

Wiki syntax for numbered headlines

Description

This plug-in provides a new TracWiki syntax for numbered headlines (h1-h6 HTML tags). The actual numbering is done using a CSS stylesheet, so older browser with non or only marginal CSS support might not display them correctly.

Bugs/Feature Requests

Existing bugs and feature requests for NumberedHeadlinesPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:numberedheadlinesplugin here].

Source

You can check out NumberedHeadlinesPlugin from here using Subversion, or browse the source with Trac.

Example

The wiki syntax for numbered headlines is a follows:

Instead of:
== Unnumbered Headline ==
or
== Unnumbered Headline ==#ownID

write:
## Numbered Headline ##
or
## Numbered Headline ##=ownID

You can mix both unnumbered and numbered headlines on the same wiki page. Headlines from first order (1x# on each side) to sixth order (6x# on each side) are supported. An own ID can be given by adding =<id name>, which should be an valid XHTML name.

= Introduction =
# Chapter 1 #
## Section 1.1 ##
### Subsection 1.1.1 ###
### Subsection 1.1.2 ###
## Section 1.2 ##
### Subsection 1.2.1 ###
### Subsection 1.2.2 ###
# Chapter 2 #
## Section 2.1 ##
### SubSubsection 2.1.1 ###
#### SubSubsection 2.1.1.1 ####
##### Paragraph 2.1.1.1.1 #####
###### Subparagraph 2.1.1.1.1 ######
<h1>Introduction</h1> <h1>1. Chapter 1</h1> <h2>Section 1.1</h2> <h3>Subsection 1.1.1</h3> <h4>Subsection 1.1.2</h3> <h2>Section 1.2</h2> <h3>Subsection 1.2.1</h3> <h3>Subsection 1.2.2</h3> <h1>Chapter 2</h1> <h2>Section 2.1</h2> <h3>SubSubsection 2.1.1</h3> <h4>SubSubsection 2.1.1.1</h3> <h5>Paragraph 2.1.1.1.1</h4> <h6>Subparagraph 2.1.1.1.1</h5>

Recent Changes

15264 by rjollos on 2016-02-11 05:22:34
Remove unnecessary svn:mime-type on py files

svn:mime-type was set to "plain" for many files.

10976 by rjollos on 2011-12-01 11:26:01
Added plugin revision info to webadmin page.
8551 by martin_s on 2010-08-30 23:57:52
Added encoding meta-comment and declared SVN keywords as unicode to avoid issues with non-english locales.
(more)

Author/Contributors

Author: martin_s
Contributors: