Page MenuHomePhabricator

"|" used in Wikidata query not parsed correctly in WikiEditor SPARQL2 template
Closed, InvalidPublicBUG REPORT

Description

Steps to Reproduce:

  1. Generate a query with "|" (OR) condition.
  2. Write the query in SPARQL2 template in the WikiEditor, like:
{{SPARQL2|query = SELECT ?item ?itemLabel WHERE {
  ?item wdt:P31 wd:Q129238;
    (wdt:P17|wdt:P495) wd:Q668.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
}}

Actual Results:
All the text after | is not shown/parsed.

Expected Results:
The whole query should be shown and parsed correctly.

Example Query: Query

Reproduced at: List of startups from India

Event Timeline

@wassan.anmol117: I don't think there is anything to fix in WikiEditor here, but if at all it would be instead in the template?

@Aklapper Is there a project related to the template or could you add a subscriber concerned with this?

On-wiki content like templates are local features and managed independently on each wiki, but not in Phabricator.