Module:List/doc
{{module rating|beta}}
 {{high-risk|170,000+}}
 
 This module outputs various kinds of lists. At present, it supports bulleted lists, unbulleted lists, horizontal lists, ordered lists (numbered or alphabetical), and horizontal ordered lists. It allows for easy css styling of the list or of the individual list items.
 
 == Usage ==
 
 ; Quick usage
 
 {{pre2|&lt;nowiki&gt;{{&lt;/nowiki&gt;#invoke:list&lt;nowiki&gt;|&lt;/nowiki&gt;''function''&lt;nowiki&gt;|&lt;/nowiki&gt;''first item''&lt;nowiki&gt;|&lt;/nowiki&gt;''second item''&lt;nowiki&gt;|&lt;/nowiki&gt;''third item''&lt;nowiki&gt;|&lt;/nowiki&gt;...&lt;nowiki&gt;}}&lt;/nowiki&gt;}}
 
 ; All parameters
 
 {{pre2|
 &lt;nowiki&gt;{{&lt;/nowiki&gt;#invoke:list&lt;nowiki&gt;|&lt;/nowiki&gt;''function''
 &lt;nowiki&gt;|&lt;/nowiki&gt;''first item''&lt;nowiki&gt;|&lt;/nowiki&gt;''second item''&lt;nowiki&gt;|&lt;/nowiki&gt;''third item''&lt;nowiki&gt;|&lt;/nowiki&gt;...
 &lt;nowiki&gt;|start           = &lt;/nowiki&gt;''start number for ordered lists''
 &lt;nowiki&gt;|type            = &lt;/nowiki&gt;''type of numbering for ordered lists''
 &lt;nowiki&gt;|list_style_type = &lt;/nowiki&gt;''type of marker for ordered lists (uses CSS)''
 &lt;nowiki&gt;|class           = &lt;/nowiki&gt;''class''
 &lt;nowiki&gt;|style           = &lt;/nowiki&gt;''style''
 &lt;nowiki&gt;|list_style      = &lt;/nowiki&gt;''style for the list''
 &lt;nowiki&gt;|item_style      = &lt;/nowiki&gt;''style for all list items''
 &lt;nowiki&gt;|item1_style     = &lt;/nowiki&gt;''style for the first list item''&lt;nowiki&gt; |item2_style = &lt;/nowiki&gt;''style for the second list item''&lt;nowiki&gt; |&lt;/nowiki&gt;...
 &lt;nowiki&gt;|item1_value     = &lt;/nowiki&gt;''value for the first list item''&lt;nowiki&gt; |item2_value = &lt;/nowiki&gt;''value for the second list item''&lt;nowiki&gt; |&lt;/nowiki&gt;...
 &lt;nowiki&gt;|indent          = &lt;/nowiki&gt;''indent for horizontal lists''
 &lt;nowiki&gt;}}&lt;/nowiki&gt;
 }}
 
 ; Arguments passed from parent template
 
 {{pre2|&lt;nowiki&gt;{{&lt;/nowiki&gt;#invoke:list&lt;nowiki&gt;|&lt;/nowiki&gt;''function''&lt;nowiki&gt;}}&lt;/nowiki&gt;}}
 
 ; Functions
 
 {| class=&quot;wikitable&quot;
 |-
 ! Function name
 ! Produces
 ! Example output
 ! Template using the function
 |-
 | &lt;code&gt;bulleted&lt;/code&gt;
 | Bulleted lists
 | {{#invoke:list|bulleted|First item|Second item|Third item}}
 | {{tlx|bulleted list}}
 |-
 | &lt;code&gt;unbulleted&lt;/code&gt;
 | Unbulleted lists
 | {{#invoke:list|unbulleted|First item|Second item|Third item}}
 | {{tlx|unbulleted list}}
 |-
 | &lt;code&gt;horizontal&lt;/code&gt;
 | Horizontal bulleted lists
 | {{#invoke:list|horizontal|First item|Second item|Third item}}
 | {{tlx|hlist}}
 |-
 | &lt;code&gt;ordered&lt;/code&gt;
 | Ordered lists (numbered lists and alphabetical lists)
 | {{#invoke:list|ordered|First item|Second item|Third item}}
 | {{tlx|ordered list}}
 |-
 | &lt;code&gt;horizontal_ordered&lt;/code&gt;
 | Horizontal ordered lists
 | {{#invoke:list|horizontal_ordered|First item|Second item|Third item}}
 |
 |}
 
 == Parameters ==
 
 * Positional parameters (&lt;code&gt;1&lt;/code&gt;, &lt;code&gt;2&lt;/code&gt;, &lt;code&gt;3&lt;/code&gt;...) - these are the list items. If no list items are present, the module will output nothing.
 * &lt;code&gt;start&lt;/code&gt; - sets the start item for ordered lists. This can be a start number for numbered lists, or a start letter for alphabetical lists. Horizontal ordered lists only support numbers.
 * &lt;code&gt;type&lt;/code&gt; - the type of marker used in ordered lists. Possible values are &quot;1&quot; for numbers (the default), &quot;A&quot; for uppercase letters, &quot;a&quot; for lowercase letters, &quot;I&quot; for uppercase [[Roman numerals]], and &quot;i&quot; for lowercase Roman numerals. Not supported in horizontal ordered lists. See also the &lt;code&gt;list_style_type&lt;/code&gt; parameter.
 * &lt;code&gt;list_style_type&lt;/code&gt; - the type of marker used in ordered lists. This uses CSS styling, and has more types available than the &lt;code&gt;type&lt;/code&gt; parameter, which uses an [[html attribute]]. Possible values are listed at [http://www.w3schools.com/cssref/pr_list-style-type.asp W3schools' list-style-type page]. Support may vary by browser. &lt;code&gt;list-style-type&lt;/code&gt; is an alias for this parameter.
 * &lt;code&gt;class&lt;/code&gt; - a custom class for the {{tag|div}} tags surrounding the list, e.g. &lt;code&gt;plainlinks&lt;/code&gt;.
 * &lt;code&gt;style&lt;/code&gt; - a custom css style for the {{tag|div}} tags surrounding the list, e.g. &lt;code&gt;font-size: 90%;&lt;/code&gt;.
 * &lt;code&gt;list_style&lt;/code&gt; - a custom css style for the list itself. The format is the same as for the {{para|style}} parameter.
 * &lt;code&gt;item_style&lt;/code&gt; - a custom css style for all of the list items (the {{tag|li}} tags). The format is the same as for the {{para|style}} parameter.
 * &lt;code&gt;item1_style&lt;/code&gt;, &lt;code&gt;item2_style&lt;/code&gt;, &lt;code&gt;item3_style&lt;/code&gt;... - custom css styles for each of the list items. The format is the same as for the {{para|style}} parameter.
 * &lt;code&gt;item1_value&lt;/code&gt;, &lt;code&gt;item2_value&lt;/code&gt;, &lt;code&gt;item3_value&lt;/code&gt;... - custom value for the given list item. List items following the one given will increment from the specified value. The value should be a positive integer. (Note that this option only has an effect on ordered lists.)
 * &lt;code&gt;indent&lt;/code&gt; - this parameter indents the list, for horizontal and horizontal ordered lists only. The value must be a number, e.g. &lt;code&gt;2&lt;/code&gt;. The indent is calculated in [[Em (typography)|em]], and is 1.6 times the value specified. If no indent is specified, the default is zero.
 
 == Examples ==
 
 ; Bulleted lists
 
 {| class=&quot;wikitable&quot;
 ! Code !! Result
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|bulleted|First item|Second item|Third item}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|bulleted|First item|Second item|Third item}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|bulleted|First item|Second item|Third item|item_style=color:blue;}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|bulleted|First item|Second item|Third item|item_style=color:blue;}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|bulleted|First item|Second item|Third item|item1_style=background-color:yellow;|item2_style=background-color:silver;}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|bulleted|First item|Second item|Third item|item1_style=background-color:yellow;|item2_style=background-color:silver;}}
 |}
 
 ; Unbulleted lists
 
 {| class=&quot;wikitable&quot;
 ! Code !! Result
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|unbulleted|First item|Second item|Third item}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|unbulleted|First item|Second item|Third item}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|unbulleted|First item|Second item|Third item|item_style=color:blue;}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|unbulleted|First item|Second item|Third item|item_style=color:blue;}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|unbulleted|First item|Second item|Third item|item1_style=background-color:yellow;|item2_style=background-color:silver;}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|unbulleted|First item|Second item|Third item|item1_style=background-color:yellow;|item2_style=background-color:silver;}}
 |}
 
 ; Horizontal lists
 
 {| class=&quot;wikitable&quot;
 ! Code !! Result
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|horizontal|First item|Second item|Third item}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|horizontal|First item|Second item|Third item}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|horizontal|First item|Second item|Third item|indent=2}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|horizontal|First item|Second item|Third item|indent=2}}
 |}
 
 ; Unbulleted lists
 
 {| class=&quot;wikitable&quot;
 ! Code !! Result
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|unbulleted|First item|Second item|Third item}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|unbulleted|First item|Second item|Third item}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|unbulleted|First item|Second item|Third item|item_style=color:blue;}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|unbulleted|First item|Second item|Third item|item_style=color:blue;}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|unbulleted|First item|Second item|Third item|item1_style=background-color:yellow;|item2_style=background-color:silver;}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|unbulleted|First item|Second item|Third item|item1_style=background-color:yellow;|item2_style=background-color:silver;}}
 |}
 
 ; Ordered lists
 
 {| class=&quot;wikitable&quot;
 ! Code !! Result
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|ordered|First item|Second item|Third item}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|ordered|First item|Second item|Third item}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|ordered|First item|Second item|Third item|start=3}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|ordered|First item|Second item|Third item|start=3}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|ordered|First item|Second item|Third item|type=i}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|ordered|First item|Second item|Third item|type=i}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|ordered|First item|Second item|Third item|list_style_type=lower-greek}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|ordered|First item|Second item|Third item|list_style_type=lower-greek}}
 |}
 
 ; Horizontal ordered lists
 
 {| class=&quot;wikitable&quot;
 ! Code !! Result
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|horizontal_ordered|First item|Second item|Third item}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|horizontal_ordered|First item|Second item|Third item}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|horizontal_ordered|First item|Second item|Third item|start=3}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|horizontal_ordered|First item|Second item|Third item|start=3}}
 |-
 | &lt;code&gt;&lt;nowiki&gt;{{#invoke:list|horizontal_ordered|First item|Second item|Third item|indent=2}}&lt;/nowiki&gt;&lt;/code&gt;
 | {{#invoke:list|horizontal_ordered|First item|Second item|Third item|indent=2}}
 |}
 
 == Tracking/maintenance category ==
 * [[:Category:List templates with deprecated parameters]]
 
 == See also ==
 * [[Module:Br separated entries]]
 
 &lt;includeonly&gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 &lt;!-- Categories below this line, please; interwikis at Wikidata --&gt;
 [[Category:Modules that add a tracking category]]