Jump to content

Community Wishlist/Wishes/Add custom separator option in -property:

From Meta, a Wikimedia project coordination wiki
Add custom separator option in #property: Submitted

Edit wish Discuss this wish

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

Wikipedia, Wikidata, Wikimedia Commons, Wikispecies

Affected users

template editors

Other details

  • Created: 01:14, 10 June 2025 (UTC)
  • Last updated: 04:00, 10 June 2025 (UTC)
  • Author: ponor (talk)