Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any better way to create MediaWiki numbered lists?

Tags:

wiki

mediawiki

People also ask

How do you continue numbering in Wikipedia?

I have a numbered list and have to include images in each step. So I want to continure the numbering in the list. How can i do this? If they're in a sequence, you can use the # sign at the beginning of each paragraph.

How can you make numbered list?

To start a numbered list, type 1, a period (.), a space, and some text. Word will automatically start a numbered list for you. Type* and a space before your text, and Word will make a bulleted list. To complete your list, press Enter until the bullets or numbering switch off.

Why are numbered lists used?

Use numbered lists when the order of the listed items is important and ideas must be expressed in chronological order. For example, use a numbered list when you must enumerate a series of steps in instructions, or when you are introducing ideas that will be discussed in a certain order in the following text.


Like this:

#Item1
#:Somestuff
#Item2

I use <ol></ol> and <li></li> to embed the <pre></pre> code formatting portions. Works great for me! :-)


There are a couple of options, but you can start an ordered list from an arbitrary number like this:

#Item1

Something

<ol start="2">
#Item2
</ol>

You can also use "#:" if you don't mind "Something" being indented a lot:

#Item1
#:
#: Something
#:
#Item2

There are quite a lot of options with lists, you can find more info on Wiki's Help Pages:List.

update

Newer version work more like regular html markup the old syntax will now give you a double indent and will not adjust the start offset, but the following works well, even with the source/syntaxhighlight tag.

<ol>
<li>Item1</li>
Something
</ol>

<ol start="2">
<li>Item2</li&gt
<source lang=javascript>
var a = 1;
</source>
</ol>

In short everything within the ol tag will have the same indentation and will not be numbered if it is outside a li tag. The following will now work and it mean you don't have to offset groups manually.

<ol>
<li>Item1</li>
Something
<li>Item2</li&gt
<source lang=javascript>
var a = 1;
</source>
</ol>

The #: works, but you cannot create a section with spaces, so I would prefer the non-working option. Anyone knows a similar syntaxis that does the trick (start numbering at given value)?

This response is probably a bit late, but I figure I'll add it in case anyone stumbles across this, as I have. You can create a section with spaces by doing something like:

# Item 1
#: 
#: 
# Item 2

This will appear as:

  1. Item 1

  2. Item 2

Now, before you say this doesn't work, the trick is to add an ASCII no-break space after the #: rather than just simply hitting spacebar. You can add this by holding ALT on your keyboard and typing 0160. Doing this should add the usual Wiki paragraph formatting while preserving your numbering between #s.

Hope that helps!


"#:" will not work with other tags like

<source lang=javascript>
//...
</source>

I'm using Mediawiki 1.13.3 and this works:

#Item1
Somestuff
<ol start="2">
<li>Item2 </li>
</ol>