Jump to content

Add custom separator option in #property: (Community Wishlist/W396)

Long-term opportunity
From Meta, a Wikimedia project coordination wiki

View all wishes.

Description

Allow custom separators in {{#property:}} parser funcion (Wikidata/Notes/Inclusion syntax v0.4) to avoid confusion between multiple returned values and a single value that has commas in it.

When requesting a property like P181 from a template, one can get a single value, or multiple comma-separated values. But some values already have a comma in them, so splitting the resulting string by the separator is not as trivial as it should be, and in some cases (like with publication titles that include commas) it might be programatically impossible.

  • {{#property:P181|from=Q310945}} → Bahr el Ghazal, Chad ; Australopithecus bahrelghazali 1995 discovery map.png
  • {{#property:P181|from=Q1314559}} → Zosterops lugubris, range map.png

Add sep= parameter to {{#property:}}, allowing any string as a separator (one or more than one characters):

{{#property:...|from=...|sep=...}}

Assigned focus area

Unassigned

Type of wish
System change
Tags
Affected users

template editors

Other details
  • Created: 01:14, 10 June 2025
  • Last updated: 20:12, 2 October 2025
  • Author: Ponor (talk)
Voting

This wish currently has 1 supporter. Voting for this wish is open until it is completed.

Supporters of this wish
Support Pppery (talk) 15:47, 10 October 2025