Go to file
Subramanya Sastry 956367fb90 Implement ParsoidFetchTemplateData hook for Parsoid/PHP
* This hook supports functionality that Parsoid/JS used the MW API for.

  Parsoid's html2wt code requests templatedata for titles one
  at a time currently and so this hook also supports lookups one
  title at a time.

  This initial implementation is good enough for initial Parsoid/PHP
  deployment.

* As part of later performance optimization, we should figure out if
  we want to fetch templatedata for all templates in batch mode and
  work out the details (selser doesn't touch all templates, for one).

  The hook does accept an array of titles, but it looks them up
  serially in a simple for-loop.

  Separately, we need to resolve if this is better architected as
  a lookup service vs. a hook as it is now (see discussion on gerrit).

* Tested locally on my local wiki.

Bug: T238954
Change-Id: I01fb6a9f334ca37a703be497524180f87fb8bbf7
2019-11-25 11:09:13 -06:00
.phan Add phan 2019-04-27 21:17:28 +02:00
i18n Localisation updates from https://translatewiki.net. 2019-11-20 09:38:38 +01:00
includes Implement ParsoidFetchTemplateData hook for Parsoid/PHP 2019-11-25 11:09:13 -06:00
lib/jquery.uls Eventify TemplateDataGenerator and use oojs-ui 2014-12-22 12:58:37 -05:00
modules Set back/close flags on dialog 2019-07-11 14:46:30 +01:00
resources Remove special font-size treatment following-up UI unified in 14px base 2018-03-20 16:55:41 +01:00
tests build: Upgrade mediawiki-codesniffer to v28.0.0 2019-10-11 12:04:42 -07:00
.eslintrc.json build: Set "root": true, in .eslintrc.json 2018-12-17 18:58:37 -08:00
.gitignore build: Update eslint-config-wikimedia to 0.11.0 2019-03-13 16:33:25 -07:00
.gitreview Whoops, track not trace 2016-10-24 17:03:53 -07:00
.phpcs.xml build: Upgrade mediawiki-codesniffer to v28.0.0 2019-10-11 12:04:42 -07:00
.stylelintrc.json Use json extension for .stylelintrc 2017-08-19 10:35:07 +02:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.3.0 2018-08-19 17:07:35 +00:00
composer.json build: Updating mediawiki/mediawiki-phan-config to 0.8.0 2019-11-05 16:58:58 +01:00
COPYING Use the plain-text GPL 2015-06-08 08:35:23 +02:00
extension.json Implement ParsoidFetchTemplateData hook for Parsoid/PHP 2019-11-25 11:09:13 -06:00
Gruntfile.js build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint 2019-05-07 10:50:20 -07:00
jsduck.external.js Add VE support 2016-12-06 21:31:10 +00:00
jsduck.json Document code with JSDuck 2015-03-06 17:56:30 -08:00
package-lock.json build: Updating eslint-utils to 1.4.2 2019-08-23 05:56:32 +00:00
package.json build: Updating npm dependencies for security issues 2019-06-09 00:52:41 +00:00
Specification.md Specification: Fix "properties" typo in § 3.2.8 2019-01-01 16:59:07 -08:00
TemplateData.php Start showing warning for deprecated PHP entry point 2018-10-26 22:00:05 +02:00