Go to file
Timo Tijhof b7080c5f90 Initial TemplateData commit
Registers a parser tag <templatedata> that should have a JSON
blob as content. The blob is then validated and normalised when
MediaWiki parses the page (e.g. during save and preview).

If there are validation errors, the save is aborted from the
extension hook and an error is displayed.

If all goes well, the normalised blob is stored in the database
(which can be retrieved through the API). And an HTML
representation of the template parameters is returned to the
wikitext parser to show where the <templatedata> was in the page.

The blob format is specified in spec.templatedata.json and
is validated in TemplateDataBlob::parse.

Bug: 44444
Change-Id: Icf305892a9512545a63f5a5280cc0d340c61585f
2013-03-14 19:19:55 +00:00
api Initial TemplateData commit 2013-03-14 19:19:55 +00:00
resources Initial TemplateData commit 2013-03-14 19:19:55 +00:00
.gitignore Add .gitreview and .gitignore 2013-02-14 15:36:56 +00:00
.gitreview Add .gitreview and .gitignore 2013-02-14 15:36:56 +00:00
spec.templatedata.json Initial TemplateData commit 2013-03-14 19:19:55 +00:00
TemplateData.hooks.php Initial TemplateData commit 2013-03-14 19:19:55 +00:00
TemplateData.i18n.php Initial TemplateData commit 2013-03-14 19:19:55 +00:00
TemplateData.php Initial TemplateData commit 2013-03-14 19:19:55 +00:00
TemplateDataBlob.php Initial TemplateData commit 2013-03-14 19:19:55 +00:00