Commit graph

107 commits

Author SHA1 Message Date
Kunal Mehta 1048c10178 Add extension.json, empty PHP entry point
Depends upon I9a736a4c0ff73 in MediaWiki core

Bug: T87893
Change-Id: I860a1da0b49092bfeeea2c8f80b4da57efc913ec
2015-05-03 06:36:25 +00:00
Kunal Mehta 84ba4c4f92 Remove i18n shim
Change-Id: I69c654d470c44132eaf33856193960f44608d533
2015-04-30 11:42:49 -07:00
Kunal Mehta db9ff2bd18 Get rid of "wfCite" global function
As of Icdf82cb9771e6, MediaWiki core now looks for the "Cite" class
instead of the "wfCite" global function. The WYSIWYG extension is also
checking for wfCite and a patch was submitted for that in I3de3e069e4be.

Change-Id: Ie0f190b7bd9c9226856f150c95a0b139812dcf98
2015-04-30 11:41:06 -07:00
Kunal Mehta 49c2a5d595 Move CITE_DEFAULT_GROUP constant to Cite::DEFAULT_GROUP
Change-Id: I13c77f78563beb6e4ebf2a6d19327273ee2dbc07
2015-04-30 11:34:47 -07: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
James D. Forrester 7f10ca97f1 Remove Special:Cite, now moved to its own repository
Change-Id: I6ae358b6855911016793c3227bfc1c04a8637428
2014-10-28 12:02:21 -07:00
James D. Forrester 7d37a9f182 Add license details and give credit to more authors (based on git shortlog)
Change-Id: Iaa123a76e5dc52f44b3500e3add001581be1462d
2014-07-26 16:16:47 -07:00
Jforrester d7fc63b66d Revert "Provide way for users to find articles with the automatic <references />"
Apparently causing parser failures and corruptions in production.

This reverts commit 44472de458.

Change-Id: I923ed39f405d926b70a5098cbde6eee0538eee51
2014-07-24 12:27:02 -07:00
Alex Monk 44472de458 Provide way for users to find articles with the automatic <references />
By adding a tracking category

Bug: 67700
Change-Id: I62584de085ae7a849a099e127bd950692a0dff8a
2014-07-11 22:47:51 +01:00
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
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
Kunal Mehta a94c871cd2 Only load RL modules when a <ref> tag is being used
Bug: 55684
Change-Id: I8f7528ef8468bf3fa1c901fd6dc67b5eebc0cbd6
2013-11-01 13:47:35 +00:00
MatmaRex 47ef0dda91 Remove CategoryTree integration tests
Test, rather. It does more harm than good, making Cite annoying to
test in isolation (breaking on WMF jenkins setup) and doesn't really
add much value. The clearState() behavior fixed per bug 20748 should
be tested with a regular PHPUnit test, if anything.

Bug: 54126
Change-Id: I6b65ef7280f95a537f25b7f5c9e57434c21357dd
2013-09-28 14:08:02 +02:00
Marius Hoch f692c9f41d Add extra accessibility labels to jump to citation (↑) links
Had to do that in JavaScript as doing it server-side would have
made refactoring large parts of the extension necessary.

Bug: 38141
Change-Id: I60ecd2fc0edf2aee89974d8069cc0b075cda3f93
2013-09-01 18:58:32 +02:00
Marius Hoch 847a09be11 Refactor Cite extension JavaScript and make it pass Jshint
Moved the scripts and the CSS into the modules folder directly
(like almost all other extensions do), added a .jshintrc to not have
jenkins shout at this change and minor stuff.

After this change Cite will no longer work with anything older than
PHP 5.3!

Change-Id: I1c87af794f2a9894fb0d82a5bd97bd2182f028e1
2013-08-25 22:23:15 +02:00
Moriel Schottlender 5e7188194d ext.rtlcite: Add to top queue and load with addModuleStyles
As per RoanKattouw's suggestions, changed the loading position to top
and changed CSS loading to static (addModuleStyles).

Bug: 48185
Change-Id: I319285d23a4f0a0522cc793f1a6661cda31a1ebf
2013-05-07 15:14:27 +00:00
Moriel Schottlender 5895bd048f Adding bidi-isolation to reference numbers
This is a quick-fix to support proper rendering of <sup>[1]</sup> elements
when the sentence contains a right-to-left word.
Amended: Changed from working through jQuery 'wrap' to CSS unicode-bidi.
Amended: Dos2Unix conversion to get rid of pesky hidden characters, also
corrected all of Amire80's comments.
Bug: 36032

