Commit graph

4900 commits

Author SHA1 Message Date
James D. Forrester 672124cf26 Remove 'experimental' popups functionality that was never used
Bug: 67282
Change-Id: Ib0c8c0daae62c9398f15397917232447c6113069
2014-07-09 11:06:18 -07:00
Subramanya Sastry 69b6ec4d4d (Bug 67237): Fix citation numbering issue
* Process <ref> and <references> tag on the top-level DOM only
  and ignore the generateRefs pass when processing other content.

* This required a few fixes:
  - ensure that DOMPostProcessor knows about the top-level.
  - ensure that DOMVisitor knows about the top-level.
  - cleanup pass leaves behind the ref-marker metas from DOMs from
    non top-level content.
  - process nested references content.

* One of the references tests had incorrect parsed output. That test
  has been updated to reflect the correct output from this patch.

* Barack Obama seems to now have the correct numbering on references.

Change-Id: I5465721d2fc715f2168f267e773a446bc37d198b
2014-07-01 22:48:13 -05:00
Subramanya Sastry e59aaecbcf Use TokenStreamPatcher to convert table tags outside wikitables to text
* Keep track of table nesting in token stream patcher and use it to
  convert <td>, <tr>, and <th> tags to plain strings.

* This fix is only enabled on the top-level token stream.
  To support this, fixed the resetState function in the parser
  construction code to pass in a toplevel flag which lets the
  token stream patcher know the context it is in.

* Fixes 29 (wt2html,wt2wt,html2html,selser) tests and improves
  results of 1 previously blacklisted tests. The failing selser
  test is actually a false failure because selser is more accurate
  than non-selser wts.

* Consolidated a few separate tests into a single test that covers
  all this functionality.
  - This new test fails wt2wt and html2wt modes because serializer
    uses tokenizer information which continues to return table tokens
    and results in <nowiki> wrappers.

Bug: 66489
Bug: 66498
Change-Id: I9f42354ea9efb0f8adfc96c23760012220d00dd4
2014-06-24 12:33:55 -05:00
Alex Monk 798b453771 If there's no main <references /> block on the page, show one automatically below the content
Rather than showing an error

Bug: 66860
Change-Id: I9c7c13269d5ec355ccb280402aa8c0cedd208883
2014-06-23 22:54:28 +01:00
Marius Hoch 02b5cd9030 Fix a fatal in SpecialCite
Follows up on I56c0791d31

Change-Id: If004a4ce9ae594694075d15745a949fabf04bbc3
2014-06-23 12:36:37 +02:00
jenkins-bot 3ffc8810e4 Merge "SpecialCite: fix escaping of message" 2014-06-23 02:57:01 +00:00
Kunal Mehta 8c1494e5bb SpecialCite: fix escaping of message
Linker::link takes raw HTML, so use ->escaped().

Also use $skin->msg() instead of wfMessage.

Change-Id: I56c0791d31897793b0e8cd8ac18ea337a96d1ff0
2014-06-22 19:36:19 -07:00
Derk-Jan Hartman d694691982 Special:Cite: Load RL modules of parsed content
Bug: 39049
Change-Id: Ib14a7cbc54e0317d7fa47f5569e54f5e0381613c
2014-06-22 12:00:02 +02:00
Translation updater bot 52195376d5 Localisation updates from https://translatewiki.net.
Change-Id: Ibc74e2953433d6ce5397425da6453d3733cc1254
2014-06-13 20:48:17 +00:00
Translation updater bot 9057b09752 Localisation updates from https://translatewiki.net.
Change-Id: I1d3bbb0e4e911dde94a7acb64991f36620368be5
2014-06-12 21:37:03 +00:00
Translation updater bot 31c8cdced3 Localisation updates from https://translatewiki.net.
Change-Id: I9da3472d5c8f20e6d480bd3d131367bf3ff65e8c
2014-06-11 20:36:36 +00:00
Nik Everett 635cd3c801 Get parser tests passing again
The failure looks like it was caused by
Ib7aa9449bbd994cb23b83b3f23cff944b1cddadf in core.  Its not a regression,
just different looking equally valid results.

Change-Id: Icfe02eaf7f2a2d8273e973442e04006b6024684d
2014-06-11 14:10:59 -04:00
jenkins-bot 505bdbf13b Merge "Kill code that's been unnecessary since 2006" 2014-06-05 20:00:04 +00:00
Jackmcbarn 50d8e2e290 Kill code that's been unnecessary since 2006
We've had Parser::recursiveTagParse since MediaWiki 1.8, back in 2006.
Remove code that only gets used if it's not available.

