Template:List
Jump to navigation
Jump to search
{{List}}
may be used to generate a bulleted list in similar vein to HTML's <ul>...</ul>
list. A typical application is within captions, where the equivalent wiki markup (asterisks at the starts of new lines) may be awkward or impossible to use.
Usage[edit source]
{{list|item1|item2|...}}
Output:
- item1
- item2
- ...
Positional parameters (1
, 2
, 3
...) - these are the list items. If no list items are present, the template will output nothing. Up to 30 parameters are usable.
It's also possible to create a nested bullet list: all that's required is adding another {{list}}
within one of the parameters. Example:
{{list|item1|item2
{{list|item1|...}}
|...}}
Output:
- item1
- item2
- item1
- ...
- ...
Example where the template could be used:
[[File:Alyssa.png|thumb|{{list|OMG|it be|alyssa}}]]
The above documentation is transcluded from Template: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. |