CargoAdmin, Bureaucrats, Moderators (CommentStreams), fileuploaders, Interface administrators, newuser, Push subscription managers, Suppressors, Administrators
13,588
edits
>Tomoneill (copy from https://en.wikipedia.org/w/index.php?title=Module:List/doc&oldid=856288572) |
(Created page with "{{used in system|in MediaWiki:Citethispage-content}} {{module rating|protected}} {{Lua|Module:TableTools|Module:Arguments}} {{Uses TemplateStyles|Template:Plainlist/styles.css|Template:Hlist/styles.css}} 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...") |
||
Line 1: | Line 1: | ||
{{ | {{used in system|in [[MediaWiki:Citethispage-content]]}} | ||
{{module rating|protected}} | {{module rating|protected}} | ||
{{Lua|Module:TableTools|Module:Arguments}} | |||
{{Uses TemplateStyles|Template:Plainlist/styles.css|Template:Hlist/styles.css}} | |||
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. | 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. | ||
Line 7: | Line 8: | ||
== Usage == | == Usage == | ||
=== Quick usage === | |||
{{pre|<nowiki>{{</nowiki>#invoke:list<nowiki>|</nowiki>''function''<nowiki>|</nowiki>''first item''<nowiki>|</nowiki>''second item''<nowiki>|</nowiki>''third item''<nowiki>|</nowiki>...<nowiki>}}</nowiki>}} | |||
=== All parameters === | |||
{{pre| | |||
{{ | |||
<nowiki>{{</nowiki>#invoke:list<nowiki>|</nowiki>''function'' | <nowiki>{{</nowiki>#invoke:list<nowiki>|</nowiki>''function'' | ||
<nowiki>|</nowiki>''first item''<nowiki>|</nowiki>''second item''<nowiki>|</nowiki>''third item''<nowiki>|</nowiki>... | <nowiki>|</nowiki>''first item''<nowiki>|</nowiki>''second item''<nowiki>|</nowiki>''third item''<nowiki>|</nowiki>... | ||
Line 29: | Line 28: | ||
}} | }} | ||
=== Arguments passed from parent template === | |||
{{pre|<nowiki>{{</nowiki>#invoke:list<nowiki>|</nowiki>''function''<nowiki>}}</nowiki>}} | |||
{{ | |||
=== Functions === | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 65: | Line 62: | ||
| Horizontal ordered lists | | Horizontal ordered lists | ||
| {{#invoke:list|horizontal_ordered|First item|Second item|Third item}} | | {{#invoke:list|horizontal_ordered|First item|Second item|Third item}} | ||
| | | {{tlx|horizontal ordered list}} | ||
|} | |} | ||
== Parameters == | == Parameters == | ||
* 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. | * 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. Horizontal ordered lists only support numbers. | * <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. Horizontal ordered lists only support numbers. | ||
Line 84: | Line 80: | ||
== Examples == | == Examples == | ||
=== Bulleted lists === | |||
{| class="wikitable" | {| class="wikitable" | ||
! Code !! Result | ! Code !! Result | ||
Line 99: | Line 94: | ||
|} | |} | ||
=== Unbulleted lists === | |||
{| class="wikitable" | {| class="wikitable" | ||
! Code !! Result | ! Code !! Result | ||
Line 114: | Line 108: | ||
|} | |} | ||
=== Horizontal lists === | |||
{| class="wikitable" | {| class="wikitable" | ||
! Code !! Result | ! Code !! Result | ||
Line 126: | Line 119: | ||
|} | |} | ||
=== Ordered lists === | |||
{| class="wikitable" | {| class="wikitable" | ||
! Code !! Result | ! Code !! Result | ||
Line 137: | Line 129: | ||
| {{#invoke:list|ordered|First item|Second item|Third item|start=3}} | | {{#invoke:list|ordered|First item|Second item|Third item|start=3}} | ||
|- | |- | ||
| <code><nowiki>{{#invoke:list|ordered|First item|Second item|Third item|type=i}</nowiki></code> | | Lowercase [[Roman numerals]]: <code><nowiki>{{#invoke:list|ordered|First item|Second item|Third item|type=i}}</nowiki></code> | ||
| {{#invoke:list|ordered|First item|Second item|Third item|type=i}} | | {{#invoke:list|ordered|First item|Second item|Third item|type=i}} | ||
|- | |- | ||
| <code><nowiki>{{#invoke:list|ordered|First item|Second item|Third item|list_style_type=lower-greek}}</nowiki></code> | | Lowercase [[Greek alphabet]]: <code><nowiki>{{#invoke:list|ordered|First item|Second item|Third item|list_style_type=lower-greek}}</nowiki></code> | ||
| {{#invoke:list|ordered|First item|Second item|Third item|list_style_type=lower-greek}} | | {{#invoke:list|ordered|First item|Second item|Third item|list_style_type=lower-greek}} | ||
|} | |} | ||
=== Horizontal ordered lists === | |||
{| class="wikitable" | {| class="wikitable" | ||
! Code !! Result | ! Code !! Result | ||
Line 168: | Line 159: | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Modules that add a tracking category]] | [[Category:Modules that add a tracking category]] | ||
}}</includeonly> | }}</includeonly><noinclude> | ||
[[Category:Module documentation pages]] | |||
</noinclude> |
edits