Difference between revisions of "Template:Multi-column numbered list"
Amycjgrace (talk | contribs) |
Amycjgrace (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {| | + | {| style="vertical-align:top;" |
|- | |- | ||
− | | | + | | style="vertical-align:top;" | <ul><ol start="{{{1|1}}}" style="list-style-type:{{{lst|decimal}}}"><li>{{{2}}}</ol></ul> |
− | | | + | | style="vertical-align:top;" | <ul><ol start="{{#expr:{{{1|1}}}+{{{3|1}}}}}" style="list-style-type:{{{lst|decimal}}}">{{{4}}}</ol></ul> |
− | {{# | + | {{#if:{{{5|}}}|{{!}} style="vertical-align:top;" {{!}} <ul><ol start="{{#expr:{{{1|1}}}+{{{3|1}}}+{{{5|1}}}}}" style="list-style-type:{{{lst|decimal}}}">{{{6}}}</ol></ul>}} |
− | |} | + | |}<!-- |
+ | |||
+ | --><noinclude>{{documentation}}</noinclude> |
Latest revision as of 02:14, 3 February 2022
|
|
Numbered lists, if spread over multiple columns, will restart the numbering from one in each column. There is no way to specify a starting value in wikisyntax, so HTML has to be used. This template automates the process so one doesn't have to write the HTML by hand. In most cases, multi-column lists should be specified using {{Columns-list}} instead, which is more compatible and responsive.
Syntax
{{Multi-column numbered list|start 1|<li> item 1a</li> ...|start 2|<li> item 1b</li> ...}}
Example
{{Multi-column numbered list|1|{{#tag:li|a}}{{#tag:li|b}}{{#tag:li|c}}|5|{{#tag:li|x}}{{#tag:li|y}}{{#tag:li|z}}}}
→
|
|
See also
- Help:List § Multi-column list – Introduction to an easier method using
{{Columns-list}}
- Wikipedia:Lists (WP:L)
- Wikipedia:Manual of Style/Accessibility § Lists
- Wikipedia:List dos and don'ts (information page summarizing the Manual of Style)
- Wikipedia:Categories, lists, and navigation templates
The above documentation is transcluded from Template:Multi-column numbered list/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |