Page MenuHomePhabricator

TemplateData: Implement hook for extensions to document magic words and parser functions
Open, LowestPublic

Description

There should be a hook for extensions to return TemplateData JSON for their parser functions (e.g. #babel).


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=50855

Details

Reference
bz52607

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:57 AM
bzimport added a project: TemplateData.
bzimport set Reference to bz52607.

Change 78644 had a related patch set uploaded by Jforrester:
[WIP] Run a hook so extensions can add templatedata for parser functions

https://gerrit.wikimedia.org/r/78644

Krinkle added a comment.EditedAug 27 2013, 6:12 PM

Rephrasing bug:

Pending T55413 (bug 53413), TemplateData will support magic words and parser functions. This bug is to (after we provide the ones from core) allow extensions to document theirs as well.

Unassigning myself to avoid cookie licking.

Change 78644 abandoned by Legoktm:
[WIP] Run a hook so extensions can add templatedata for parser functions

Reason:
Not planning to work on this

https://gerrit.wikimedia.org/r/78644

Krenair renamed this task from TemplateData: Implement hook for extensions to document parser functions to TemplateData: Implement hook for extensions to document magic words and parser functions.Jan 15 2016, 8:58 PM
Krenair set Security to None.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 15 2016, 8:58 PM
J5lx awarded a token.Dec 15 2016, 8:44 PM
J5lx added a subscriber: J5lx.
Tgr added a subscriber: Tgr.Oct 2 2017, 10:22 PM
Deskana lowered the priority of this task from High to Lowest.Feb 23 2018, 4:31 PM
Krinkle removed a subscriber: Krinkle.Feb 23 2018, 9:31 PM
cscott added a subscriber: cscott.Sep 14 2018, 1:35 AM

We should probably define a parser function which will invoke a behavior switch (if there isn't one already) so that we can handle behavior switches/magic words/parser functions uniformly: all macro insertions could be expressed using the {{...}} syntax, and the templatedata would be named based on the name inside the braces.