Template:Li/doc

Li takes a list of up to 20 string elements, together with two parameters, one which is prefixed to each element and one which is suffixed to each element.

returns

p_str ele_1 s_str p_str ele_2 s_str . . . p_str ele_n s_str

with one space added after the p_str. For example

returns

 dog  cat  mouse

The option num adds numbering starting at the value of num when set. For example

returns

1.1.1 dog 1.1.2 cat 1.1.3 mouse

Use num="" (empty quoted string) to add numbering starting at 1. For example

returns

1 dog 2 cat <li>3 mouse</li>

The options prolog and epilog prepend and appemd to the list.

returns

<ul> <li>1.1.1 dog</li> <li>1.1.2 cat</li> <li>1.1.3 mouse</li> </ul>

The option prefix inserts another copy of ele_i followed by prefix after p_str.

For example you may hope

returns

<li><a href="#dog">1.1.1 dog</a></li> <li><a href="#cat">1.1.2 cat</a></li> <li><a href="#mouse">1.1.3 mouse</a></li>

which does not display in wiki, but you can use

which does produce the source

<li><a href="#dog">1.1.1 dog</a></li> <li><a href="#cat">1.1.2 cat</a></li> <li><a href="#mouse">1.1.3 mouse</a></li>

This is equivalent in use to

<li>1.1.1 dog</li> <li>1.1.2 cat</li> <li>1.1.3 mouse</li>

The call

appears below.

An extra detail is that a | bar must end a line before a carraige return like

but it does not work for

.