On 05/22/2012 11:52 PM, Daniel Kinzler wrote:
> On 22.05.2012 22:37, Gabriel Wicke wrote:
>> {{{data.color}}} would be inaccessible to Lua templates, unless it is
>> expanded as a parameter in a custom preprocessor frame and then passed
>> by value to the Lua template. The custom preprocessor frame code would
>> be specific to the current PHP preprocessor, and incompatible with other
>> parsers.
>>
>> A parser function call with explicit item parameter on the other hand
>> would work as-is through the generic API- be it from Lua or Parsoid.
> 
> even though {{{data}}} wouldn't be text, but a complex data object that needs
> special handling when evaluating it to wikitext?

{{{data}}} won't be accessible to Lua or Parsoid.
{{#data:q12345|somevalue}} on the other hand would be accessible through
the regular parser function API.

Gabriel


_______________________________________________
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l

Reply via email to