Actually not always, it appears there may be a "variance" in whether mediaWiki interprets the start="n" tag, if there is an interspersed <pre> element.
Consider this which renders correctly in a Wikipage as well as in a browser: <ol> <li>one </ol> <ol start="3"> <li>three </ol>
Produces:
1. one 3. three
However inserting a <pre> element ...
<ol> <li>one </ol> <pre>text</pre> <ol start="3"> <li>three </ol>
... produces the following way in a Wikipage:
1. one text 1. three
... but is correct in a browser:
1. one text 3. three
However this works in a Wikipage: <ol><li>one</li></ol> <pre>text</pre> <ol start="3"><li>three</li></ol>
Whereas this does not: <ol> <li>one</li> </ol> <pre>text</pre> <ol start="3"> <li>three</li> </ol>
Bottom line - one may get it to work but either my <ol> syntax is flawed or there is a bug in the code.
Boris
On 12-Nov-07, at 3:38 PM, Jim Wilson wrote:
This is not currently possible - if you want a multi-line <pre> block, then your best bet is to use actual <OL> and <LI> elements rather than '#' notation.
-- Jim R. Wilson (jimbojw)
On Nov 11, 2007 8:04 AM, Bram Kuijper a.l.w.kuijper@rug.nl wrote:
Hi all,
I have a question regarding creating lists in wikimedia. I wonder if it is possible to have multiline <pre></pre> elements inside your list, without messing up the content inside the <pre>-tag or the list's layout. I would be grateful for any pointers to more information on how to incorporate multiline <pre>-elements into wikimedia-lists
Any multiline <pre></pre> element will not be rendered very nicely, as is shown in this example:
# first item # second item #: <code><pre>one multiline comment</pre></code> # third item
will render as:
- first item
- second item one
multiline comment
- third item # list starts anew here.
Is there any way to contain the line-breaks in a <pre></pre> elements, without messing up the list's layout/numbering?
thanks, Bram
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l