Thanks, Daniel. I've already added some CSS from
http://stackoverflow.com/a/26245056 to my Common.css and the inline
indentint looks great.
What I'm trying to achieve is to have in-line numbering (ala ol>li)
prefaced with the section number. Effectively prefixing the ol>li numbering
with the most recent section number.
At the moment I'm trying to figure out where in the source code the #
character is turned into h1, h2, h3 etc. Perhaps I can inject a CSS counter
in such a way that I can concatenate a section CSS counter with a list-item
CSS counter.
Otherwise, I'm probably looking at some hacky javascript to fetch the most
recent span tag with class "mw-heading-number" so I can scrape out the HTML
contents and prepend it to my list item numbering.
Larry Silverman
Chief Technology Officer
TrackAbout, Inc.
On Wed, Apr 1, 2015 at 3:57 PM, Daniel Barrett <danb(a)cimpress.com> wrote:
You might be able to create nested numbering in your
TOC by adding CSS to
your MediaWiki:Common.css page.
http://stackoverflow.com/questions/956178/html-css-outline-numbering
http://www.w3.org/TR/CSS2/generate.html#counters
DanB
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l