Template:Csv

From Fortnite Wiki
Jump to: navigation, search


Documentation[purge]

This template is used to clean up and format comma-separated lists.

Usage

{{csv|comma, separated, list|to=<format> /optional|delimiter=<delimiter> /optional}}

Parameters

to=
This parameter determines the format that should be used to format the list. Values include:
links - this converts the list to a list of links
lc - this makes the list all lowercase
code - this makes each entry in the list formatted with <code> tags
lc code - this formats the list into both lowercase and code tags
default (no to format) simply strips out any leading or trailing commas and adds spaces between list items
delimiter=
This parameter determines the delimiter used to separate the items in the list. Note that the output will always use commas as delimiters, but the input delimiter can be changed with this parameter. Defaults to ,.

Examples

Examples using various to formats on the following list:

{{csv|Constructor,Ninja,Outlander,Soldier,}}

to=links

Constructor, Ninja, Outlander, Soldier

to=lc

constructor, ninja, outlander, soldier

to=code

Constructor, Ninja, Outlander, Soldier

to=lc code

constructor, ninja, outlander, soldier

to=<none>

Constructor, Ninja, Outlander, Soldier

About