Hi, all,
I'm documenting policies and procedures using Mediawiki. Generally, when
documenting procedures using something like Word, you'd have a consistent
numbering system such as:
1.0 Purpose
2.0 Scope
3.0 Responsibility
3.1 General
3.1.1 Whatever goes here.
...and so on...
I'm using the MagicNumberedHeadings
<https://www.mediawiki.org/wiki/Extension:MagicNumberedHeadings> extension
to enable display of section numbers only on pages containing a template
designed for procedures.
I'm curious if there might be a way to use the current section number as a
prefix for ordered list numbering.
In the example above, "3.0 Responsibility" would be
==Responsibility==
===General===
and then I'd begin enumerating paragraphs with an ordered list either using
# or 'ol' and 'li' tags.
Any tricks possible to accomplish this?
I like that the section titles automatically create the TOC. I don't want
to use section markers for everything I want numbered in this manner as it
seems inappropriate to use headings for this.
I was thinking perhaps there could be some kind of magic word that injects
the current counter for the section, and it could possibly be used with the
'ol' tag's 'start' attribute to start the numbering at that of the
section.
I'm sure something could be hacked together with CSS and javascript, but
I'd like to know if anyone has tackled anything like this previously.
Thanks,
Larry