Commit graph

1565 commits

Author SHA1 Message Date
Schnark 530ef0ab9c Highlight target references
Highlight the target reference when the user clicks a reference link,
and also highlight the note in the text when he clicks the backlink.

This is done using the :target selector and a light blue background-color.
The color (and the rest of the code) are from English Wikipedia, from where
it has been copied to many other wikis, so the feature itself and especially
the color seem to be agreed on.

Browsers that don't support the :target selector (notably Internet Explorer 8
and below) will just ignore the new style and fall back to current behavior.
Wikis that have added this code to their common.css can remove it, but
of course nothing will break when they keep the duplicate code.

Bug: T10303
Change-Id: I5775daf6934516ce9c98841399e5a358195c1374
2015-03-16 08:29:20 +00:00
Translation updater bot 565b001c9e Localisation updates from https://translatewiki.net.
Change-Id: I6ffaee0a51425083a0d12e49c81f62d54e428624
2015-03-15 21:47:51 +01:00
Translation updater bot 8f982a94c2 Localisation updates from https://translatewiki.net.
Change-Id: Iee2edc72a527f932d1cefc837ff32d1072b3a739
2015-03-10 22:30:33 +01:00
Ritsyy 572e1023f1 T28462 changed print CSS for backlink arrows edited CSS according to coding conventions
Change-Id: I54caf0437557494dbf270b10a8564bc8d98a5c6a
2015-03-03 00:27:34 +05:30
Translation updater bot b26aebf7f3 Localisation updates from https://translatewiki.net.
Change-Id: If9fcbe87f345a878e70b3d9770712e85c229bd38
2015-02-28 22:03:42 +01:00
Brion Vibber 931707fd4a Update parser test case for gallery srcset support
Recent core update to gallery display includes srcset support; one of the
parser test cases for Cite uses a gallery and needs updating to match.

Bug: T64709
Change-Id: I6283415e2f7608d9a5c53bc94804fd95a79d3793
2015-02-26 09:59:39 -08:00
Translation updater bot bd37724fd0 Localisation updates from https://translatewiki.net.
Change-Id: I2d4657dd3425db310fcde839fec324180e002556
2015-02-25 22:52:27 +01:00
Translation updater bot d798afe3ce Localisation updates from https://translatewiki.net.
Change-Id: Ib8a544672aaa393ad67f00f60f4ffe37150448a8
2015-02-24 21:58:41 +01:00
Translation updater bot 4e0c0484d6 Localisation updates from https://translatewiki.net.
Change-Id: I5fcf28f39163ef552e71a2d9c3c5fae249988b39
2015-02-21 23:30:35 +01:00
Translation updater bot 4d15f24973 Localisation updates from https://translatewiki.net.
Change-Id: Id64a3a5be405945b2702b6c4d341e1622cca8550
2015-02-20 22:25:49 +01:00
Translation updater bot f00ce1efd2 Localisation updates from https://translatewiki.net.
Change-Id: I616f1cbeb339ea9acecc4aeda53ea232b8ac7c0f
2015-02-19 22:04:27 +01:00
Translation updater bot f4a96d79e6 Localisation updates from https://translatewiki.net.
Change-Id: I6fd65643440d4e4e78872b0100d54c07b32478c5
2015-02-16 21:51:58 +01:00
Translation updater bot 3ccd1d6385 Localisation updates from https://translatewiki.net.
Change-Id: Iac662e182d2cf6f908dc1d940b306dcf15dcc86b
2015-02-13 22:18:20 +01:00
Chad Horohoe b818a87315 Remove obvious function-level profiling
Change-Id: I435365313846d7529601a2440ea2e3c40a5418f3
2015-02-10 13:53:33 -08:00
Translation updater bot 799a6c4820 Localisation updates from https://translatewiki.net.
Change-Id: I32f88e69738894487f889bdd8a08a9d8b9cebb93
2015-02-10 22:15:02 +01:00
Translation updater bot 201992cfc3 Localisation updates from https://translatewiki.net.
Change-Id: If326f85726f557a1d2668abb34f4d1589d77e7a6
2015-02-02 22:25:29 +01:00
Translation updater bot 5807500e00 Localisation updates from https://translatewiki.net.
Change-Id: I1e187106a53f6cba63bb401e58fbfb1e748ae420
2015-01-25 21:44:06 +01:00
Translation updater bot 7d5392f21a Localisation updates from https://translatewiki.net.
Change-Id: I5b140fa92d5b5dc5c9a2587ad08bc061a571cf47
2015-01-22 23:19:33 +01:00
Translation updater bot bc39bd779e Localisation updates from https://translatewiki.net.
Change-Id: Id6bfa7fbffc01029dbb45b9d0c5f459d02b21f10
2015-01-19 22:00:39 +01:00
Translation updater bot 1ccb9c1bd8 Localisation updates from https://translatewiki.net.
Change-Id: I02bb1e04e513e8e8b9a788a02e128916b517e813
2015-01-18 22:15:58 +01:00
Ricordisamoa a8eba39db0 Fix 'license-name' to match SPDX conventions
References:
http://spdx.org/licenses/
https://www.mediawiki.org/wiki/Manual:$wgExtensionCredits#license-name

