Template:ListExtract

From Archaelund Wiki

Description

This template extracts single items from semicolon-separated lists (i.e. "item1; item2; item3; ...").

Usage

{{ListFormat|<semicolon-separated list>|<item index>|<format>|Blank = <text>}}

The numbering of <item index> starts at 1 (not 0). An optional parameter <format> can be specified (see list below), otherwise the item is output as is. Furthermore, an optional parameter Blank can be provided which replaces empty entries in the list by arbitrary <text>.

Format options

FormatDescriptionExample output
DiffFormats numerical entries as a bonus/malus using Template:Difference.+1

View/Edit documentation page