Is there a
mechanism to embed these (and possible other) non-numbered list items
in a numbered list?
I can think of two ways:
template 'orderedlist', contents '<ol{{#if:{{{start|}}}|
start={{{start}}}}}>{{{1}}}</ol>'
template 'listitem', contents '<li>{{{1}}}</li>'
Usage:
{{orderedlist|start=10|1=
{{listitem|text}}
{{listitem|1=
text
<div>text in div</div>
etc}}
}}
A second way would be to split the start and end tags in two seperate
templates. Both are not exactly great solutions, but changing the parser
is related to masochism ;)
If there currently isn't a way to do so, then
I'd like to see if there
is currently any effort to hack/redesign the Parser to accept some new
syntax (backwards compatible, of course) to allow for starting a
numbered list at any user defined value? And if there isn't such an
effort already, then I'd like to give it a try myself (I've looked at
the code already and have a pretty good idea on how to do it).
Starting at a user
defined value is one solution (which should be fairly
simple to implement), but it pretty much defeats the purpose of an ordered
list: if you are going to do the numbering by yourself, why not just add
1., 2., etc in front of the correct lines? This is why I would recommend
changing the parser in such a way that longer text can be embedded in a
<div>, but I suspect this is a rather large challenge.
--valhallasw