While 'GPLv2' could mean 'GPLv2 only', the comment at the top of
the file clearly states 'GNU General Public License 2.0 or later'.

Change-Id: I1546f4caef78a17f945c903f2f28d53bf830ca95
2015-01-16 02:11:18 +01:00
Ori Livneh ee4d83a1a7 MWException -> Exception
Change-Id: Ibc0d80f6cb66d96eb1bcb71bb1ee1b097c7878e6
2015-01-09 17:47:47 -08:00
Bryan Davis db56e255d4 Guard against unset array access
From prod error logs:
  Undefined index: 0 in Cite_body.php on line 396
  Undefined index: 1 in Cite_body.php on line 396
  Undefined index: 2 in Cite_body.php on line 396
  Undefined index: 3 in Cite_body.php on line 396
  Undefined index: follow in Cite_body.php on line 396

Change-Id: Id727f2fd7e72d8c4ceb74fdac42885d5c030b4af
2015-01-09 09:09:42 -07:00
Translation updater bot e21c7852c6 Localisation updates from https://translatewiki.net.
Change-Id: I04961d4aefa20f2fb7fef7b5ef21e5f03fa843da
2014-12-26 09:43:35 +01:00
Translation updater bot 19570b6cc2 Localisation updates from https://translatewiki.net.
Change-Id: Id677c3230b4fcc8ce86eb389b6c1b988427ee76e
2014-12-23 21:39:14 +01:00
Translation updater bot ec6fbe7c3c Localisation updates from https://translatewiki.net.
Change-Id: I2340fdb5e96cbb84eafbf82de6de9b28f70a5709
2014-12-08 23:19:49 +01:00
Translation updater bot b5fd2b8d55 Localisation updates from https://translatewiki.net.
Change-Id: Id2d71b538ff839e3086704081af61d99d0165bd5
2014-12-02 22:03:21 +01:00
Translation updater bot 7faf5cde2f Localisation updates from https://translatewiki.net.
Change-Id: Ied781b2216cbad41343f2545c38d6ef443b5e799
2014-11-23 22:39:30 +01:00
Translation updater bot 5045fa3507 Localisation updates from https://translatewiki.net.
Change-Id: I01f97e2989fd64dbe792b2c9fb39c077c3869770
2014-11-13 23:07:00 +01:00
Translation updater bot 9cab73914c Localisation updates from https://translatewiki.net.
Change-Id: I4aca84fc16ec6e62c134c6812ba06ab7ef7c94a3
2014-11-08 22:16:51 +01:00
Translation updater bot bc0995ebe0 Localisation updates from https://translatewiki.net.
Change-Id: I284e28725d49d3f894eb493ef03e660878e06daa
2014-11-02 21:56:48 +01:00
Amir E. Aharoni c9a5b7b1cb Replace == with test for isset and empty string
The coding conventions suggest avoiding ==,
and for this condition definedness is actually more relevant
than whether the string has any text, but since
the string can also be '0', checking for !$text doesn't work.

