[[TOC]] = 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. === New Wiki Syntax === 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 "`=`''idname''", which should be an valid XHTML name. == Configuration == To enable this plugin put the following into your `trac.ini` configuration file: {{{ [components] tracnumberedheadlines.* = enabled }}} == Bugs/Feature Requests == Existing bugs and feature requests for NumberedHeadlinesPlugin are [report:9?COMPONENT=NumberedHeadlinesPlugin here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=NumberedHeadlinesPlugin&owner=martin_s new ticket]. == Download == Download the zipped source from [download:numberedheadlinesplugin here]. == Source == You can check out NumberedHeadlinesPlugin from [http://trac-hacks.org/svn/numberedheadlinesplugin here] using Subversion, or [source:numberedheadlinesplugin browse the source] with Trac. == Example == The following wiki text: {{{ = Introduction = # Chapter 1 # ## Section 1.1 ## ### Subsection 1.1.1 ### ### Subsection 1.1.2 ### ## Section 1.2 ## ### Subsection 1.2.1 ### === Unnumbered === ### 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 ###### }}} will be displayed like this: {{{ #!html

Introduction

1. Chapter 1

1.1. Section 1.1

1.1.1. Subsection 1.1.1

1.1.2. Subsection 1.1.2

1.2. Section 1.2

1.2.1. Subsection 1.2.1

Unnumbered

1.2.2. Subsection 1.2.2

2. Chapter 2

2.1. Section 2.1

2.1.1. SubSubsection 2.1.1

2.1.1.1. SubSubsection 2.1.1.1

2.1.1.1.1. Paragraph 2.1.1.1.1
2.1.1.1.1. Subparagraph 2.1.1.1.1
}}} == Recent Changes == [[ChangeLog(numberedheadlinesplugin, 3)]] == Author/Contributors == '''Author:''' [wiki:martin_s] [[BR]] '''Contributors:''' [wiki:JoshuaH] (Page Outline support, see #4521)