Commit graph

70 commits

Author SHA1 Message Date
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
Raimond Spekking cb81218070 * (bug 10365) Localization of Special:Version
Extension descriptions can be localized by adding the new keyword 'descriptionmsg' to $wgExtensionCredits with a message name.
See the Cite extension as example. Patches for other extensions will follow in the next days.
2008-01-31 14:38:12 +00:00
Brion Vibber eebfc51c57 Apply live hack from Wikimedia code base: more profiling points in Cite.php 2008-01-29 01:48:21 +00:00
Aryeh Gregor cbf94c2eda Fix it for real now, no pretending. 2008-01-10 20:09:12 +00:00
Aryeh Gregor c85f250dd1 Fix Cite so it only loads messages when necessary 2008-01-10 20:02:19 +00:00
Aryeh Gregor a03e2a48d5 Improve clarity of error message when no text is given for a reference. 2008-01-04 13:58:40 +00:00
Brion Vibber 57a761acb5 Fix regression -- don't forbid all names which contain integers, but rather those which are them.
Note that that's still a bad check probably; the ID issue is that a digit isn't a valid first char.
2007-12-27 22:18:40 +00:00
Aryeh Gregor b3b7be4e85 Changed messages to be a more standard format, to help localization with BetaWiki et al., at request of siebrand. Thanks to help from siebrand. All Cite parser tests pass. 2007-12-16 20:18:33 +00:00
Aryeh Gregor 7e700530b8 Reduce nesting and code duplication in guardedRef; add comments. This is preparatory to possibly adding new attributes, like group or HTML attributes. Also, add a new parser test to verify failure on errors, improve should-never-occur messages slightly. 2007-12-16 18:49:10 +00:00
Siebrand Mazeland 0ffcab3539 revert r28306, r28308, r28309, r28312 2007-12-16 18:45:23 +00:00
Siebrand Mazeland 86a1bf9801 * complete $wgExtensionCredits
* remove trailing whitespace
2007-12-09 12:56:07 +00:00
Rob Church e2d2219bdf Spacing 2007-10-02 22:43:28 +00:00
Thomas Dalton 69f694f947 Correcting r26045, references with no text which are used multiple times should still link back to each use, rather than just the last one. 2007-10-02 21:54:43 +00:00
Aryeh Gregor 19d69a96f7 (bug 11426) Give error if no text is supplied for a reference. Patch by Thomas Dalton. All parser tests passed. 2007-09-23 23:38:12 +00:00
Raimond Spekking 0e7d961a52 Error messages should be shown in the user preferred language, not the site content language. 2007-08-07 06:32:20 +00:00
Raimond Spekking 3dbf8d7891 * Add Finish translation
by Jack Phoenix
* Update Cite extension credit URLs
2007-07-04 17:53:24 +00:00
Aryeh Gregor bb3946f589 Extensions too! 2007-06-29 01:36:09 +00:00
Brion Vibber 775ddb2f1c * (bug 9807) Don't return invalid empty HTML list from <references/> if no <ref>s present 2007-05-08 21:20:48 +00:00
Nick Jenkins fa8ef0e38c As per r19835, but for a few extensions (prevent some unnecessary lstat
system calls, generated by include or require directives).
2007-02-09 05:55:23 +00:00
Antoine Musso 4f239aab79 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage
This is like r19502 but for extensions.
2007-01-20 15:10:35 +00:00
Brion Vibber 73bd0b7d8e Reverting r19202 for now... JavaScript bits look really fragile 2007-01-13 22:04:57 +00:00
Antoine Musso 648878d124 * clear whitespaces
* add descriptions
2007-01-13 14:32:58 +00:00
Antoine Musso 553bb17c85 Implements #7908 : add reference text as a tooltip in the reference link.
Patch by Dirk Beetstra <djbeetstra@hotmail.com>.
2007-01-13 14:25:08 +00:00
Nick Jenkins 7ae986397c E_STRICT tweaks for three extensions:
* Strict Standards: Undefined index:  blank in extensions/Cite/Cite.php on line 280
* Strict Standards: Assigning the return value of new by reference is deprecated in extensions/Makesysop/SpecialMakesysop_body.php on line 364
* Strict Standards: Undefined index:  style in extensions/CategoryTree/CategoryTree.php on line 123
* Strict Standards: Undefined index:  mode in extensions/CategoryTree/CategoryTree.php on line 125
* Strict Standards: Undefined index:  hideroot in extensions/CategoryTree/CategoryTree.php on line 137
2006-11-29 13:06:21 +00:00
Brion Vibber 042b262e65 * Make the set of default parser test input files extensible via
$wgParserTestFiles. This can now be appended to by extensions or local
  configuration files so that extension or custom tests can be automatically
  run along with the main batch.
* Cite.php now adds its parser tests to the default set when enabled
2006-11-11 14:36:47 +00:00
Brion Vibber ff99847497 Parser tests for recent change in <ref> behavior, plus fix for failure of that behavior when the first ref is set to exactly "0" 2006-11-03 15:34:46 +00:00
Andrew Garrett 658fe31872 (bug 5885) Stop empty <ref name="something" /> tags from preventing a later tag with the same name from displaying correctly (when re-ordering paragraphs which reference the same <ref> tag. Patch by Phil Boswell. 2006-11-03 14:08:35 +00:00
Tim Starling 7414029244 Support the new parser entry point 2006-08-06 15:46:00 +00:00
Brion Vibber 16a26dbd16 Revert 15644; extensions need to remain self-contained 2006-07-16 21:43:23 +00:00
Rotem Liss b3a6f399c7 Using the extAddMessages function for all the internationalised extensions. 2006-07-15 18:06:26 +00:00
Rotem Liss 4644bf34c2 * SiteMatrix Internationalisation (en + he)
* Fixing spelling errors
2006-07-15 15:17:32 +00:00
Rotem Liss 9eb9382a6f Cite Internationalisation (en + he) 2006-07-15 14:00:29 +00:00
Tim Starling 1971fcf123 Defer preg_split 2006-07-02 14:19:45 +00:00
Brion Vibber 4b0ea8fa17 Normalize input names to something that is probably legal XHTML identifiers,
as is done with section anchors. This is hideous and ugly and evil, and I
do apologize, but it's the best we can do within XHTML's evilness.
This also corrects the breakage if you use really weird things like
< and > in your names, which would break the wikitext. It might be superior
to reject some such values entirely.
2006-05-26 11:54:38 +00:00
Antoine Musso 920f27f838 Fix #5525: when a source is cited more then 9 times the numbers are shown wrong 2006-05-02 17:02:23 +00:00
Ævar Arnfjörð Bjarmason d33d6671ef * Added trailing ?> to end of file 2006-04-23 18:37:49 +00:00
Tim Starling 4b43c3c155 Avoid infinite recursion on e.g. <ref><references/></ref> 2006-04-16 06:22:42 +00:00
Tim Starling 59076cad46 Removing reference to $wgTitle again. It was making runJobs.php crash. 2006-04-10 13:49:46 +00:00