Commit graph

4705 commits

Author SHA1 Message Date
Translation updater bot 8580d41a81 Localisation updates from https://translatewiki.net.
Change-Id: Iaf7a80f14a34389fe8f44de033e908feba6d8fe4
2018-01-29 22:19:47 +01:00
Translation updater bot 720f9dd58b Localisation updates from https://translatewiki.net.
Change-Id: Ib40d9ed41ea12e0ee1cd5ee8e65f9c55b038420e
2018-01-26 22:36:28 +01:00
Translation updater bot 1854db1134 Localisation updates from https://translatewiki.net.
Change-Id: I6d251b9ca2737ba6b52e44bbc40ca15ff7eef32b
2018-01-24 22:20:41 +01:00
Arlo Breault 04aa4beb5b Fix infinite recursion from linting named ref cycles
On pages like,
http://localhost:8000/fr.wikipedia.org/v3/page/html/Krzysztof_Charamsa/142052535
http://localhost:8000/es.wikipedia.org/v3/page/html/Taxonom%C3%ADa/104913080

Bug: T185267
Change-Id: I156cce384873609a65b659360667323b8f0a497b
2018-01-22 18:43:11 -05:00
Ed Sanders dd2aeb641d Remove metadata from unit tests
Metadata is being removed from VE.

Change-Id: Icc614ed7a9792b7d9475d7a804bb8eea48424043
2018-01-22 14:31:44 -08:00
Translation updater bot ccc1773239 Localisation updates from https://translatewiki.net.
Change-Id: I1577626c26f00b644c13e86da334482505994204
2018-01-22 22:18:16 +01:00
Translation updater bot b31958be24 Localisation updates from https://translatewiki.net.
Change-Id: Iad38633350c5b217e6e18a477709d076b60501e3
2018-01-20 14:42:26 +01:00
Translation updater bot 8c2714747b Localisation updates from https://translatewiki.net.
Change-Id: Ib152a81179627fb372a3a9e9f1d5f2cf7ff9e401
2018-01-18 22:49:14 +01:00
Translation updater bot 98f5e4db08 Localisation updates from https://translatewiki.net.
Change-Id: Ica501d8df31d8cd39c19b220d6c03ef650563bd6
2018-01-17 22:45:36 +01:00
Translation updater bot 26ac62b78c Localisation updates from https://translatewiki.net.
Change-Id: I7531e624c4c870bdec685b57db075ac07b23a9c0
2018-01-16 22:49:18 +01:00
sbailey 4eaddbb890 Fix for T45094 replaces <span> with <sup> for references
This change was prompted by a request to follow the PHP Cite extensions
lead in using <sup> for linkbacks. Also, using superscript for
notations/citations is semantically appropriate and follows style guide
conventions.

Change-Id: I7c83d12dd900682799c124ddae1a8689969d5e8c
2018-01-16 18:41:25 +00:00
Translation updater bot 1cc3aadf2e Localisation updates from https://translatewiki.net.
Change-Id: Ic8a455f8f64dc17a4005a4b7b92ee0facd74c3c1
2018-01-14 22:16:56 +01:00
Translation updater bot f91c069d31 Localisation updates from https://translatewiki.net.
Change-Id: I40cd12e67beca3ca2c0fef0d57f1c2d7868fdf83
2018-01-11 23:44:36 +01:00
zoranzoki21 288226aba5 Replace "getSelectedItem" with "findSelectedItem" for consistency
Bug: T184037
Change-Id: Ie4b191ba55cf1cf1300182e056a5a4901c18d583
2018-01-10 11:51:25 +00:00
Arlo Breault 131718460b Add a function to create the references node uniformly
Change-Id: I58fd7ea7c692b1a38dab160083d3d9a529527fb0
2018-01-10 00:22:00 +00:00
Subramanya Sastry 0ec01e4ca6 Linter: Fix crasher in Cite - don't assume well-formedness
Change-Id: Ie5da61934b91f115b0eea995e05de6c231d77bdb
2018-01-08 16:05:40 -06:00
Translation updater bot d76800c613 Localisation updates from https://translatewiki.net.
Change-Id: Iea68ad814428c186acf36da2dda8d406d875b8fa
2018-01-08 22:35:33 +01:00
Arlo Breault 03bf14b003 Restrict nested refs not coming from templates
This better matches the behaviour of the php extension.  An instructive
example is,

