Page MenuHomePhabricator

Add html class in {{#statements:…}} parser function
Open, MediumPublic

Description

Enclosing the output of {{#statements:…}} parser functions in <span class="wddata">...</span> will allow users to customize and easily identify pieces of information (f.e. in an infobox) that come from Wikidata.

Currently {{#statements:…}} output seems to be using two nested spans without any attributes (why?).

Event Timeline

geraki renamed this task from Add html class in {{#property:...}} and {{#statements:…}} parser functions to Add html class in {{#statements:…}} parser function.Mar 23 2017, 10:10 AM
geraki updated the task description. (Show Details)
Lydia_Pintscher subscribed.

We didn't change the property parser function because it would break existing usage. We added the spans so we don't run into this problem also with the statements parser function.