Change-Id: I76eed5570a675a14cf70ab10981661e0bc8bda99
2014-06-05 13:51:48 -04:00
Translation updater bot 22f00ea5be Localisation updates from https://translatewiki.net.
Change-Id: I1577a434eacb5e3a34c7528577f1aa12e49ff3f6
2014-06-02 20:57:26 +00:00
jenkins-bot feef08d570 Merge "Mark parser hook output as volatile" 2014-05-30 21:09:14 +00:00
Translation updater bot d5a6491a5b Localisation updates from https://translatewiki.net.
Change-Id: I6d54090ecb431d93b0b8d791515fc972572240e4
2014-05-30 18:47:02 +00:00
Translation updater bot f4a65100dc Localisation updates from https://translatewiki.net.
Change-Id: I9d2b9cdfa473fe0e658c2fe9760a0ed9c31de668
2014-05-29 19:36:17 +00:00
Translation updater bot bf9a38fd7a Localisation updates from https://translatewiki.net.
Change-Id: I8aba8dfea5b096b6293e198f3600d110b05aada5
2014-05-26 20:10:17 +00:00
Translation updater bot 61da25acf3 Localisation updates from https://translatewiki.net.
Change-Id: I71c5883d173b66f611f44fa848332ed764f44f50
2014-05-22 19:54:19 +00:00
Translation updater bot 6b2568361b Localisation updates from https://translatewiki.net.
Change-Id: I4c01aa752e846c7a6c2b443e719c381251af47c6
2014-05-20 18:58:53 +00:00
Translation updater bot d9fe123069 Localisation updates from https://translatewiki.net.
Change-Id: I730296383050ab5f9d5540bd277c4f123feb05b4
2014-05-16 19:58:27 +00:00
Translation updater bot 9119b57100 Localisation updates from https://translatewiki.net.
Change-Id: Idb6ac4b5c75c92d05c49ad56012faacf190277f9
2014-05-14 19:33:30 +00:00
Translation updater bot 797bc6f359 Localisation updates from https://translatewiki.net.
Change-Id: I34314f386524422c81f82204405263472ca81f87
2014-05-11 19:06:03 +00:00
Translation updater bot 786651c47b Localisation updates from https://translatewiki.net.
Change-Id: I90d4966e99ae2d218e344ca30bacffb9b72d41f1
2014-04-30 20:40:37 +00:00
Gabriel Wicke 7db2d118dc Work around Cite reset issue
The Cite extension does not currently handle resetState calls in
sub-pipelines, and relies on sharing a single Cite instance between all
pipelines. Fixing this is a longer project, so this patch works around the
issue for now by passing a flag indicating resetState calls in sub-pipelines
and ignoring the call in Cite in that case.

Change-Id: If3d426a5311a55d1c1530860d2b665d3681f1aa9
2014-04-30 10:02:39 -07:00
Translation updater bot 9f5d9adb8b Localisation updates from https://translatewiki.net.
Change-Id: I4c117a93694396b887f7c671c5f612996fd84537
2014-04-27 20:31:28 +00:00
Translation updater bot d346fdba47 Update i18n shim
A performance issue was fixed in the shim(s) generated by
generateJsonI18n.php, so it needed to be updated.

Change-Id: I1f0ddf131ded163fa38afdf95fd92ce8c71f22b2
2014-04-22 13:13:34 +00:00
Translation updater bot e209b33472 Localisation updates from https://translatewiki.net.
Change-Id: I60d337d951af57b318be0061f4f31cf6eeb7b275
2014-04-16 15:29:54 +00:00
Arlo Breault 8ed953ee0f Temp fix for handling non-string ref attribute vals
* Entities in ref name weren't expected

 * Fixes the crash from arwiki:تأثير_الدمعة_السوداء

 * Makes use of the fix from de3642b8dd4a804ac654f2943a900496f2c8b3f3

Bug: 63790
Change-Id: Icb8781b4d9decc5a8b115d0b11def4d18f5d5025
2014-04-15 14:27:12 -07:00
Translation updater bot b6c080a9d2 Localisation updates from https://translatewiki.net.
Change-Id: I913c62d0e39ed4fac24c40332078854cc5f266de
2014-04-04 20:20:48 +00:00
Arlo Breault a28fbbbac7 Only pass document.body to the post-processors
* With some other cleanup pulled out of the external ids patch.

