Numbered Headings Macro

Last modified by Leon Poon on 2023/05/16 13:23

Insert the following in your page to have the headings automatically numbered:

{{numberedheadings/}}

To extend this to the whole wiki,

  • edit objects of page Macros.NumberedHeadingsStylesheetExtensionMacro
  • navigate to the XWiki.StyleSheetExtension object
  • choose "Use this extension" : "Always" instead of "On demand"
  • Then all headings will be numbered without need of adding the {{numberedheadings/}} in each page

Sample result :

title 1

Title 2

toto

titi

hello

title

numberedheadings.JPG