Mailing List Archive

Problems with numerical lists
The following wiki text:

#a
text
#b
text


Gives

1. a

text

1. b

text


I would like my list numbering to keep going (1, 2 ...). I realize the
problem is because of the new line. However I want the entries under
each list item to have an example in a nice box (hence the leading
space). However I cannot find a way to achieve this that keeps the list
number from restarting at 1 every time.

Is there an easy way to achieve this?

Thanks,

Jc
RE: Problems with numerical lists [ In reply to ]
Jean,

The following works for me:

#a<br/><pre>text</pre>
#b<br/><pre>text</pre>

The key to preserving the numbering is not to have any blank lines.
Therefore, I use the HTML tags to get the effect I want, like the line break
<br> and <pre> for formatted text.

Anyone else have tips that are less of a hack?

--Amy

>Jean-Christian Imbeault wrote:
>Subject: [Mediawiki-l] Problems with numerical lists
>
>The following wiki text:
>
>#a
> text
>#b
> text
>
>
>Gives
>
> 1. a
>
> text
>
> 1. b
>
> text
>
>
>I would like my list numbering to keep going (1, 2 ...). I realize the
>problem is because of the new line. However I want the entries under
>each list item to have an example in a nice box (hence the leading
>space). However I cannot find a way to achieve this that keeps the list
>number from restarting at 1 every time.

>Is there an easy way to achieve this?
Re: Problems with numerical lists [ In reply to ]
Amy Chan wrote:

> The following works for me:
>
> #a<br/><pre>text</pre>
> #b<br/><pre>text</pre>

I can understand why that works but it's really ugly when the 'text'
part is many lines long :(

> The key to preserving the numbering is not to have any blank lines.

Actually I have found that it is not blank lines that cause the problem
but newlines ...

> Anyone else have tips that are less of a hack?

Yes, anyone?

Jc
Re: Problems with numerical lists [ In reply to ]
Jean-Christian Imbeault wrote:
> The following wiki text:
>
> #a
> text
> #b
> text
>
>
> Gives
>
> 1. a
>
> text
>
> 1. b
>
> text
>
>
> I would like my list numbering to keep going (1, 2 ...). I realize the
> problem is because of the new line. However I want the entries under
> each list item to have an example in a nice box (hence the leading
> space). However I cannot find a way to achieve this that keeps the list
> number from restarting at 1 every time.
>
> Is there an easy way to achieve this?
>
> Thanks,
>
> Jc

Hello,

The problem is that in wiki syntax the list item is stopped by a new
line. You probably want to switch to pure html:

<ol>

<li>
a<br />
text
</li>

<li>
b<br />
text
</li>

</ol>

Not sure if ol and li tags are allowed though :(

--
Ashar Voultoiz
Re: Problems with numerical lists [ In reply to ]
On Fri, 10 Sep 2004 15:09:02 +0900, Jean-Christian Imbeault <jean-christian.imbeault@mizuho-sc.com> wrote:
> I would like my list numbering to keep going (1, 2 ...). I realize the
> problem is because of the new line. However I want the entries under
> each list item to have an example in a nice box (hence the leading
> space). However I cannot find a way to achieve this that keeps the list
> number from restarting at 1 every time.

If you want the numbering to continue, you use this format:

#a
#:text
#b
#:text

It will not number the ones indented with ":", and resumes numeration at the next ordinary "#". It doesn't have to be ":", it could also be another number "#" or a bullet "*".

As for the "nice box", personally I can't stand them (they'd wouldnt be so bad if they werent monospaced), but you can call it in HTML by hand:

#a
#:<pre>text</pre>
#b
#:<pre>text</pre>



*Muke!
--
website: http://frath.net/
LiveJournal: http://kohath.livejournal.com/
deviantArt: http://kohath.deviantart.com/

FrathWiki, a conlang and conculture wiki:
http://wiki.frath.net/
Re: Problems with numerical lists [ In reply to ]
On Fri, 10 Sep 2004 07:51:24 -0600, Muke Tever <muke@frath.net> wrote:
> As for the "nice box", personally I can't stand them (they'd wouldnt beso bad if they werent monospaced),

(which is just me, monospaced may be what you want or need)

> but you can call it in HTML by hand:
> #a
> #:<pre>text</pre>
> #b
> #:<pre>text</pre>

...but you won't be able to use line breaks, so it'd be only useful for one-line examples.

> *Muke!
--
website: http://frath.net/
LiveJournal: http://kohath.livejournal.com/
deviantArt: http://kohath.deviantart.com/

FrathWiki, a conlang and conculture wiki:
http://wiki.frath.net/