Zelda Wiki

OoT Navi.png

Hey! Listen!

This wiki contains spoilers! Read at your own risk!

READ MORE

Zelda Wiki
Advertisement
Zelda Wiki
10,305
pages

Purpose

This outputs bits of text in lists of various formats. This should be used instead br tag to make lists, so that the output HTML is semantically meaningful to screen readers (i.e. easier for the visually impaired to navigate).

Usage

SyntaxBoilerplate
{{List|type= |delim= |listItem1|listItem2|listItem3|...|listItemN}}
{{List|||}}
ParameterStatusDescriptionAccepted values
typeoptionalDetermines the list format. One of: * (bulleted list), # (numbered list), inline (sentence list). If not specified, the list items are simply printed one per line.
  • *
  • #
  • inline
delimoptionalIf type is inline, then delim sets the separator between each list item. If not specified, the inline list is printed as a phrase.
  • 1
  • .
  • .
  • N
listItemsoptionalList items. Can be any wikitext.

Examples

InputOutput
{{List|Link|Zelda|Ganon}}
  • Link
  • Zelda
  • Ganon
{{List|type= *|Link|Zelda|Ganon}}
  • Link
  • Zelda
  • Ganon
{{List|type= #|Link|Zelda|Ganon}}
  1. Link
  2. Zelda
  3. Ganon
Inline lists.
{{List|type= inline|Link|Zelda|Ganon}}Link, Zelda and Ganon
{{List|type= inline|Link|Zelda}}Link and Zelda
{{List|type= inline|Link}}Link
{{List|type= inline|delim= {{·}}|Link|Zelda|Ganon}}Link · Zelda · Ganon
This template ignores empty arguments.
{{List|type= inline||Zelda|Ganon}}Zelda and Ganon
{{List|type= inline}}
{{List|type= *}}
This template ignores surrounding whitespace on parameters. If you desire whitespace in delim, use Template:Space.
{{List|type= inline|delim= ; | Link | Zelda | Ganon }}Link;Zelda;Ganon
{{List|type= inline|delim= ;{{Space}}|Link|Zelda|Ganon}}Link; Zelda; Ganon

This outputs bits of text in lists of various formats. This should be used instead <code>br</code> tag to make lists, so that the output HTML is semantically meaningful to screen readers (i.e. easier for the visually impaired to navigate).

Template parameters

ParameterDescriptionTypeStatus
typetype

Determines the list format. One of: <code>*</code> (bulleted list), </code>#</code> (numbered list), <code>inline</code> (sentence list). If not specified, the list items are simply printed one per line.

Stringoptional
delimdelim

If <code>type</code> is <code>inline</code>, then <code>delim</code> sets the separator between each list item. If not specified, the inline list is printed as a phrase.

Stringoptional
listItems...

List items. Can be any wikitext.

Contentoptional
Advertisement