[WikiEN-l] show index number in body of wiki page

Peter Coombe thewub.wiki at googlemail.com
Sun Oct 7 10:06:59 UTC 2012


My preferences > Appearance > Advanced options > Auto-number headings

To set this on by default for anonymous and new users, add the
following to LocalSettings.php:
$wgDefaultUserOptions['numberheadings'] = 1;

To change it for existing users, looks like you'll have to run
https://www.mediawiki.org/wiki/Manual:UserOptions.php

Pete / the wub


On 7 October 2012 01:08, Gordon Stewart <gordonisnz at gmail.com> wrote:
> (this is for a private wiki - not wikipedia.org )
>
> At the top of a wiki page, it automatically creates a table of
> content. But when you go down the page. it just shows the
> titles/headings in bold. But no 'number' is created automatically.
>
> do you know how to make it display the item number ?
>
> EG :- (table of contents)
>
> 1. Heading A
> 2. Heading B
>  2.1. HeadingC
>  2.2. HeadingD
>
>
>
> when you go down the screen & read the content, it only shows
>
>
> Heading A
>
> (content here)
>
> Heading B
>
> (content here)
>
> HeadingC
>
> (content here)
>
> HeadingD
>
> (content here)
>
> is there a way to show the numbers  automatically ? - If i manually
> add numbers in - It will also show up in the table of contents
> (twice):-
>
> 2.2  HeadingD
>
> (content here)
>
>
> --
>
> Gordon.
>
> Changing the world one gift at a time
> Auckland North Shore Freecycle - New Zealand
> http://www.freecycle.org/
>
> _______________________________________________
> WikiEN-l mailing list
> WikiEN-l at lists.wikimedia.org
> To unsubscribe from this mailing list, visit:
> https://lists.wikimedia.org/mailman/listinfo/wikien-l



More information about the WikiEN-l mailing list