Template:List: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
(updated docs for new functionality)
Line 7: Line 7:
{{List|delim= |string1|string2|string3|...}}
{{List|delim= |string1|string2|string3|...}}
</pre>
</pre>
{{Parameter|delim|The delimiter used to separate string. Defaults to a </br> tag. If set to "prosaic", it will print a prosaic enumeration with an an Oxford comma. If you want to use leading or trailing spaces in the delimiter, wrap it in single quotes ('). |Optional}}
{{Parameter|delim|The delimiter used to separate string. Defaults to a <code><nowiki></br></nowiki></code> tag. If set to "prosaic", it will print a prosaic enumeration with an an Oxford comma. If you want to use leading or trailing spaces in the delimiter, wrap it in single quotes ('). |Optional}}
 
==Examples==
==Examples==



Revision as of 07:09, 18 January 2020

Script error: The function "main" does not exist.

Pupose

This template concatenates any number of strings.

Usage

{{List|delim= |string1|string2|string3|...}}
  • delim — The delimiter used to separate string. Defaults to a </br> tag. If set to "prosaic", it will print a prosaic enumeration with an an Oxford comma. If you want to use leading or trailing spaces in the delimiter, wrap it in single quotes (').

Examples

  • {{List|Link|Princess Zelda|Ganon}}
    • Script error: The function "main" does not exist.
  • {{List|delim=-|Link|Princess Zelda|Ganon}}
    • Script error: The function "main" does not exist.
  • {{List|delim='; '|Link|Princess Zelda|Ganon}}
    • Script error: The function "main" does not exist.
  • {{List|delim=prosaic|Link|Princess Zelda|Ganon}}
    • Script error: The function "main" does not exist.
  • {{List|delim=prosaic|Link|Princess Zelda}}
    • Script error: The function "main" does not exist.