Hello,
Is it possible to customise the section numbers displayed by the wiki (with the magic word __NUMBEREDHEADINGS__, or through the user preference)?
We are developing an open educational resource for African teachers, consisting of several units, e.g. http://orbit.educ.cam.ac.uk/wiki/OER4Schools/3.2_Supporting_reasoning_and_ma...
We'd like to prefix each section within the wiki page with the unit number (3.2 in this case), i.e. change the numbering from 1, 2, 3, ... to 3.2.1, 3.2.2, 3.2.3, etc.
One solution would be to implement numbering manually (turning wiki numbering off with __NONUMBEREDHEADINGS__; then using parser functions and Variables extension to reinsert custom numbering), e.g. as
= {{unitnumber}}.{{sectionnumber}} My section = == {{unitnumber}}.{{sectionnumber}}.{{subsectionnumber}} My subsection ==
However, that's obviously cumbersome. More elegant would be something like
= {{thenumber}} My section = == {{thenumber}} My sub section ==
where the {{thenumber}} template works out which (sub)section it's in and generates the number accordingly. Even more elegant would be something like
{{sectionnumberprefix|3.2}} = My section = == My sub section ==
Any thoughts on how one might implement that?
Many thanks! Bjoern