Changes

Jump to: navigation, search

Module:List/doc

121 bytes added, 07:21, 14 November 2013
change type --> marker
<nowiki>{{</nowiki>#invoke:list<nowiki>|</nowiki>''function''
<nowiki>|</nowiki>''first item''<nowiki>|</nowiki>''second item''<nowiki>|</nowiki>''third item''<nowiki>|</nowiki>...
<nowiki>|start = </nowiki>''start number for ordered lists''<nowiki>|marker = </nowiki>''type of marker for ordered lists''<nowiki>|list_style_type = </nowiki>''type of numbering marker for ordered lists(uses CSS)''<nowiki>|class = </nowiki>''class''<nowiki>|style = </nowiki>''style''<nowiki>|list_style = </nowiki>''style for the list''<nowiki>|item_style = </nowiki>''style for all list items''<nowiki>|item_style1 = </nowiki>''style for the first list item''<nowiki> |item_style2 = </nowiki>''style for the second list item''<nowiki> |</nowiki>...<nowiki>|indent = </nowiki>''indent for horizontal lists''
<nowiki>}}</nowiki>
}}
* Positional parameters (<code>1</code>, <code>2</code>, <code>3</code>...) - these are the list items. If no list items are present, the module will output nothing.
* <code>start</code> - sets the start item for ordered lists. This can be a start number for numbered lists, or a start letter for alphabetical lists. This parameter is also supported in theory for horizontal ordered lists, but in practice, as of November 2013, it does not work due to lack of browser support.
* <code>typemarker</code> - the type of marker used in ordered lists. Possible values are "1" for numbers (the default), "A" for uppercase letters, "a" for lowercase letters, "I" for uppercase [[Roman numerals]], and "i" for lowercase Roman numerals. This is also supported in theory for horizontal ordered lists, but in practice, as of November 2013, this does not work due to lack of browser support. See also the <code>list_style_type</code> parameter.* <code>list_style_type</code> - the type of marker used in ordered lists. This uses CSS styling, and has more types available than the <code>typemarker</code> 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. <code>list-style-type</code> is an alias for this parameter.
* <code>class</code> - a custom class for the {{tag|div}} tags surrounding the list, e.g. <code>plainlinks</code>.
* <code>style</code> - a custom css style for the {{tag|div}} tags surrounding the list, e.g. <code>font-size: 90%;</code>.
| {{#invoke:list|ordered|First item|Second item|Third item|start=3}}
|-
| <code><nowiki>{{#invoke:list|ordered|First item|Second item|Third item|typemarker=i}</nowiki></code>| {{#invoke:list|ordered|First item|Second item|Third item|typemarker=i}}
|-
| <code><nowiki>{{#invoke:list|ordered|First item|Second item|Third item|list_style_type=lower-greek}}</nowiki></code>
Anonymous user

Navigation menu