Difference between revisions of "Template:Multi-column numbered list"

From TI-99/4A-Pedia
Jump to: navigation, search
(Created page with "{| 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-...")
 
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
|}<!--
 
|}<!--
  
--><noinclude>
+
--><noinclude>{{documentation}}</noinclude>
{{Documentation}}
 
<!-- Please add categories to the /doc subpage; interwikis go to Wikidata -->
 
</noinclude>
 

Latest revision as of 02:14, 3 February 2022

    1. {{{2}}}
      {{{4}}}
50px Template documentation[view] [edit] [history] [purge]

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}}}}

    1. a
    2. b
    3. c
    1. x
    2. y
    3. z

See also