Change-Id: I8cee994079579d922da97a4c1c793540bfd8d1b1
2014-04-03 16:05:36 -07:00
Translation updater bot a8b1af9fc9 Localisation updates from https://translatewiki.net.
Change-Id: I24e11e9c36f7b397a30526434a0274f9d48aaa0a
2014-04-01 19:41:44 +00:00
Translation updater bot 949a95a205 Localisation updates from https://translatewiki.net.
Change-Id: Ia2f96f909f931ecdfdb44ed5d2c26b68b46c0146
2014-03-31 20:13:08 +00:00
Translation updater bot 77de2db862 Localisation updates from https://translatewiki.net.
Change-Id: I6a5f0a68082e5ab713bbdc6e3b38ba3f22a0e7f9
2014-03-30 20:09:54 +00:00
Translation updater bot da6b969a5a Localisation updates from https://translatewiki.net.
Change-Id: Ie5bdab145b59e038cc4384c83214deef9f322f06
2014-03-29 21:13:28 +00:00
Translation updater bot 7124cd4505 Localisation updates from https://translatewiki.net.
Change-Id: I7677cef94c7f09cb013a824f9f0709b8d0a5a1f7
2014-03-28 19:25:29 +00:00
Translation updater bot 51e51aea6b Localisation updates from https://translatewiki.net.
Change-Id: Ie3f579018254a6d6fdf09eeb7a205887eb881d8a
2014-03-27 20:29:39 +00:00
Subramanya Sastry d99166010c Minor code cleanup: Use forEach instead of map where appropriate
* Also replaced buf with newTokens in ext.core.TemplateHandler.js

Change-Id: I81e05a13c9373aa298d710b7942f9fe3cd802e63
2014-03-26 16:48:18 -05:00
Translation updater bot 464ad825a7 Localisation updates from https://translatewiki.net.
Change-Id: Iafc3a25ea1f986e15a5f9b88ca8d6829a22e0287
2014-03-26 20:38:13 +00:00
Siebrand Mazeland 5973b719f1 Migrate to JSON i18n
Procedure per https://www.mediawiki.org/wiki/Manual:GenerateJsonI18n.php
with shim.

Change-Id: I186d9dde70e75ecd552d36310be44263081a6585
2014-03-26 10:06:27 +01:00
Translation updater bot e0b3b68687 Localisation updates from https://translatewiki.net.
Change-Id: I1993da17feba19a524051ce0d0d06afa4d2232a8
2014-03-21 20:44:35 +00:00
Translation updater bot bb4888f570 Localisation updates from https://translatewiki.net.
Change-Id: Ic79cb10e25b2db6df5d550c910a4ebe03318346a
2014-03-20 20:28:49 +00:00
Translation updater bot 6fbd0bb266 Localisation updates from https://translatewiki.net.
Change-Id: Id76a93f64be0f861b07931cf66c319083920f692
2014-03-17 21:17:46 +00:00
Translation updater bot 126d1090e3 Localisation updates from https://translatewiki.net.
Change-Id: I30dd43465bfd5a4aecef0991568b962428bf18e0
2014-03-15 20:05:59 +00:00
Translation updater bot 3ff512c7f6 Localisation updates from https://translatewiki.net.
Change-Id: I43447fdc3332595c4e7295988db072a32f053f10
2014-03-13 15:42:50 +00:00
Subramanya Sastry e8351a4f07 Cite: Parse <references> content all the way to DOM.
* Thus far, <references> tag content was being parsed to
  stage 2 and merged into main pipeline. This patch takes
  this all the way to DOM. This required some tweaks to
  handling of <ref>s nested inside <references>.

* Fixed up a buggy parser test in the bargain -- the old parsoid
  result was buggy as well. I verified output in the enwp
  sandbox.

Change-Id: Iff6c528066b71ce1b00dd769910a04ee66623340
2014-03-11 10:06:53 -05:00
jenkins-bot 94045b1183 Merge "Exclude backlinks from selection" 2014-03-10 01:50:12 +00:00
Translation updater bot 99817c2fb5 Localisation updates from https://translatewiki.net.
Change-Id: If5da141844a3a6e1dac17776b6dc0d7472301fc8
2014-03-07 21:36:58 +00:00
Marc Ordinas i Llopis 99b75249f1 <references> handler should respect inTemplate pipeline option
Change-Id: Ibfc1ea97aef8681bfd3cf04dba0aa32824c076f0
2014-03-07 18:39:28 +01:00