Template:List/doc

From Len'en Wiki
Jump to navigation Jump to search
This is a documentation subpage for Template:List.
It contains usage information, categories and other content that is not part of the original template page.

{{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:

  • OMG
  • it be
  • clos
[[File:Le01ClauseSprite.png|thumb|{{list|OMG|it be|clos}}]]