May 30, 2020

🖐️ Knight Challenge #9 🖐️

There's something sinister about these Knight Challenges!
From writing, to research, to images, find your preferred way to contribute with our ninth theme: Hands!

Latest Announcements

Template:List

From Zelda Wiki, the Zelda encyclopedia
Jump to: navigation, search

Pupose

This template concatenates any number of strings.

Usage

{{List|type= |delim= |string1|string2|string3|...}}
  • type — One of: * (bulleted list), # (numbered list), inline (sentence list). Defaults to printing one item per line.
  • delim — If type is inline, then delim will determines the separator. Defaults to printing a noun phrase.

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

The template ignores empty parameters:

InputOutput
{{List|type= inline||Zelda|Ganon}}Zelda and Ganon
{{List|type= inline}}
{{List|type= *}}

The template ignores surrounding whitespace on parameters. If you desire whitespace for the delim value, use Template:Space:

InputOutput
{{List|type= inline|delim=; | Link | Zelda | Ganon }}Link;Zelda;Ganon
{{List|type= inline|delim=;{{Space}}|Link|Zelda|Ganon}}Link; Zelda; Ganon
The above documentation is transcluded from Template:List/Documentation. (edit | history)