Default values
This merge request changes some default values of list parser function unnamed parameters to make them consistent with their named parameters function equivalent. In general, the list functions using unnamed parameters use empty strings, while their equivalent use custom default values. e.q., #listmap uses , as the default value of the insep parameter but #lstmap uses an empty string (which gives a list of characters) for the corresponding unnamed parameter. The changed default values are described below.
PS: I did not include this change in the other merge request because it is about changes that, I suppose, could potentially break stuff, and can be debated a lot more. I can merge it with the other one if you prefer.
#lstcnt
{{#lstcnt:list|separator}}
| Parameter | Current default value | Proposed default value |
|---|---|---|
list |
||
separator |
, |
#lstsep
{{#lstsep:list|input separator|output separator}}
| Parameter | Current default value | Proposed default value |
|---|---|---|
list |
||
input separator |
, |
|
output separator |
, |
#lstelem
{{#lstelem:list|input separator|index}}
| Parameter | Current default value | Proposed default value |
|---|---|---|
list |
||
input separator |
, |
|
index |
1 |
#lstsub
{{#lstsub:list|input separator|output separator|start index|length}}
| Parameter | Current default value | Proposed default value |
|---|---|---|
list |
||
input separator |
, |
|
output separator |
, |
|
start index |
1 | 1 |
length |
∞ | ∞ |
#lstapp
{{#lstapp:list|separator|new item}}
| Parameter | Current default value | Proposed default value |
|---|---|---|
list |
||
separator |
, |
|
new item |
#lstjoin
{{#lstjoin:first list|first input separator|second list|second input separator|output separator}}
| Parameter | Current default value | Proposed default value |
|---|---|---|
first list |
||
first input separator |
||
second list |
||
second input separator |
||
output separator |
, |
#lstcntuniq
{{#lstcntuniq:list|separator|case sensitivity option}}
| Parameter | Current default value | Proposed default value |
|---|---|---|
list |
||
separator |
, |
|
case sensitivity option |
ncs |
ncs |
#lstuniq
{{#lstuniq:list|input separator|output separator|case sensitivity option}}
| Parameter | Current default value | Proposed default value |
|---|---|---|
list |
||
input separator |
, |
|
output separator |
, |
|
case sensitivity option |
ncs |
ncs |
#lstsrt
{{#lstsrt:list|input separator|output separator|sort options}}
| Parameter | Current default value | Proposed default value |
|---|---|---|
list |
||
input separator |
, |
|
output separator |
, |
|
sort options |
alpha ncs asc |
alpha ncs asc |
Edited by Adrien LESÉNÉCHAL