Similar to I15b422d3345bf4522e68a17dce9682ff28484559 .

Change-Id: Ib823678b639bf4f1a92dffcd9e41c780b56ab128
2014-10-28 19:07:24 +00:00
Amir E. Aharoni 60a0821634 Replace == with isset
The coding conventions suggest avoiding ==,
and for this condition definedness is actually more relevant
than whether the string has any text.

Change-Id: I15b422d3345bf4522e68a17dce9682ff28484559
2014-10-28 19:06:33 +00:00
James D. Forrester 7f10ca97f1 Remove Special:Cite, now moved to its own repository
Change-Id: I6ae358b6855911016793c3227bfc1c04a8637428
2014-10-28 12:02:21 -07:00
Translation updater bot 272cdbb49c Localisation updates from https://translatewiki.net.
Change-Id: I2163747e28e82cea77c316127c3c85beb0a68e14
2014-10-27 20:08:06 +01:00
Amir E. Aharoni 458fb4e705 Replace srting comparison with boolean condition
In this function $text can be both false and empty string.
It is more intuitive to use a boolean operator here than
to rely on the fact that comparing to '' using == happens
to give the correct result.

Change-Id: I08248a3fcade7744287e9b9f3bc176d29ac1ecde
2014-10-01 17:42:18 +03:00
Amir E. Aharoni f85ae02fa9 iEarly return for readability
Change-Id: I80ccb1766b1635c32669818647aad85db95c4866
2014-10-01 17:25:58 +03:00
Amir E. Aharoni 09a1ae5929 Code cleanup for phpcs
Change-Id: I2419c904629e02e1ec4cb24325acd0e2db1297db
2014-09-27 19:56:47 +03:00
Amir E. Aharoni 4840a46c5c Credits for en.json
Change-Id: I4e3674a5dfba5f0cf0b4e0985dca85491b37e359
2014-09-27 19:23:39 +03:00
Amir E. Aharoni d027bc9dfb Convert spaces to tabs in en.json
Change-Id: Ie4d5d097d6b0bbd5b85908be9a7ec745debaea43
2014-09-27 19:20:59 +03:00
Translation updater bot d45691cb43 Localisation updates from https://translatewiki.net.
Change-Id: I6eaf22336c0895459062162cf47731a9aa140996
2014-09-24 22:13:21 +02:00
Translation updater bot 8a48edee27 Localisation updates from https://translatewiki.net.
Change-Id: I8bfec8822b10d4a4e5f29fd563318c0e61e2391c
2014-09-16 19:41:55 +02:00
Translation updater bot 315449fed7 Localisation updates from https://translatewiki.net.
Change-Id: If975851c5e7194f66f40b8d3fc4fbe2730ee93c9
2014-08-31 21:52:27 +02:00
Translation updater bot 9da5cc02db Localisation updates from https://translatewiki.net.
Change-Id: Ibe34881b52e460332d909d8246e2d71c2b70e354
2014-08-29 21:17:52 +02:00
Translation updater bot def1d72887 Localisation updates from https://translatewiki.net.
Change-Id: I3fbcc9f7986ed5ba87a0e51abeffdf800a43063f
2014-08-26 21:46:36 +02:00
Translation updater bot 192f5a523e Localisation updates from https://translatewiki.net.
Change-Id: I779fc8e7212ebb2aa4a606cbcc978b3ef57f64ae
2014-08-23 21:51:42 +02:00
Translation updater bot 4957e6c335 Localisation updates from https://translatewiki.net.
Change-Id: I782103740a8febdd0164b26e8070d68830c03c75
2014-08-18 22:36:58 +02:00
Translation updater bot 6ef84d0062 Merge "Localisation updates from https://translatewiki.net." 2014-08-17 21:18:27 +00:00
addshore f1c78e330f Use public instead of var in classes
Change-Id: I351e0b776497b9cfa9914400048e5ea9f00b5aac
2014-08-17 22:04:15 +01:00
Translation updater bot bfa78f2c08 Localisation updates from https://translatewiki.net.
Change-Id: I6b79924fcd92bd983d3ed7b6dac9e586a78fe593
2014-08-17 23:01:36 +02:00