<ref>123 {{#tag:ref|321}}</ref>

{{#tag:ref|456 <ref>654</ref>}}

The php implementation only parses the ref contents when producing the
output for reference tags, at which point, nested refs will be ignored,
as in the former case.  The "321" is dropped.

The latter is special, since the extension tag takes precedence over the
parser function, the inner ref will already have been processed when the
outer is added to the stack, and hence the nesting is permitted.  This
is why the inner ref precedes the outer in the references list (has a
lower number).  Unfortunately, Parsoid doesn't yet get that ordering
right.

Change-Id: Ieb0e418cca634605c2a9f1487139b15095f38d81
2018-01-08 19:49:47 +00:00
Translation updater bot ae9bffe762 Localisation updates from https://translatewiki.net.
Change-Id: I38a2f7c38cb27a23703ed79bf719b1aae7da0973
2018-01-06 09:13:52 +01:00
Translation updater bot 2e46398dbf Localisation updates from https://translatewiki.net.
Change-Id: Ifcdbb9ec255d60f8452fc5f992969f8f4b9693cf
2018-01-05 09:21:30 +01:00
Kunal Mehta 5483046f25 Use SPDX 3.0 license identifier
SPDX released version 3 of their license list (<https://spdx.org/licenses/>),
which changed the FSF licenses to explicitly end in -only or -or-later
instead of relying on an easy to miss + symbol.

Bug: T183858
Change-Id: I77bf3f7910b083ff8a09ebc4c556ab60f500803a
2018-01-04 02:54:51 -08:00
jenkins-bot 6b1e7e126f Merge "doc: Bump copyright year" 2018-01-03 19:18:07 +00:00
Kunal Mehta 1e6ff5c2fc Address PhanUndeclaredClassMethod warning
Don't use the \Database alias, use the namespaced version when calling
Database::getCacheSetOptions.

And document why the remaining issue is suppressed.

Change-Id: I80a102f2e82efedcfa999d8e714bfe049263ffeb
2018-01-03 16:34:01 +00:00
James D. Forrester 0999d771b6 doc: Bump copyright year
Also make the overly-terse statement clearer.

Change-Id: I752bb82444bf7cb41480076bace42331dc35a598
2018-01-02 17:05:50 -08:00
Ed Sanders 366d44926a MWReferenceNode: Generate 'sup' tags by default
Bug: T45094
Change-Id: I8973328095f36cce2cebbf335ee7421187eedfad
2018-01-02 15:39:08 +00:00
Ed Sanders fbcd9e41df Allow mw-ref rules apply to any element
i.e. span or sub.

Bug: T45094
Change-Id: Ib3fae04300c379727aad81b2c0c2a882d8657fe0
2018-01-02 13:59:31 +00:00
Translation updater bot 532a356cd7 Localisation updates from https://translatewiki.net.
Change-Id: I00579cd45a2176981002bc4de5b9876c7157973c
2018-01-01 09:17:35 +01:00
Translation updater bot 7250915e6d Localisation updates from https://translatewiki.net.
Change-Id: I129f50ad45f713206c2669e35ac7e457cc4bfab4
2017-12-30 09:38:34 +01:00
libraryupgrader 1ca3dd57be build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
Change-Id: I11e6d584932dbde52fc5e5d463029270976a47df
2017-12-29 23:28:16 +00:00
Thiemo Mättig 9c8ed18938 Remove some obscure comments
A good bunch of these comments literally repeats what the code already
says.

Change-Id: I9c128f748971bf20a61a85ed57d3261d27c465f0
2017-12-29 12:21:53 -08:00
jenkins-bot ef6855d3a2 Merge "Add phan configuration for static analysis" 2017-12-29 20:06:45 +00:00
Phantom42 67ed343ecc Add phan configuration for static analysis
Bug: T179554
Change-Id: I2bfd52c08aac1aa8f34e0664e6314835f79a0324
2017-12-29 11:50:01 -08:00
Translation updater bot a4e1b0e4e5 Localisation updates from https://translatewiki.net.
Change-Id: I04cb282cb27fa7802b81860f2f92a59fa1f4b8f1
2017-12-28 09:59:04 +01:00
Translation updater bot 9e2c5abfa9 Localisation updates from https://translatewiki.net.
Change-Id: Ieb195f0607ab8af66207ed3c9a0e4c8ca96e4652
2017-12-23 22:26:47 +01:00
Umherirrender 817c8a95bd Change typehint from DatabaseBase to IDatabase
Change-Id: I34bde9717d7799406dd9a30e8f9b610da53f374c
2017-12-22 21:28:29 +01:00
Subramanya Sastry 288feddbc6 Linter: Use extension mechanism to provide ext-specific lint handers
* <ref> content ends up in references section. The original <ref>
  site only has a backlink to that references section.

* Given this, when the references tag itself comes from a template,
  this throws off the linter attribution code. It assigns the
  references template's DSR to the lints from the <ref> tags.

* A clean way of dealing with this would be to treat extension
  content as its own independent document (which we are already doing
  currently in our wt2html code path) and asking the extension to process
  its content while giving it the handler for linting an individual node.

* This patch implements special handlers for <ref> and <references> content
  in the Cite extension and registers them.

* Move cite-specific lint handling code to the Cite extension.

* New mocha tests spec this behavior.

Change-Id: Ib57f0303605a73408333e133f8051be0b8d45d69
2017-12-21 17:43:37 -06:00
Translation updater bot 877179c20f Localisation updates from https://translatewiki.net.
Change-Id: I97c6dc4c457887c3e00d4ec33d56ee37bae93c74
2017-12-19 22:34:18 +01:00
Translation updater bot f3cc7166bd Localisation updates from https://translatewiki.net.
Change-Id: I8d06dbc5532e81a616323f604f3969becd85b8a0
2017-12-18 23:06:10 +01:00
Translation updater bot 197accfc96 Localisation updates from https://translatewiki.net.
Change-Id: Ic4a184d07a15bf3250c780ac81cf2a686a026fa8
2017-12-17 22:25:51 +01:00
Translation updater bot a48013507b Localisation updates from https://translatewiki.net.
Change-Id: Ia22461372f68a7880c52db27021f8395dd96b06e
2017-12-14 23:12:16 +01:00
Translation updater bot 4f0df71890 Localisation updates from https://translatewiki.net.
Change-Id: I570114d1cafe29ffe5166dacdd58f070b053c7d7
2017-12-11 23:38:40 +01:00
libraryupgrader 926b505e3e build: Updating mediawiki/minus-x to 0.2.1
Change-Id: I8e2716689d1b865106d898efd23cbdd42b4a7ddc
2017-12-10 02:30:08 +00:00
Translation updater bot a2b65a30de Localisation updates from https://translatewiki.net.
Change-Id: I753359ad4af7ba03740a0c7f58a4adba040ee158
2017-12-07 23:07:14 +01:00
Translation updater bot ed8f558748 Localisation updates from https://translatewiki.net.
Change-Id: I8477d205bb76b95620ce2af2ab08d8b1d30ed71a
2017-12-05 09:40:07 +01:00
Translation updater bot a2519d23ab Localisation updates from https://translatewiki.net.
Change-Id: I462e67bf3adfa494e7e31b4957816657669c699f
2017-12-03 22:48:13 +01:00
Translation updater bot 450789dcbf Localisation updates from https://translatewiki.net.
Change-Id: Ife0b7f2590b97fc39d9f8f6ec4ec828ba54e0f7d
2017-12-02 22:28:27 +01:00
C. Scott Ananian 228325cb09 Update Parsoid to generate modern HTML5 IDs w/ legacy fallback
The citation portion contains fixes for []-encoding in attributes,
based on Iec3439f76ecc2a3543b30b35f8735c92b0cfb711.

Fix some other no- or double-encoding issues with HTML entities in the
process, based on I88e8e2077e6f5eec2b232391f7818370894a62dc
(T103714/T104196).

Unrelated parsertest fix which needed an id fix -- incorrect id
added by the section-tag patches exposed here.

Bug: T152540
Bug: T103714
Change-Id: I12b2a148f7170d20bd9aacd3b5b8ee1965859592
2017-11-30 16:14:33 -06:00
Translation updater bot c952385d88 Localisation updates from https://translatewiki.net.
Change-Id: I44f7f2246d94cbf0ec9b5c50888e4a643fd0d693
2017-11-26 22:30:01 +01:00
C. Scott Ananian 0e8f1c961f Sync up with Parsoid citeParserTests.txt
This now aligns with Parsoid commit 0723e5c47845ff4361b9635b591e7d386c975fdf

Change-Id: Ic5b30a88189e5a8809d0f330d8b399bdb1994c60
2017-11-21 17:25:33 -05:00
jenkins-bot 53e260e90a Merge "Don't break when reference names contain []" 2017-11-21 21:59:22 +00:00