Change-Id: If85efe5ff1e0a3c57ee2523656702db89df07145
2013-04-30 18:43:27 -04:00
Max Semenik 2c2c5b522e Follow-up r102160: disable popups by default 2012-02-07 07:04:21 +00:00
Brion Vibber 3351f7c540 Update a butt-ton of extension about URLs to point to https://www.mediawiki.org/ 2011-12-13 23:49:33 +00:00
Sam Reed 00750eb2a1 Documentation 2011-12-02 17:00:19 +00:00
Sam Reed 3f200aad13 Followup r102160
Also, bad werdna
2011-11-06 12:25:34 +00:00
Max Semenik 7e1bad9bec Merging ReferenceTooltips into Cite step 2: rename/register 2011-11-06 08:02:39 +00:00
Platonides 9fc91b9899 Remove Cite singleton. Store it inside each associated parser at $parser->extCite
This fixes bug 20748 and bug 15819 without breaking the other tests. Reverts r88971.
The conflict with CategoryTree was the old problem of a message being called inside 
of a parser callback, this time with clearState for which the hook is global.
2011-05-31 17:49:22 +00:00
Sam Reed c48d4b674b Documentation 2011-05-28 20:44:24 +00:00
Platonides 286a80efc1 Make Cite properly register to any parser instead of just $wgParser.
Makes CiteParserTests work with r82867 code.
2011-02-26 22:39:53 +00:00
Siebrand Mazeland 68f070657e Removed most checks for MW_SUPPORTS_PARSERFIRSTCALLINIT introduced in MediaWiki 1.12.0 (released 2008-03-20). 2010-08-05 18:08:03 +00:00
Alexandre Emsenhuber a015b8f170 Big changes to extensions' documentation:
* changed all @addtogroup to @ingroup
* added some @file where needed
* changed some @package/@subpackage to @ingroup
2010-06-06 15:12:22 +00:00
Siebrand Mazeland 3c6f7de8f3 Update description message key and update Translate accordingly. 2010-04-18 17:05:37 +00:00
Sam Reed e532ce62cc Stylize on some used extensions etc 2010-04-17 21:07:37 +00:00
Siebrand Mazeland 8a460c693b * Remove $wgExtensionCredits['description'] where $wgExtensionCredits['descriptionmsg'] present. This feature was introduced in MediaWiki 1.12, and 'description' is not used if 'descriptionmsg' is present.
* Random indentation updates and trailing whitespace removed
2010-02-22 23:41:51 +00:00
Ævar Arnfjörð Bjarmason a19ef239f5 * Updated link to documentation, now at mediawiki.org not meta
* Removed links to HTML <cite> element, confusing
2009-07-10 13:51:26 +00:00
Shinjiman 9f510a9bc2 Follows up r49890, adding file location itself to obtaining the revision number shown in the Special:Version 2009-04-27 03:15:19 +00:00
Chad Horohoe 8616d047e5 Big commit. Removing svn-version and svn-date from extensions. Per the list, these versions do not give valuable information and are often wildly inaccurate. 2009-03-26 17:39:49 +00:00
Andrew Garrett 43a4822175 Improve Cite references caching by making it dependent on a config setting, which defaults to off.
This way, we can still use it as emergency optimisation if the need arises.
2009-02-12 18:02:27 +00:00
Andrew Garrett e08e8e3248 Revert "Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions."
Uses $dir in extension files, and assumes that it remains unchanged in require_once( 'maintenance/commandLine.inc' ).
In fact, it is likely that '$dir' will be set when setting up command-line, as some extensions will use the same var.

Recommended fix: Use $CentralAuth_dir, $EmailPage_dir, etc.
2008-11-30 03:15:22 +00:00
Siebrand Mazeland b5f50008cb Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions. 2008-11-26 23:17:15 +00:00
Danny B. e1d0b185fc * adding to proper group on Special:SpecialPages 2008-07-12 01:15:55 +00:00
Brion Vibber 933caf85db Update a bunch of extensions to avoid unstubbing $wgParser early for setHook() on current MW versions. 2008-06-06 20:38:04 +00:00
Brion Vibber 2c6ece7e58 Revert r34398 for now; near-duplicate of existing tag seems a bit odd to me 2008-05-07 21:05:21 +00:00
Steve Sanbeg dafe593dc1 add parallel note/footnotes tags for alphabetic footnotes, which incidently allow 1 level of nesting 2008-05-07 20:57:36 +00:00
Tim Starling efbfbd44a4 Don't call preg_replace ~80 times per request. Leave the heavy lifting to Special:Version, using the new svn-revision member of $wgExtensionCredits. 2008-05-06 11:59:58 +00:00
Tim Starling 876ebf56e5 Support #tag properly, allow <references></references> 2008-04-10 09:37:17 +00:00
Brion Vibber 3705fad742 Revert part of r32492 -- don't spew errors for <references/> when no <ref>s are defined for that group.
The <ref>s may be quite legitimately removed over time, or a <references/> may be added before it's needed.
For back-compat and general pleasantness, just stay blank.
2008-04-09 01:22:24 +00:00
Raimond Spekking e1a1da382d * Fix a PHP notice when <references group="foo" /> is used but "foo" is not defined by any <ref>. New message 'cite_error_references_invalid_group'
* Add new message 'cite_error_references_invalid_parameters_group' to clarify error message when $wgAllowCiteGroups=true (default)
* Rephrase 'cite_error_references_no_backlink_label' a bit to make it clearer that 'cite_references_link_many_format_backlink_labels' is a MediaWiki message
2008-03-27 10:09:36 +00:00
Steve Sanbeg 50e0b396d3 emergency fix, named refs are throwing off numbering for subsequent anon refs 2008-03-21 22:31:55 +00:00
Steve Sanbeg 448a99da51 add group option, initialize structures when we start group, clear them when finished 2008-03-21 15:25:26 +00:00
Brion Vibber 58f061fadf Revert r32256 -- lots of notice errors about undefined index & such seen while running tests 2008-03-21 00:19:18 +00:00
Steve Sanbeg b9db9c27e4 add "group" parameter to allow multiple reference/footnote groups 2008-03-20 21:26:54 +00:00
Ævar Arnfjörð Bjarmason e1dc391792 typo: Languague => Language 2008-03-01 02:12:15 +00:00
Siebrand Mazeland 19fc5ed90a * add svn:keywords 'LastChangedDate'
* replace text 'version' in ExtensionCredits with version based on 'LastChangedDate' for automatic version updating
2008-02-27 14:13:10 +00:00